Remove "Buffer" suffix from two HRAM labels
This commit is contained in:
@@ -415,11 +415,11 @@ PadAttrmapForHDMATransfer:
|
||||
|
||||
PadMapForHDMATransfer:
|
||||
; pad a 20x18 map to 32x18 for HDMA transfer
|
||||
; back up the padding value in c to hMapObjectIndexBuffer
|
||||
ldh a, [hMapObjectIndexBuffer]
|
||||
; back up the padding value in c to hMapObjectIndex
|
||||
ldh a, [hMapObjectIndex]
|
||||
push af
|
||||
ld a, c
|
||||
ldh [hMapObjectIndexBuffer], a
|
||||
ldh [hMapObjectIndex], a
|
||||
|
||||
; for each row on the screen
|
||||
ld c, SCREEN_HEIGHT
|
||||
@@ -435,7 +435,7 @@ PadMapForHDMATransfer:
|
||||
jr nz, .loop2
|
||||
|
||||
; load the original padding value of c into hl for 32 - 20 = 12 rows
|
||||
ldh a, [hMapObjectIndexBuffer]
|
||||
ldh a, [hMapObjectIndex]
|
||||
ld b, BG_MAP_WIDTH - SCREEN_WIDTH
|
||||
.loop3
|
||||
ld [hli], a
|
||||
@@ -445,9 +445,9 @@ PadMapForHDMATransfer:
|
||||
dec c
|
||||
jr nz, .loop1
|
||||
|
||||
; restore the original value of hMapObjectIndexBuffer
|
||||
; restore the original value of hMapObjectIndex
|
||||
pop af
|
||||
ldh [hMapObjectIndexBuffer], a
|
||||
ldh [hMapObjectIndex], a
|
||||
ret
|
||||
|
||||
HDMATransfer2bpp::
|
||||
|
Reference in New Issue
Block a user