You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user