Files

24 lines
442 B
ArmAsm

;
; Written by Groepaz <groepaz@gmx.net>
; Cleanup by Ullrich von Bassewitz <uz@cc65.org>
; Rewritten by Brandon Woodward
;
; void waitvsync(void);
;
.export _waitvsync
.include "nes.inc"
; The fact that this does not touch Y and clears X is used by other subroutines
.proc _waitvsync
ldx #0
stx VBLANK_FLAG
@wait: lda VBLANK_FLAG
beq @wait
rts
.endproc