Use labels instead of constants for HRAM

Use explicit ldh instruction to access HRAM locations, don't rely on optimizing ld
This commit is contained in:
Rangi
2018-08-25 14:28:22 -04:00
parent 376c64468b
commit eb1e3636bb
243 changed files with 4706 additions and 4661 deletions

View File

@@ -1,6 +1,6 @@
BattleStart_TrainerHuds:
ld a, $e4
ld [rOBP0], a
ldh [rOBP0], a
call LoadBallIconGFX
call ShowPlayerMonsRemaining
ld a, [wBattleMode]
@@ -10,7 +10,7 @@ BattleStart_TrainerHuds:
EnemySwitch_TrainerHud:
ld a, $e4
ld [rOBP0], a
ldh [rOBP0], a
call LoadBallIconGFX
jp ShowOTTrainerMonsRemaining
@@ -253,5 +253,5 @@ _ShowLinkBattleParticipants:
call GetSGBLayout
call SetPalettes
ld a, $e4
ld [rOBP0], a
ldh [rOBP0], a
ret