1
0
mirror of https://github.com/cc65/cc65.git synced 2025-01-10 19:29:45 +00:00

implement waitvsync for plus4/c16

This commit is contained in:
mrdudz 2017-07-17 23:55:18 +02:00
parent 33791c6efd
commit fe850fece8
2 changed files with 13 additions and 1 deletions

View File

@ -153,7 +153,7 @@ struct cbm_dirent {
unsigned char get_tv (void);
/* Return the video mode the machine is using. */
#if !defined(__PLUS4__) && !defined(__C16__) && !defined(__CBM610__) && !defined(__PET__)
#if !defined(__CBM610__) && !defined(__PET__)
void waitvsync (void);
/* wait for the start of the next frame */
#endif

12
libsrc/plus4/waitvsync.s Normal file
View File

@ -0,0 +1,12 @@
.export _waitvsync
.include "plus4.inc"
_waitvsync:
@l1:
lda TED_VLINEHI
and #$01
ora TED_VLINELO
bne @l1
rts