ref: f1513ae8ad47c603abdba2749ef3e4e046817623
parent: 156f2cc3ef66ccaf21bfe1c8a5066928e772ffac
author: Rangi <remy.oukaour+rangi42@gmail.com>
date: Tue May 19 16:00:58 EDT 2020
Add some comments to UpdateBGMap
--- a/home/video.asm
+++ b/home/video.asm
@@ -117,7 +117,7 @@
; 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 @@
jr z, .Attr
; BG Map 1
- dec a
+ dec a ; useless
ldh a, [hBGMapAddress]
ld l, a
@@ -232,7 +232,7 @@
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)