X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fpcxtest.c;h=07a4795d487aac8355418a993378365fb7702030;hb=c651be58efdc106a455240203335aca4864f3d05;hp=be51733b77ce894dbeafdbdbcf4e517ea9ed6801;hpb=18e9a8fb1179c8843a3dc67cbb8f69250265858f;p=16.git diff --git a/src/pcxtest.c b/src/pcxtest.c index be51733b..07a4795d 100755 --- a/src/pcxtest.c +++ b/src/pcxtest.c @@ -87,7 +87,7 @@ void main() { start = *clockw; //for(i=0; i<100 ;i++) { //0000 modexDrawBmp(&page, 20, 20, &bmp); - modexDrawBmp(&page, 100, 100, &bmp); + modexDrawBmp(&page, 160, 120, &bmp); //} t1 = (*clockw-start) /18.2; @@ -108,7 +108,7 @@ void main() { start = *clockw; //for(i=0; i<100 ;i++) { //0000 modexDrawSprite(&page, 20, 20, &bmp); - modexDrawSprite(&page, 100, 100, &bmp); + modexDrawSprite(&page, 160, 120, &bmp); //} //_fmemset(MK_FP(0xA000, 0), (int)p->plane, SCREEN_WIDTH*(SCREEN_HEIGHT*2)); //modexDrawBmp(&page, 0, 0, &bmp); @@ -117,15 +117,18 @@ void main() { //DrawPBuf(&page, 0, 0, p, 0); } modexLeave(); - printf("main=%Fp\n", &i); + /*printf("\nmain=%Fp\n\n", &i); + printf("bmp.data=%Fp\n", bmp.data); + printf("*bmp.data=%Fp\n", *(bmp.data)); + printf("&bmp.data=%Fp\n", &(bmp.data)); printf("\n%d\n", sizeof(p->plane)); - printf("%d\n", sizeof(bmp)); + 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"); + if(i%bmp.width==0) fprintf(stdout, "\n"); }*/ printf("CPU to VGA: %f\n", t1); printf("VGA to VGA: %f\n", t2);