summaryrefslogtreecommitdiff
path: root/scripts/silphco8.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/silphco8.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/silphco8.asm')
-rwxr-xr-xscripts/silphco8.asm20
1 files changed, 10 insertions, 10 deletions
diff --git a/scripts/silphco8.asm b/scripts/silphco8.asm
index 19cae4ac..5a954cbb 100755
--- a/scripts/silphco8.asm
+++ b/scripts/silphco8.asm
@@ -9,18 +9,18 @@ SilphCo8Script: ; 56504 (15:6504)
ret
SilphCo8Script_5651a: ; 5651a (15:651a)
- ld hl, $d126
+ ld hl, wd126
bit 5, [hl]
res 5, [hl]
ret z
ld hl, DataTable_5653e ; $653e
call SilphCo8Script_56541
call SilphCo8Script_5656d
- ld a, [$d832]
+ ld a, [wd832]
bit 0, a
ret nz
ld a, $5f
- ld [$d09f], a
+ ld [wd09f], a
ld bc, $403
ld a, $17
jp Predef ; indirect jump to Func_ee9e (ee9e (3:6e9e))
@@ -30,7 +30,7 @@ DataTable_5653e: ; 5653e (15:653e)
SilphCo8Script_56541: ; 56541 (15:6541)
push hl
- ld hl, $d73f
+ ld hl, wd73f
ld a, [hli]
ld b, a
ld a, [hl]
@@ -54,7 +54,7 @@ SilphCo8Script_56541: ; 56541 (15:6541)
ld a, [hli]
cp c
jr nz, .asm_5654d
- ld hl, $d73f
+ ld hl, wd73f
xor a
ld [hli], a
ld [hl], a
@@ -68,7 +68,7 @@ SilphCo8Script_5656d: ; 5656d (15:656d)
ld a, [$ffe0]
and a
ret z
- ld hl, $d832
+ ld hl, wd832
set 0, [hl]
ret
@@ -87,7 +87,7 @@ SilphCo8TrainerHeaders: ; 56585 (15:6585)
SilphCo8TrainerHeader0: ; 56585 (15:6585)
db $2 ; flag's bit
db ($4 << 4) ; trainer's view range
- dw $d831 ; flag's byte
+ dw wd831 ; flag's byte
dw SilphCo8BattleText1 ; 0x65e6 TextBeforeBattle
dw SilphCo8AfterBattleText1 ; 0x65f0 TextAfterBattle
dw SilphCo8EndBattleText1 ; 0x65eb TextEndBattle
@@ -96,7 +96,7 @@ SilphCo8TrainerHeader0: ; 56585 (15:6585)
SilphCo8TrainerHeader1: ; 56591 (15:6591)
db $3 ; flag's bit
db ($4 << 4) ; trainer's view range
- dw $d831 ; flag's byte
+ dw wd831 ; flag's byte
dw SilphCo8BattleText2 ; 0x65f5 TextBeforeBattle
dw SilphCo8AfterBattleText2 ; 0x65ff TextAfterBattle
dw SilphCo8EndBattleText2 ; 0x65fa TextEndBattle
@@ -105,7 +105,7 @@ SilphCo8TrainerHeader1: ; 56591 (15:6591)
SilphCo8TrainerHeader2: ; 5659d (15:659d)
db $4 ; flag's bit
db ($4 << 4) ; trainer's view range
- dw $d831 ; flag's byte
+ dw wd831 ; flag's byte
dw SilphCo8BattleText3 ; 0x6604 TextBeforeBattle
dw SilphCo8AfterBattleText3 ; 0x660e TextAfterBattle
dw SilphCo8EndBattleText3 ; 0x6609 TextEndBattle
@@ -115,7 +115,7 @@ SilphCo8TrainerHeader2: ; 5659d (15:659d)
SilphCo8Text1: ; 565aa (15:65aa)
db $08 ; asm
- ld a, [$d838]
+ ld a, [wd838]
bit 7, a
ld hl, SilphCo8Text_565c3
jr nz, asm_a468f ; 0x565b3