- for(i=0; i<100 ;i++) {\r
-//0000 modexDrawSprite(&page, 20, 20, &bmp);
- modexDrawSprite(&page, 0, 0, &bmp);\r
- }*/
- //_fmemset(MK_FP(0xA000, 0), (int)p->plane, SCREEN_WIDTH*(SCREEN_HEIGHT*2));
- modexDrawBmp(&page, 0, 0, &bmp);
- while(!kbhit())
- {
- //DrawPBuf(&page, 0, 0, p, 0);
- }
- modexLeave();\r
-
- printf("\n%d\n", sizeof(p->plane));
- printf("%d\n", sizeof(bmp));
-
- /*for(i=0; i<(320*240); i++)
- {
- fprintf(stdout, "%d", bmp.data[i]);
- if(i%320==0) fprintf(stdout, "\n");
+ //for(i=0; i<100 ;i++) {\r
+//0000 modexDrawSprite(&gvar.video.page[0], 20, 20, PCXBMPPTR);\r
+ modexDrawSprite(&(gvar.video.page[0]), 160, 120, PCXBMPPTR);\r
+ modexDrawBmp(&gvar.video.page[0], 0, 128, PCXBMPPTR);\r
+ //}\r
+ t2 = (*clockw-start)/18.2;\r
+ //_fmemset(MK_FP(0xA000, 0), (int)p->plane, gvar.video.page[0].sw*(gvar.video.page[0].sh*2));\r
+ //modexDrawBmp(&gvar.video.page[0], 0, 0, PCXBMPPTR);\r
+ while(!kbhit())\r
+ {\r
+ //DrawPBuf(&gvar.video.page[0], 0, 0, p, 0);\r
+ }\r
+ VGAmodeX(0, 1, &gvar);\r
+ /*printf("\nmain=%Fp\n\n", &i);\r
+ printf("PCXBMP.data=%Fp\n", PCXBMP.data);\r
+ printf("*PCXBMP.data=%Fp\n", *(PCXBMP.data));\r
+ printf("PCXBMPPTR.data=%Fp\n", &(PCXBMP.data));\r
+\r
+ printf("\n%d\n", sizeof(p->plane));\r
+ printf("%d\n", sizeof(PCXBMP));*/\r
+\r
+ /*for(i=0; i<(320*240); i++)\r
+ {\r
+ fprintf(stdout, "%d", PCXBMP.data[i]);\r
+ if(i%PCXBMP.width==0) fprintf(stdout, "\n");\r