X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fmodex16%2F320x240.h;h=5395907b78e57603af9591e939e4c82d9a4af529;hb=8807e59c1c5d34b1ee351dd92fb7cd57b6c2847f;hp=b4efda98fb5050f086ce55a76b8c5d706c335865;hpb=4b59d025ac5e1eea1fe4fdb58fb1de101990f872;p=16.git diff --git a/src/lib/modex16/320x240.h b/src/lib/modex16/320x240.h index b4efda98..5395907b 100755 --- a/src/lib/modex16/320x240.h +++ b/src/lib/modex16/320x240.h @@ -1,5 +1,5 @@ /* Project 16 Source Code~ - * Copyright (C) 2012-2015 sparky4 & pngwen & andrius4669 + * Copyright (C) 2012-2016 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover * * This file is part of Project 16. * @@ -27,49 +27,51 @@ /*static const word ModeX_320x240regs[75] = { - 0x3c2, 0x00, 0xe3, - 0x3d4, 0x00, 0x5f, - 0x3d4, 0x01, 0x4f, - 0x3d4, 0x02, 0x50, - 0x3d4, 0x03, 0x82, - 0x3d4, 0x04, 0x54, - 0x3d4, 0x05, 0x80, - 0x3d4, 0x06, 0x0d, - 0x3d4, 0x07, 0x3e, - 0x3d4, 0x08, 0x00, - 0x3d4, 0x09, 0x41, - 0x3d4, 0x10, 0xea, - 0x3d4, 0x11, 0xac, - 0x3d4, 0x12, 0xdf, - 0x3d4, 0x13, 0x28, - 0x3d4, 0x14, 0x00, - 0x3d4, 0x15, 0xe7, - 0x3d4, 0x16, 0x06, - 0x3d4, 0x17, 0xe3, - 0x3c4, 0x01, 0x01, - 0x3c4, 0x04, 0x06, - 0x3ce, 0x05, 0x40, - 0x3ce, 0x06, 0x05, - 0x3c0, 0x10, 0x41, - 0x3c0, 0x13, 0x00 + 0x3c2, 0x00, 0xe3, + 0x3d4, 0x00, 0x5f, + 0x3d4, 0x01, 0x4f, + 0x3d4, 0x02, 0x50, + 0x3d4, 0x03, 0x82, + 0x3d4, 0x04, 0x54, + 0x3d4, 0x05, 0x80, + 0x3d4, 0x06, 0x0d, + 0x3d4, 0x07, 0x3e, + 0x3d4, 0x08, 0x00, + 0x3d4, 0x09, 0x41, + 0x3d4, 0x10, 0xea, + 0x3d4, 0x11, 0xac, + 0x3d4, 0x12, 0xdf, + 0x3d4, 0x13, 0x28, + 0x3d4, 0x14, 0x00, + 0x3d4, 0x15, 0xe7, + 0x3d4, 0x16, 0x06, + 0x3d4, 0x17, 0xe3, + 0x3c4, 0x01, 0x01, + 0x3c4, 0x04, 0x06, + 0x3ce, 0x05, 0x40, + 0x3ce, 0x06, 0x05, + 0x3c0, 0x10, 0x41, + 0x3c0, 0x13, 0x00 };*/ static const word ModeX_320x240regs[] = { + 0x5f00, /* Horizontal total */ 0x4f01, /* horizontal display enable end */ 0x5002, /* Start horizontal blanking */ - 0x5404, /* End horizontal blanking */ + 0x8203, /* End horizontal blanking */ + 0x5404, /* Start horizontal retrace */ 0x8005, /* End horizontal retrace */ - 0x0d06, /* vertical total */ - 0x3e07, /* overflow (bit 8 of vertical counts) */ - 0x4109, /* cell height (2 to double-scan */ - 0xea10, /* v sync start */ - 0xac11, /* v sync end and protect cr0-cr7 */ - 0xdf12, /* vertical displayed */ + 0x0d06, /* vertical total */ + 0x3e07, /* overflow (bit 8 of vertical counts) */ + 0x4109, /* cell height (2 to double-scan */ + 0xea10, /* v sync start */ + 0xac11, /* v sync end and protect cr0-cr7 */ + 0xdf12, /* vertical displayed */ 0x2813, /* offset/logical width */ - 0x0014, /* turn off dword mode */ - 0xe715, /* v blank start */ - 0x0616, /* v blank end */ - 0xe317 /* turn on byte mode */ + 0x0014, /* turn off dword mode */ + 0xe715, /* v blank start */ + 0x0616, /* v blank end */ + 0xe317 /* turn on byte mode */ }; #endif /*_UNX_H_*/