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/items/mart.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/items/mart.asm')
-rw-r--r-- | engine/items/mart.asm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/items/mart.asm b/engine/items/mart.asm index 8afae541a..94e3376a2 100644 --- a/engine/items/mart.asm +++ b/engine/items/mart.asm @@ -536,11 +536,11 @@ BargainShopAskPurchaseQuantity: add hl, de inc hl ld a, [hli] - ld [hMoneyTemp + 2], a + ldh [hMoneyTemp + 2], a ld a, [hl] - ld [hMoneyTemp + 1], a + ldh [hMoneyTemp + 1], a xor a - ld [hMoneyTemp], a + ldh [hMoneyTemp], a and a ret |