summaryrefslogtreecommitdiff
path: root/scripts/route15gateupstairs.asm
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2014-07-12 09:02:49 -0400
committeryenatch <yenatch@gmail.com>2014-07-12 09:02:49 -0400
commitfb11ff7e55be56cef9234c8443614f04f2157a1e (patch)
treea6aa8d0745bd07d0b80090491b5e4b6652de4420 /scripts/route15gateupstairs.asm
parent15427f532085846ab6b51719be687951a094cb6c (diff)
parent9f29f21d9d43baa7124991dcf3b093fc6c615706 (diff)
Merge pull request #48 from yenatch/master
Clean up post-split main.asm. Get rid of static wram addresses. Lay out a foundation for Yellow.
Diffstat (limited to 'scripts/route15gateupstairs.asm')
-rwxr-xr-xscripts/route15gateupstairs.asm13
1 files changed, 6 insertions, 7 deletions
diff --git a/scripts/route15gateupstairs.asm b/scripts/route15gateupstairs.asm
index fde968bb..2d328122 100755
--- a/scripts/route15gateupstairs.asm
+++ b/scripts/route15gateupstairs.asm
@@ -7,25 +7,24 @@ Route15GateUpstairsTextPointers: ; 4964d (12:564d)
Route15GateUpstairsText1: ; 49651 (12:5651)
db $8
- ld a, [$d7dd]
+ ld a, [wd7dd]
bit 0, a
jr nz, .asm_49683 ; 0x49657 $2a
ld a, 50 ; pokemon needed
ld [$ffdb], a
ld a, EXP__ALL ; oak's aide reward
ld [$ffdc], a
- ld [$d11e], a
+ ld [wd11e], a
call GetItemName
- ld hl, $cd6d
- ld de, $cc5b
+ ld hl, wcd6d
+ ld de, wcc5b
ld bc, $000d
call CopyData
- ld a, $62
- call Predef ; call oak's aide script
+ predef OaksAideScript ; call oak's aide script
ld a, [$ffdb]
cp $1
jr nz, .asm_49689 ; 0x4967c $b
- ld hl, $d7dd
+ ld hl, wd7dd
set 0, [hl]
.asm_49683
ld hl, Route15GateUpstairsText_4968c