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:
@@ -12,7 +12,7 @@ NamesPointers::
|
||||
GetName::
|
||||
; Return name wCurSpecies from name list wNamedObjectTypeBuffer in wStringBuffer1.
|
||||
|
||||
ld a, [hROMBank]
|
||||
ldh a, [hROMBank]
|
||||
push af
|
||||
push hl
|
||||
push bc
|
||||
@@ -112,7 +112,7 @@ GetBasePokemonName::
|
||||
GetPokemonName::
|
||||
; Get Pokemon name for wNamedObjectIndexBuffer.
|
||||
|
||||
ld a, [hROMBank]
|
||||
ldh a, [hROMBank]
|
||||
push af
|
||||
push hl
|
||||
ld a, BANK(PokemonNames)
|
||||
|
||||
Reference in New Issue
Block a user