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

@@ -150,9 +150,9 @@ BugContest_JudgeContestants:
ld [hli], a
ld a, [wContestMon]
ld [hli], a
ld a, [hProduct]
ldh a, [hProduct]
ld [hli], a
ld a, [hProduct + 1]
ldh a, [hProduct + 1]
ld [hl], a
call DetermineContestWinners
ret
@@ -287,8 +287,8 @@ ContestScore:
; Determine the player's score in the Bug Catching Contest.
xor a
ld [hProduct], a
ld [hMultiplicand], a
ldh [hProduct], a
ldh [hMultiplicand], a
ld a, [wContestMonSpecies] ; Species
and a