summaryrefslogtreecommitdiff
path: root/home/menu_window.asm
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2018-06-24 19:54:03 -0400
committerGitHub <noreply@github.com>2018-06-24 19:54:03 -0400
commit0cbe04da44744073c4c164df970b1571b1fda1a6 (patch)
tree3af0a92f5f7dc10f32eed04d9daae52749fc33c2 /home/menu_window.asm
parent131875d3e37044ec995287af7c93decd86a0d659 (diff)
parent1d9a68dbdd0132035f1fc7b7ea8f7fdc24741507 (diff)
Merge pull request #531 from mid-kid/master
Remove all address comments
Diffstat (limited to 'home/menu_window.asm')
-rw-r--r--home/menu_window.asm35
1 files changed, 12 insertions, 23 deletions
diff --git a/home/menu_window.asm b/home/menu_window.asm
index aceb00343..2800d19ca 100644
--- a/home/menu_window.asm
+++ b/home/menu_window.asm
@@ -1,7 +1,6 @@
-PushWindow:: ; 1c00
+PushWindow::
callfar _PushWindow
ret
-; 1c07
ExitMenu:: ; 0x1c07
push af
@@ -79,7 +78,7 @@ GetMenuBoxDims:: ; 0x1c53
ret
; 0x1c66
-CopyMenuData:: ; 1c66
+CopyMenuData::
push hl
push de
push bc
@@ -96,9 +95,8 @@ CopyMenuData:: ; 1c66
pop de
pop hl
ret
-; 1c7e
-GetWindowStackTop:: ; 1c7e
+GetWindowStackTop::
ld hl, wWindowStackPointer
ld a, [hli]
ld h, [hl]
@@ -108,9 +106,8 @@ GetWindowStackTop:: ; 1c7e
ld h, [hl]
ld l, a
ret
-; 1c89
-PlaceVerticalMenuItems:: ; 1c89
+PlaceVerticalMenuItems::
call CopyMenuData
ld hl, wMenuDataPointer
ld e, [hl]
@@ -143,17 +140,15 @@ PlaceVerticalMenuItems:: ; 1c89
ld b, $0
add hl, bc
jp PlaceString
-; 1cbb
-MenuBox:: ; 1cbb
+MenuBox::
call MenuBoxCoord2Tile
call GetMenuBoxDims
dec b
dec c
jp TextBox
-; 1cc6
-GetMenuTextStartCoord:: ; 1cc6
+GetMenuTextStartCoord::
ld a, [wMenuBorderTopCoord]
ld b, a
inc b
@@ -175,9 +170,8 @@ GetMenuTextStartCoord:: ; 1cc6
.bit_7_clear
ret
-; 1ce1
-ClearMenuBoxInterior:: ; 1ce1
+ClearMenuBoxInterior::
call MenuBoxCoord2Tile
ld bc, SCREEN_WIDTH + 1
add hl, bc
@@ -186,27 +180,24 @@ ClearMenuBoxInterior:: ; 1ce1
dec c
call ClearBox
ret
-; 1cf1
-ClearWholeMenuBox:: ; 1cf1
+ClearWholeMenuBox::
call MenuBoxCoord2Tile
call GetMenuBoxDims
inc c
inc b
call ClearBox
ret
-; 1cfd
-MenuBoxCoord2Tile:: ; 1cfd
+MenuBoxCoord2Tile::
ld a, [wMenuBorderLeftCoord]
ld c, a
ld a, [wMenuBorderTopCoord]
ld b, a
-; 1d05
-Coord2Tile:: ; 1d05
+Coord2Tile::
; Return the address of wTileMap(c, b) in hl.
xor a
ld h, a
@@ -226,15 +217,14 @@ Coord2Tile:: ; 1d05
bccoord 0, 0
add hl, bc
ret
-; 1d19
-MenuBoxCoord2Attr:: ; 1d19
+MenuBoxCoord2Attr::
ld a, [wMenuBorderLeftCoord]
ld c, a
ld a, [wMenuBorderTopCoord]
ld b, a
-Coord2Attr:: ; 1d21
+Coord2Attr::
; Return the address of wAttrMap(c, b) in hl.
xor a
ld h, a
@@ -254,4 +244,3 @@ Coord2Attr:: ; 1d21
bccoord 0, 0, wAttrMap
add hl, bc
ret
-; 1d35