ref: fc6bc8e311d3641fe23866a57f463612ad515577
parent: abce472354d0095537165f4d0a5d2db572dfa98b
author: yenatch <yenatch@gmail.com>
date: Sat Aug 31 20:02:35 EDT 2013
rename graphics request handlers to Serve1bppRequest and Serve2bppRequest these had some really dumb names
--- a/engine/vblank.asm
+++ b/engine/vblank.asm
@@ -119,8 +119,8 @@
call UpdateBGMap
; these have their own timing checks
- call SafeLoadTiles
- call SafeLoadTiles2
+ call Serve2bppRequest
+ call Serve1bppRequest
call SafeTileAnimation
.doneframeaction
@@ -230,7 +230,7 @@
; these have their own timing checks
call UpdateBGMap
- call LoadTiles
+ call Serve2bppRequest@VBlank
; update oam by dma transfer
call hPushOAM
; @PushOAM:
@@ -338,7 +338,7 @@
jr c, .vblankoccurred
; else
call UpdateBGMap
- call LoadTiles
+ call Serve2bppRequest@VBlank
; update oam by dma transfer
call hPushOAM
@@ -410,7 +410,7 @@
ld [$ff8a], a
call UpdateBGMap
- call SafeLoadTiles
+ call Serve2bppRequest
; update oam by dma transfer
call hPushOAM
@@ -465,7 +465,7 @@
jr c, .vblankoccurred
call UpdateBGMap
- call SafeLoadTiles
+ call Serve2bppRequest
.vblankoccurred
; tell other fns vblank happened
@@ -521,8 +521,8 @@
call UpdateCGBPals
jr c, .vblankoccurred
- call SafeLoadTiles
- call SafeLoadTiles2
+ call Serve2bppRequest
+ call Serve1bppRequest
call DMATransfer
.vblankoccurred
--- a/main.asm
+++ b/main.asm
@@ -422,7 +422,7 @@
; 170a
-SafeLoadTiles2: ; 170a
+Serve1bppRequest: ; 170a
; Only call during the first fifth of VBlank
ld a, [$cf6c]
@@ -436,7 +436,6 @@
cp 146
ret nc
-GetTiles2: ; 1717
; Copy [$cf6c] 1bpp tiles from [$cf6d-e] to [$cf6f-70]
ld [hSPBuffer], sp
@@ -504,7 +503,7 @@
; 1769
-SafeLoadTiles: ; 1769
+Serve2bppRequest: ; 1769
; Only call during the first fifth of VBlank
ld a, [$cf67]
@@ -517,16 +516,16 @@
ret c
cp 146
ret nc
- jr GetTiles
+ jr _Serve2bppRequest
-LoadTiles: ; 1778
+Serve2bppRequest@VBlank: ; 1778
ld a, [$cf67]
and a
ret z
-GetTiles: ; 177d
+_Serve2bppRequest: ; 177d
; Copy [$cf67] 2bpp tiles from [$cf68-9] to [$cf6a-b]
ld [hSPBuffer], sp
--
⑨