added waitvblank and fixed get_tv

This commit is contained in:
mrdudz
2015-07-15 19:46:26 +02:00
parent c3d45e4c47
commit 1414411bba
5 changed files with 39 additions and 9 deletions

View File

@@ -43,8 +43,22 @@ void main(void)
);
}
for(;;)
{
i = get_tv();
gotoxy(30,0);
cputs("TV Mode: ");
switch(i) {
case TV_NTSC:
cputs("NTSC");
break;
case TV_PAL:
cputs("PAL");
break;
case TV_OTHER:
cputs("OTHER");
break;
}
for(;;) {
gotoxy(13,4);
cprintf("%02x", datavar);
gotoxy(13,5);
@@ -68,6 +82,7 @@ void main(void)
(j & joy_masks[JOY_FIRE])? " fire " : " ---- ",
(j & joy_masks[JOY_FIRE2])? "fire2 " : " ---- ");
}
waitvblank();
}
for(;;);
}