diff options
author | yenatch <yenatch@gmail.com> | 2014-12-28 18:44:23 -0800 |
---|---|---|
committer | yenatch <yenatch@gmail.com> | 2014-12-28 18:44:23 -0800 |
commit | 346844a61328943cd5fffb0a6b7934b97a4fc0cb (patch) | |
tree | 80ed02da4f3f11c49a25622e8310c1856c4b0e6a /items | |
parent | 0c55e33b5ff0a6868eb6d5a7c7dde813b81d1ad8 (diff) |
Replace pointless $FF00+$xx with $ffxx.
Diffstat (limited to 'items')
-rw-r--r-- | items/item_effects.asm | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/items/item_effects.asm b/items/item_effects.asm index 20ce0c313..7c1186664 100644 --- a/items/item_effects.asm +++ b/items/item_effects.asm @@ -2091,19 +2091,19 @@ Functionf36f: ; f36f (3:736f) Functionf378: ; f378 (3:7378) push bc - ld a, $24 + ld a, PartyMon1MaxHP - PartyMon1 call GetPartyParamLocation ld a, [hli] - ld [hPastLeadingZeroes], a ; $ff00+$b3 (aliases: hDividend, hProduct) + ld [hDividend + 0], a ld a, [hl] - ld [hQuotient], a ; $ff00+$b4 (aliases: hMultiplicand) - ld a, $5 - ld [hDivisor], a ; $ff00+$b7 (aliases: hMultiplier) - ld b, $2 + ld [hDividend + 1], a + ld a, 5 + ld [hDivisor], a + ld b, 2 call Divide - ld a, [$FF00+$b5] + ld a, [hQuotient + 1] ld d, a - ld a, [$FF00+$b6] + ld a, [hQuotient + 2] ld e, a pop bc ret @@ -2153,6 +2153,7 @@ Tablef3af: ; f3af ; f3df Functionf3df: ; f3df (3:73df) +; Softboiled/Milk Drink in the field ld a, [$d0d8] dec a ld b, a |