bitmap_t bmp;\r
planar_buf_t *p;\r
int i;\r
- //word start;\r
+ word start;\r
int plane;\r
- //float t1, t2;\r
+ float t1, t2;\r
int x,y;\r
word px,py;\r
sword baka;\r
- //char *pee;\r
char *bakapeee;\r
\r
bakapeee = malloc(64);\r
modexPalUpdate1(bmp.palette);\r
\r
/* clear and draw one sprite and one bitmap */\r
- modexClearRegion(&gvar.video.page[0], 0, 0, gvar.video.page[0].sw, gvar.video.page[0].sh, 1);\r
+ modexClearRegion(&gvar.video.page[0], 0, 0, gvar.video.page[0].sw, gvar.video.page[0].sh, 0);\r
\r
/* update display~*/\r
gvar.video.page[0].dx+=32;\r
modexShowPage(&gvar.video.page[0]);\r
\r
/* non sprite comparison */\r
-// start = *clockw;\r
+ start = *clockw;\r
// oldDrawBmp(VGA, 20, 20, &bmp, 0);\r
-// start = *clockw;\r
//0000 modexDrawBmp(&gvar.video.page[0], 20, 20, &bmp);\r
// modexDrawBmp(&gvar.video.page[0], 160, 120, &bmp);\r
// t1 = (*clockw-start) /18.2;\r
// t2 = (*clockw-start)/18.2;\r
// start = *clockw;\r
// oldDrawBmp(VGA, 20, 20, &bmp, 1);\r
-// start = *clockw;\r
//0000 modexDrawSprite(&gvar.video.page[0], 20, 20, &bmp);\r
// modexDrawSprite(&gvar.video.page[0], 160, 120, &bmp);\r
-//i=0;\r
-//plane=0;\r
-// _fmemset(VGA, (int) p->plane[plane++][i++], p->width*p->height);\r
- //modexDrawBmp(&gvar.video.page[0], 0, 0, &bmp);\r
DrawPBuf(&gvar.video.page[0], 0, 0, p, 0);\r
+ t1 = (*clockw-start) /18.2;\r
while(!kbhit())\r
{\r
- //if(argv[2]) pee = strcpy(VGA, &(p->plane[plane][24]));\r
- }//gvar.video.page[0].data\r
+ }\r
VGAmodeX(0, &gvar);\r
/*printf("\nmain=%Fp\n\n", &i);\r
printf("bmp.data=%Fp\n", bmp.data);\r
fprintf(stderr,"ppw=%d\n", p->pwidth);\r
fprintf(stderr,"%d\n", sizeof(bmp));\r
planar_buf_free(p);\r
-// fprintf(stderr,"%s\n", *pee);\r
-// fprintf(stderr, "CPU to VGA: %f\n", t1);\r
+ fprintf(stderr, "CPU to VGA: %f\n", t1);\r
// fprintf(stderr, "VGA to VGA: %f\n", t2);\r
fprintf(stderr, "gvar.video.page[0].width: %u\n", gvar.video.page[0].width);\r
fprintf(stderr, "gvar.video.page[0].height: %u\n", gvar.video.page[0].height);\r