summaryrefslogtreecommitdiff
path: root/scripts/celadonmartelevator.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/celadonmartelevator.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/celadonmartelevator.asm')
-rwxr-xr-xscripts/celadonmartelevator.asm17
1 files changed, 8 insertions, 9 deletions
diff --git a/scripts/celadonmartelevator.asm b/scripts/celadonmartelevator.asm
index 9712ef04..1e32647d 100755
--- a/scripts/celadonmartelevator.asm
+++ b/scripts/celadonmartelevator.asm
@@ -1,5 +1,5 @@
CeladonMartElevatorScript: ; 48600 (12:4600)
- ld hl, $d126
+ ld hl, wd126
bit 5, [hl]
res 5, [hl]
push hl
@@ -9,16 +9,16 @@ CeladonMartElevatorScript: ; 48600 (12:4600)
res 7, [hl]
call nz, CeladonMartElevatorScript_48654
xor a
- ld [$cf0c], a
+ ld [wcf0c], a
inc a
- ld [$cc3c], a
+ ld [wcc3c], a
ret
CeladonMartElevatorScript_4861c: ; 4861c (12:461c)
- ld hl, $d3af
- ld a, [$d73b]
+ ld hl, wd3af
+ ld a, [wd73b]
ld b, a
- ld a, [$d73c]
+ ld a, [wd73c]
ld c, a
call CeladonMartElevatorScript_4862a
@@ -35,7 +35,7 @@ CeladonMartElevatorScript_48631: ; 48631 (12:4631)
ld hl, CeladonMartElavatorFloors ; $4643
call LoadItemList
ld hl, CeldaonMartElevatorWarpMaps ; $464a
- ld de, $cc5b
+ ld de, wcc5b
ld bc, $000a
jp CopyData
@@ -66,6 +66,5 @@ CeladonMartElevatorText1: ; 4865e (12:465e)
db $08 ; asm
call CeladonMartElevatorScript_48631
ld hl, CeldaonMartElevatorWarpMaps ; $464a
- ld a, $61
- call Predef
+ predef Func_1c9c6
jp TextScriptEnd