mirror of
https://github.com/jeremysrand/BuGS.git
synced 2024-11-12 15:05:00 +00:00
Add a wait for VBL function.
This commit is contained in:
parent
69e3c4a62a
commit
bff623af89
13
BuGS/game.s
13
BuGS/game.s
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user