//JMOJI\r
static byte e;\r
//word ri;\r
- byte pee[2];\r
+ byte pee[6]; // must be large enough for sprintf("%zc",...) and sprintf("%u",(byte value))\r
static byte ibmlogo[]="IIIIIII BBBBBBBBB MMMMM MMMMM\n\\r
IIIIIII BBBBBBBBBBB MMMMMM MMMMMM\n\\r
III BBB BBB MMMMMM MMMMMM\n\\r
,'___...---~~~\n\\r
";\r
// static byte *rosa;\r
-// static word chx;//, chy, colpee;\r
+ static word chx, chy, colpee;\r
static word z;\r
textInit();\r
\r
gvar.video.page[0].width += (16*2);\r
gvar.video.page[0].height += (16*2);\r
modexShowPage(&gvar.video.page[0]);\r
+ vga_read_crtc_mode(&cm);\r
+ // NTS: We're in Mode-X now. printf() is useless. Do not use printf(). Or INT 10h text printing. Or DOS console output.\r
//modexprint(16, 16, 1, 15, "wwww");\r
//getch();\r
-// chx=0;\r
-// chy=0;\r
+ chx=0;\r
+ chy=0;\r
// colpee=32;\r
- bios_cls();\r
+// bios_cls();\r
/* position the cursor to home */\r
- vga_moveto(0,0);\r
- vga_sync_bios_cursor();\r
+// vga_moveto(0,0);\r
+// vga_sync_bios_cursor();\r
for(e=0x00, z=0; e<=0xFE; e++, z++)\r
{\r
//if(chx+8>(gvar.video.page[0].width/2))\r
if((z)+1>16)\r
{\r
-// chx=0;\r
-// chy+=8;\r
-// sprintf(pee,"%u", colpee);\r
-// modexprint(&gvar.video.page[0], 200, 200, 1, 47, 0, &pee, 1);\r
+ chx=0;\r
+ chy+=8;\r
+ sprintf(pee,"%u", colpee);\r
+ modexprint(&gvar.video.page[0], 200, 200, 1, 47, 0, &pee, 1);\r
z=0;\r
- printf("\n");\r
+// printf("\n");\r
//getch();\r
}\r
- printf("%zc", e);\r
-// modexprint(&gvar.video.page[0], chx, chy, 1, 0, colpee, &e, 1);\r
-// chx+=9;\r
-// colpee++;\r
+ sprintf(pee, "%zc", e);\r
+ modexprint(&gvar.video.page[0], chx, chy, 1, 0, colpee, &e, 1);\r
+ chx+=9;\r
+ colpee++;\r
// if(colpee>=32+24) colpee=32;\r
}\r
- //modexprint(100, 100, 1, 47, 0, "wwww");\r
getch();\r
+ //modexprint(100, 100, 1, 47, 0, "wwww");\r
// modexprint(0, 0, 1, 0, colpee, &rose);\r
//++++ modexprint(&gvar.video.page[0], 0, 0, 0, 0, colpee, &ibmlogo);\r
// modexprintbig(&gvar.video.page[0], 0, 0, 1, colpee, 0, "IBM");\r
// modexprint(0, 0, 1, 0, colpee, ROSE);\r
//++++ getch();\r
- vga_read_crtc_mode(&cm);\r
VGAmodeX(0, 1, &gvar);\r
// rosa=malloc(sizeof(ROSE));\r
// (*rosa)=(byte)ROSE;\r