aboutsummaryrefslogtreecommitdiffstats
path: root/engine/oak_speech2.asm
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2014-05-26 14:04:56 -0700
committeryenatch <yenatch@gmail.com>2014-05-26 22:04:39 -0700
commit40c17c906b2b3f65b3b04b1933b90238a7ac5566 (patch)
tree6de26c959808d5a792b692f2300c33557c1dbfab /engine/oak_speech2.asm
parentDon't hardcode wram sections (except for alignment). (diff)
downloadpokeyellow-40c17c906b2b3f65b3b04b1933b90238a7ac5566.tar.gz
pokeyellow-40c17c906b2b3f65b3b04b1933b90238a7ac5566.tar.xz
pokeyellow-40c17c906b2b3f65b3b04b1933b90238a7ac5566.zip
Remove most static wram addresses. Use labels instead.
For unknown addresses, use "w<address>". Label overleads are still an issue.
Diffstat (limited to 'engine/oak_speech2.asm')
-rwxr-xr-xengine/oak_speech2.asm44
1 files changed, 22 insertions, 22 deletions
diff --git a/engine/oak_speech2.asm b/engine/oak_speech2.asm
index 697a268d..d7d13c47 100755
--- a/engine/oak_speech2.asm
+++ b/engine/oak_speech2.asm
@@ -2,20 +2,20 @@ LoadDefaultNamesPlayer: ; 695d (1:695d)
call Func_6a12
ld de, DefaultNamesPlayer ; $6aa8
call DisplayIntroNameTextBox
- ld a, [wCurrentMenuItem] ; $cc26
+ ld a, [wCurrentMenuItem] ; wCurrentMenuItem
and a
jr z, .asm_697a
ld hl, DefaultNamesPlayerList ; $6af2
call Func_6ad6
- ld de, W_PLAYERNAME ; $d158
+ ld de, W_PLAYERNAME ; wd158
call Func_69ec
jr .asm_6999
.asm_697a
- ld hl, W_PLAYERNAME ; $d158
+ ld hl, W_PLAYERNAME ; wd158
xor a
- ld [$d07d], a
+ ld [wd07d], a
call DisplayNamingScreen
- ld a, [$cf4b]
+ ld a, [wcf4b]
cp $50
jr z, .asm_697a
call ClearScreen
@@ -35,20 +35,20 @@ LoadDefaultNamesRival: ; 69a4 (1:69a4)
call Func_6a12 ; 0x69a4 call 0x6a12
ld de, DefaultNamesRival
call DisplayIntroNameTextBox
- ld a, [wCurrentMenuItem] ; $cc26
+ ld a, [wCurrentMenuItem] ; wCurrentMenuItem
and a
jr z, .asm_69c1
ld hl, DefaultNamesRivalList
call Func_6ad6
- ld de, W_RIVALNAME ; $d34a
+ ld de, W_RIVALNAME ; wd34a
call Func_69ec
jr .asm_69e1
.asm_69c1
- ld hl, W_RIVALNAME ; $d34a
+ ld hl, W_RIVALNAME ; wd34a
ld a, $1
- ld [$d07d], a
+ ld [wd07d], a
call DisplayNamingScreen
- ld a, [$cf4b]
+ ld a, [wcf4b]
cp $50
jr z, .asm_69c1
call ClearScreen
@@ -72,18 +72,18 @@ Func_69ec: ; 69ec (1:69ec)
ld c, $a
call DelayFrames
pop de
- ld hl, $cd6d
+ ld hl, wcd6d
ld bc, $b
call CopyData
call Delay3
- FuncCoord 12, 4 ; $c3fc
+ FuncCoord 12, 4
ld hl, Coord
ld de, $67d
ld a, $ff
jr asm_6a19
Func_6a12: ; 6a12 (1:6a12)
- FuncCoord 5, 4 ; $c3f5
+ FuncCoord 5, 4
ld hl, Coord
ld de, $67d
xor a
@@ -161,25 +161,25 @@ DisplayIntroNameTextBox: ; 6a6c (1:6a6c)
ld b, $a
ld c, $9
call TextBoxBorder
- FuncCoord 3, 0 ; $c3a3
+ FuncCoord 3, 0
ld hl, Coord
ld de, .namestring ; $6aa3
call PlaceString
pop de
- FuncCoord 2, 2 ; $c3ca
+ FuncCoord 2, 2
ld hl, Coord
call PlaceString
call UpdateSprites
xor a
- ld [wCurrentMenuItem], a ; $cc26
- ld [wLastMenuItem], a ; $cc2a
+ ld [wCurrentMenuItem], a ; wCurrentMenuItem
+ ld [wLastMenuItem], a ; wLastMenuItem
inc a
- ld [wTopMenuItemX], a ; $cc25
- ld [wMenuWatchedKeys], a ; $cc29
+ ld [wTopMenuItemX], a ; wTopMenuItemX
+ ld [wMenuWatchedKeys], a ; wMenuWatchedKeys
inc a
- ld [wTopMenuItemY], a ; $cc24
+ ld [wTopMenuItemY], a ; wTopMenuItemY
inc a
- ld [wMaxMenuItem], a ; $cc28
+ ld [wMaxMenuItem], a ; wMaxMenuItem
jp HandleMenuInput
.namestring ; 6aa3 (1:6aa3)
@@ -235,7 +235,7 @@ Func_6ad6: ; 6ad6 (1:6ad6)
.asm_6ae7
ld h, d
ld l, e
- ld de, $cd6d
+ ld de, wcd6d
ld bc, $14
jp CopyData
IF _RED