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/rtc/rtc.asm | |
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/rtc/rtc.asm')
-rw-r--r-- | engine/rtc/rtc.asm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/rtc/rtc.asm b/engine/rtc/rtc.asm index 4a8aab50a..f79c3f297 100644 --- a/engine/rtc/rtc.asm +++ b/engine/rtc/rtc.asm @@ -24,7 +24,7 @@ StartRTC: GetTimeOfDay:: ; get time of day based on the current hour - ld a, [hHours] ; hour + ldh a, [hHours] ; hour ld hl, TimesOfDay .check @@ -65,11 +65,11 @@ StageRTCTimeForSave: ld hl, wRTC ld a, [wCurDay] ld [hli], a - ld a, [hHours] + ldh a, [hHours] ld [hli], a - ld a, [hMinutes] + ldh a, [hMinutes] ld [hli], a - ld a, [hSeconds] + ldh a, [hSeconds] ld [hli], a ret |