,'___...---~~~\n\\r
";\r
// static byte *rosa;\r
- static word chx, chy, colpee;\r
- textInit();\r
+ static word chx;//, chy, colpee;\r
+// textInit();\r
VGAmodeX(1, 1, &gvar);\r
/* setup camera and screen~ */\r
gvar.video.page[0] = modexDefaultPage(&gvar.video.page[0]);\r
//modexprint(16, 16, 1, 15, "wwww");\r
//getch();\r
chx=0;\r
- chy=0;\r
- colpee=32;\r
+// chy=0;\r
+// colpee=32;\r
+ /* position the cursor to home */\r
+ vga_moveto(0,0);\r
+ vga_sync_bios_cursor();\r
for(e=0x00; e<=0xFE; e++)\r
{\r
if(chx+8>(gvar.video.page[0].width/2))\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
+ printf("\n");\r
+// chy+=8;\r
+// sprintf(pee,"%u", colpee);\r
+// modexprint(&gvar.video.page[0], 200, 200, 1, 47, 0, &pee, 1);\r
//getch();\r
}\r
- modexprint(&gvar.video.page[0], chx, chy, 1, 0, colpee, &e, 1);\r
+ printf("%c", 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
+// colpee++;\r
+// if(colpee>=32+24) colpee=32;\r
}\r
//modexprint(100, 100, 1, 47, 0, "wwww");\r
getch();\r
word type = 1;
//t=(((*(gv->clock))-gv->clock_start) /18.2);
//sprintf(gv->pee, "%f fps", (double)gv->kurokku.tiku/ticktock(gv));
+ vga_moveto(x,y);
+ vga_sync_bios_cursor();
printf("%f fps", (double)gv->kurokku.tiku/ticktock(gv));
//modexprint(pip[1].page, 16, 16, 1, 15, 0, gv->pee, 1);
//(gv->clock_start)=*(gv->clock);