summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-05-19 20:00:58 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-05-19 20:00:58 -0400
commitf1513ae8ad47c603abdba2749ef3e4e046817623 (patch)
treeafe1ef5395238a312d44b2c477c3578528383da1
parent156f2cc3ef66ccaf21bfe1c8a5066928e772ffac (diff)
Add some comments to UpdateBGMap
-rw-r--r--home/video.asm6
1 files changed, 3 insertions, 3 deletions
diff --git a/home/video.asm b/home/video.asm
index 008f1057c..5578ad293 100644
--- a/home/video.asm
+++ b/home/video.asm
@@ -117,7 +117,7 @@ UpdateBGMap::
; Update the BG Map, in thirds, from wTilemap and wAttrmap.
ldh a, [hBGMapMode]
- and a
+ and a ; 0
ret z
; BG Map 0
@@ -127,7 +127,7 @@ UpdateBGMap::
jr z, .Attr
; BG Map 1
- dec a
+ dec a ; useless
ldh a, [hBGMapAddress]
ld l, a
@@ -232,7 +232,7 @@ THIRD_HEIGHT EQU SCREEN_HEIGHT / 3
ldh [hBGMapThird], a
; Rows of tiles in a third
- ld a, SCREEN_HEIGHT / 3
+ ld a, THIRD_HEIGHT
; Discrepancy between wTilemap and BGMap
ld bc, BG_MAP_WIDTH - (SCREEN_WIDTH - 1)