summaryrefslogtreecommitdiff
path: root/scripts/route16gate.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 /scripts/route16gate.asm
parent52ba96f5f4ec53450a0ff6257ea1040d09b7e537 (diff)
Remove most static wram addresses. Use labels instead.
For unknown addresses, use "w<address>". Label overleads are still an issue.
Diffstat (limited to 'scripts/route16gate.asm')
-rwxr-xr-xscripts/route16gate.asm20
1 files changed, 10 insertions, 10 deletions
diff --git a/scripts/route16gate.asm b/scripts/route16gate.asm
index ce1f6f3d..eb85ac22 100755
--- a/scripts/route16gate.asm
+++ b/scripts/route16gate.asm
@@ -1,5 +1,5 @@
Route16GateScript: ; 496be (12:56be)
- ld hl, $d732
+ ld hl, wd732
res 5, [hl]
call EnableAutoTextBoxDrawing
ld a, [W_ROUTE16GATECURSCRIPT]
@@ -23,16 +23,16 @@ Route16GateScript0: ; 496d7 (12:56d7)
call DisplayTextID
xor a
ld [hJoyHeld], a
- ld a, [$cd3d]
+ ld a, [wWhichTrade]
cp $1
jr z, .asm_4970e ; 0x496f1 $1b
- ld a, [$cd3d]
+ ld a, [wWhichTrade]
dec a
- ld [$cd38], a
+ ld [wcd38], a
ld b, $0
ld c, a
ld a, $40
- ld hl, $ccd3
+ ld hl, wccd3
call FillMemory
call Func_3486
ld a, $1
@@ -51,7 +51,7 @@ CoordsData_49714: ; 49714 (12:5714)
db $FF
Route16GateScript1: ; 4971d (12:571d)
- ld a, [$cd38]
+ ld a, [wcd38]
and a
ret nz
ld a, $f0
@@ -62,21 +62,21 @@ Route16GateScript2: ; 49727 (12:5727)
ld [H_SPRITEHEIGHT], a
call DisplayTextID
ld a, $1
- ld [$cd38], a
+ ld [wcd38], a
ld a, $10
- ld [$ccd3], a
+ ld [wccd3], a
call Func_3486
ld a, $3
ld [W_ROUTE16GATECURSCRIPT], a
ret
Route16GateScript3: ; 49741 (12:5741)
- ld a, [$cd38]
+ ld a, [wcd38]
and a
ret nz
xor a
ld [wJoyIgnore], a
- ld hl, $d730
+ ld hl, wd730
res 7, [hl]
ld a, $0
ld [W_ROUTE16GATECURSCRIPT], a