Merge pull request #2508 from polluks/waitvsync

[ATMOS] waitvsync
This commit is contained in:
Bob Andrews
2024-09-08 16:14:51 +02:00
committed by GitHub
3 changed files with 24 additions and 0 deletions

18
libsrc/atmos/waitvsync.s Normal file
View File

@@ -0,0 +1,18 @@
;
; Written by Stefan Haubenthal <polluks@sdf.org>, requires VSync hack
;
; void waitvsync (void);
;
.export _waitvsync
.include "atmos.inc"
.proc _waitvsync
lda #%00010000 ; CB1
wait: and VIA::PRA2
bne wait
rts
.endproc