1
0
mirror of https://github.com/cc65/cc65.git synced 2025-03-22 11:29:40 +00:00
cc65/libsrc/atmos/waitvsync.s

19 lines
287 B
ArmAsm
Raw Permalink Normal View History

2024-09-07 17:06:45 +02:00
;
; Written by Stefan Haubenthal <polluks@sdf.org>, requires VSync hack
;
; void waitvsync (void);
;
.export _waitvsync
.include "atmos.inc"
.proc _waitvsync
2024-09-07 18:51:20 +02:00
lda #%00010000 ; CB1
wait: and VIA::PRA2
2024-09-07 17:06:45 +02:00
bne wait
rts
.endproc