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:
parent
33791c6efd
commit
fe850fece8
@ -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
12
libsrc/plus4/waitvsync.s
Normal file
@ -0,0 +1,12 @@
|
||||
|
||||
.export _waitvsync
|
||||
|
||||
.include "plus4.inc"
|
||||
|
||||
_waitvsync:
|
||||
@l1:
|
||||
lda TED_VLINEHI
|
||||
and #$01
|
||||
ora TED_VLINELO
|
||||
bne @l1
|
||||
rts
|
Loading…
x
Reference in New Issue
Block a user