mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
Add some comments to UpdateBGMap
This commit is contained in:
parent
156f2cc3ef
commit
f1513ae8ad
@ -117,7 +117,7 @@ UpdateBGMap::
|
|||||||
; Update the BG Map, in thirds, from wTilemap and wAttrmap.
|
; Update the BG Map, in thirds, from wTilemap and wAttrmap.
|
||||||
|
|
||||||
ldh a, [hBGMapMode]
|
ldh a, [hBGMapMode]
|
||||||
and a
|
and a ; 0
|
||||||
ret z
|
ret z
|
||||||
|
|
||||||
; BG Map 0
|
; BG Map 0
|
||||||
@ -127,7 +127,7 @@ UpdateBGMap::
|
|||||||
jr z, .Attr
|
jr z, .Attr
|
||||||
|
|
||||||
; BG Map 1
|
; BG Map 1
|
||||||
dec a
|
dec a ; useless
|
||||||
|
|
||||||
ldh a, [hBGMapAddress]
|
ldh a, [hBGMapAddress]
|
||||||
ld l, a
|
ld l, a
|
||||||
@ -232,7 +232,7 @@ THIRD_HEIGHT EQU SCREEN_HEIGHT / 3
|
|||||||
ldh [hBGMapThird], a
|
ldh [hBGMapThird], a
|
||||||
|
|
||||||
; Rows of tiles in a third
|
; Rows of tiles in a third
|
||||||
ld a, SCREEN_HEIGHT / 3
|
ld a, THIRD_HEIGHT
|
||||||
|
|
||||||
; Discrepancy between wTilemap and BGMap
|
; Discrepancy between wTilemap and BGMap
|
||||||
ld bc, BG_MAP_WIDTH - (SCREEN_WIDTH - 1)
|
ld bc, BG_MAP_WIDTH - (SCREEN_WIDTH - 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user