X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fmodex16%2F192x144.h;h=0c06722c236ca842afbbee9d19028bbc31be72b4;hb=415ffb75c84f777d2ce7e3501079823aa544d63f;hp=046bac88f55a89faa5553b2ac4de5f26d0781773;hpb=280b2698e9eb1af403b0ae29c357a4ae8fdd51a3;p=16.git diff --git a/src/lib/modex16/192x144.h b/src/lib/modex16/192x144.h index 046bac88..0c06722c 100755 --- a/src/lib/modex16/192x144.h +++ b/src/lib/modex16/192x144.h @@ -20,8 +20,8 @@ * */ -#ifndef _UNX_H_ -#define _UNX_H_ +#ifndef _SMALLMODEXRES_H_ +#define _SMALLMODEXRES_H_ #include "src/lib/types.h" @@ -54,22 +54,54 @@ 0x3c0, 0x13, 0x00 };*/ -static const word ModeX_320x240regs[] = { - 0x4f01, /* horizontal display enable end */ +static const word ModeX_192x144regs[] = { + 0x5f00, /* Horizontal total */ + 0x2f01, /* 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 */ - 0x2813, /* offset/logical width */ + 0x1f12, /* vertical displayed */ + 0x1813, /* offset/logical width */ 0x0014, /* turn off dword mode */ 0xe715, /* v blank start */ 0x0616, /* v blank end */ 0xe317 /* turn on byte mode */ }; -#endif /*_UNX_H_*/ +#endif /*_SMALLMODEXRES_H_*/ +/* +192x144[] = + { + { 0x3c2, 0x0, 0xe3}, + { 0x3d4, 0x0, 0x3f}, + { 0x3d4, 0x1, 0x2f}, + { 0x3d4, 0x2, 0x50}, + { 0x3d4, 0x3, 0x82}, + { 0x3d4, 0x4, 0x54}, + { 0x3d4, 0x5, 0x80}, + { 0x3d4, 0x6, 0xd}, + { 0x3d4, 0x7, 0x3e}, + { 0x3d4, 0x8, 0x0}, + { 0x3d4, 0x9, 0x41}, + { 0x3d4, 0x10, 0xea}, + { 0x3d4, 0x11, 0xac}, + { 0x3d4, 0x12, 0x1f}, + { 0x3d4, 0x13, 0x18}, + { 0x3d4, 0x14, 0x0}, + { 0x3d4, 0x15, 0xe7}, + { 0x3d4, 0x16, 0x6}, + { 0x3d4, 0x17, 0xe3}, + { 0x3c4, 0x1, 0x1}, + { 0x3c4, 0x4, 0x6}, + { 0x3ce, 0x5, 0x40}, + { 0x3ce, 0x6, 0x5}, + { 0x3c0, 0x10, 0x41}, + { 0x3c0, 0x13, 0x0} + }; +*/