Add a wait for VBL function.

This commit is contained in:
Jeremy Rand 2020-07-15 23:20:35 -04:00
parent 69e3c4a62a
commit bff623af89

View File

@ -684,6 +684,19 @@ skip sta colourPalette
jsl setColour
bra loop2
quit rtl
waitForVbl entry
short i,m
vblLoop1 anop
lda $e0c019
bmi vblLoop1
vblLoop2 anop
lda $e0c019
bmi vblLoop2
long i,m
rtl
backupStack dc i2'0'
colourPalette dc i2'0'