summaryrefslogtreecommitdiff
path: root/home/vblank.asm
diff options
context:
space:
mode:
authorThomas Winwood <twwinwood@gmail.com>2018-07-21 02:06:31 +0100
committerGitHub <noreply@github.com>2018-07-21 02:06:31 +0100
commit23ef2f50a7b94c23b50e9e690a7482ac349c9ef3 (patch)
tree63c20c67efbdf8334c6e273f78065b83135e3886 /home/vblank.asm
parent17a4d0540acc00e3f5ad260009115eb36e72b7d2 (diff)
parent2d73d040d16a7836f935a7a6cb2a311aed2ca5a2 (diff)
Merge branch 'master' into the-diffening
Diffstat (limited to 'home/vblank.asm')
-rw-r--r--home/vblank.asm40
1 files changed, 10 insertions, 30 deletions
diff --git a/home/vblank.asm b/home/vblank.asm
index 3b33b1ec5..5e87dbcdf 100644
--- a/home/vblank.asm
+++ b/home/vblank.asm
@@ -6,8 +6,7 @@
; This prevents the display and audio output from lagging.
-
-VBlank:: ; 283
+VBlank::
push af
push bc
push de
@@ -34,9 +33,8 @@ VBlank:: ; 283
pop bc
pop af
reti
-; 2a1
-.VBlanks: ; 2a1
+.VBlanks:
dw VBlank0
dw VBlank1
dw VBlank2
@@ -45,10 +43,8 @@ VBlank:: ; 283
dw VBlank5
dw VBlank6
dw VBlank0 ; just in case
-; 2b1
-
-VBlank0:: ; 2b1
+VBlank0::
; normal operation
; rng
@@ -116,7 +112,6 @@ VBlank0:: ; 2b1
call hTransferVirtualOAM
.done_oam
-
; vblank-sensitive operations are done
xor a
@@ -148,10 +143,8 @@ VBlank0:: ; 2b1
ld [hSecondsBackup], a
ret
-; 325
-
-VBlank2:: ; 325
+VBlank2::
; sound only
ld a, [hROMBank]
@@ -167,10 +160,8 @@ VBlank2:: ; 325
xor a
ld [wVBlankOccurred], a
ret
-; 337
-
-VBlank1:: ; 337
+VBlank1::
; scx, scy
; palettes
; bg map
@@ -235,10 +226,8 @@ VBlank1:: ; 337
ld a, b
ld [rIF], a
ret
-; 37f
-
-UpdatePals:: ; 37f
+UpdatePals::
; update pals for either dmg or cgb
ld a, [hCGB]
@@ -255,10 +244,8 @@ UpdatePals:: ; 37f
and a
ret
-; 396
-
-VBlank3:: ; 396
+VBlank3::
; scx, scy
; palettes
; bg map
@@ -321,10 +308,8 @@ VBlank3:: ; 396
ld a, b
ld [rIF], a
ret
-; 3df
-
-VBlank4:: ; 3df
+VBlank4::
; bg map
; tiles
; oam
@@ -354,10 +339,8 @@ VBlank4:: ; 3df
ld a, [hROMBankBackup]
rst Bankswitch
ret
-; 400
-
-VBlank5:: ; 400
+VBlank5::
; scx
; palettes
; bg map
@@ -404,10 +387,8 @@ VBlank5:: ; 400
ld a, %1111 ; serial timer lcdstat vblank
ld [rIE], a
ret
-; 436
-
-VBlank6:: ; 436
+VBlank6::
; palettes
; tiles
; dma transfer
@@ -438,4 +419,3 @@ VBlank6:: ; 436
ld a, [hROMBankBackup]
rst Bankswitch
ret
-; 45a