diff options
| author | Rangi <remy.oukaour+rangi42@gmail.com> | 2018-08-25 14:28:22 -0400 |
|---|---|---|
| committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2018-08-25 14:28:22 -0400 |
| commit | eb1e3636bb71509546c274bf2a5910d8e71a9600 (patch) | |
| tree | 24d7742604073b2afb86c1225258f8217d1653e7 /engine/events/bug_contest | |
| parent | 376c64468bab8d162da43fc6e1b6f0942943cf43 (diff) | |
Use labels instead of constants for HRAM
Use explicit ldh instruction to access HRAM locations, don't rely on optimizing ld
Diffstat (limited to 'engine/events/bug_contest')
| -rw-r--r-- | engine/events/bug_contest/judging.asm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/events/bug_contest/judging.asm b/engine/events/bug_contest/judging.asm index a6ec3baf6..a23535998 100644 --- a/engine/events/bug_contest/judging.asm +++ b/engine/events/bug_contest/judging.asm @@ -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 |
