Blindly use wram labels for everything except mobile, part 1.

Wram banks and mobile make this tough, since any address can secretly be a ghost.

As usual, mobile completely disregards 99% of the codebase. It's been ignored in kind.
This commit is contained in:
yenatch
2015-02-08 00:03:32 -08:00
parent 0683bc8770
commit 8e03321069
21 changed files with 10879 additions and 10151 deletions

View File

@@ -40,7 +40,7 @@ BattleCommand54: ; 37588
; Raise Attack and Defense, and lower Speed.
ld a, $1
ld [$c689], a
ld [wc689], a
call AnimateCurrentMove
ld a, $2
call Function36532

View File

@@ -5,11 +5,11 @@ BattleCommand34: ; 37418
call Function34548
jr nz, .asm_3742b
ld a, [$c689]
ld a, [wc689]
push af
call BattleCommand0a
pop af
ld [$c689], a
ld [wc689], a
.asm_3742b
call Function37e36

View File

@@ -24,7 +24,7 @@ BattleCommand1b: ; 373c9
.use
ld a, b
ld [hl], a
ld [$d265], a
ld [wd265], a
push af
ld a, BATTLE_VARS_MOVE_ANIM
@@ -40,11 +40,11 @@ BattleCommand1b: ; 373c9
call Function34548
jr nz, .done
ld a, [$c689]
ld a, [wc689]
push af
call BattleCommand0a
pop af
ld [$c689], a
ld [wc689], a
.done
call BattleCommandaa

View File

@@ -44,7 +44,7 @@ BattleCommand5c: ; 37734
and a
jr nz, .asm_37750
ld a, 1
ld [$c73e], a
ld [wc73e], a
.asm_37750
ld a, [AttackMissed]

View File

@@ -21,7 +21,7 @@ BattleCommand50: ; 37492
; Can't steal mail.
ld [$d265], a
ld [wd265], a
ld d, a
callba ItemIsMail
ret c
@@ -45,7 +45,7 @@ BattleCommand50: ; 37492
ld [de], a
call .playeritem
ld a, [$d265]
ld a, [wd265]
ld [hl], a
ld [de], a
jr .stole
@@ -69,7 +69,7 @@ BattleCommand50: ; 37492
; Can't steal mail!
ld [$d265], a
ld [wd265], a
ld d, a
callba ItemIsMail
ret c
@@ -87,7 +87,7 @@ BattleCommand50: ; 37492
ld [de], a
call .enemyitem
ld a, [$d265]
ld a, [wd265]
ld [hl], a
ld [de], a