summaryrefslogtreecommitdiff
path: root/engine/hp_bar.asm
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2014-05-26 14:04:56 -0700
committeryenatch <yenatch@gmail.com>2014-05-26 22:04:39 -0700
commit40c17c906b2b3f65b3b04b1933b90238a7ac5566 (patch)
tree6de26c959808d5a792b692f2300c33557c1dbfab /engine/hp_bar.asm
parent52ba96f5f4ec53450a0ff6257ea1040d09b7e537 (diff)
Remove most static wram addresses. Use labels instead.
For unknown addresses, use "w<address>". Label overleads are still an issue.
Diffstat (limited to 'engine/hp_bar.asm')
-rwxr-xr-xengine/hp_bar.asm8
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/hp_bar.asm b/engine/hp_bar.asm
index 79416f8a..b4d7125c 100755
--- a/engine/hp_bar.asm
+++ b/engine/hp_bar.asm
@@ -202,13 +202,13 @@ UpdateHPBar_CalcHPDifference: ; fad7 (3:7ad7)
UpdateHPBar_PrintHPNumber: ; faf5 (3:7af5)
push af
push de
- ld a, [wListMenuID] ; $cf94
+ ld a, [wListMenuID] ; wListMenuID
and a
jr z, .asm_fb2d
ld a, [wHPBarOldHP]
- ld [$cef1], a
+ ld [wcef1], a
ld a, [wHPBarOldHP+1]
- ld [$cef0], a
+ ld [wcef0], a
push hl
ld a, [$fff6]
bit 0, a
@@ -225,7 +225,7 @@ UpdateHPBar_PrintHPNumber: ; faf5 (3:7af5)
ld [hli], a
ld [hli], a
pop hl
- ld de, $cef0
+ ld de, wcef0
ld bc, $203
call PrintNumber
call DelayFrame