summaryrefslogtreecommitdiff
path: root/home.asm
diff options
context:
space:
mode:
authorRemy Oukaour <remy.oukaour@gmail.com>2017-12-09 00:50:59 -0500
committerRemy Oukaour <remy.oukaour@gmail.com>2017-12-09 02:15:46 -0500
commit512863989fb2cb17bcca2f27a61fe3fa8f567b9a (patch)
tree84ab5a58da5e42fa32bc5eb2779d6a47c54ce71e /home.asm
parent89b9292db0898f8ad2b6ea8513a3190762eb58c8 (diff)
Document constants with comments, actual names, and more thorough usage
Diffstat (limited to 'home.asm')
-rw-r--r--home.asm6
1 files changed, 2 insertions, 4 deletions
diff --git a/home.asm b/home.asm
index 4d9600c54..435c2e55c 100644
--- a/home.asm
+++ b/home.asm
@@ -718,22 +718,20 @@ SetHPPal:: ; 334e
GetHPPal:: ; 3353
; Get palette for hp bar pixel length e in d.
-
ld d, HP_GREEN
ld a, e
cp (50 * 48 / 100)
ret nc
- inc d ; yellow
+ inc d ; HP_YELLOW
cp (21 * 48 / 100)
ret nc
- inc d ; red
+ inc d ; HP_RED
ret
; 335f
CountSetBits:: ; 0x335f
; Count the number of set bits in b bytes starting from hl.
; Return in a, c and [wd265].
-
ld c, 0
.next
ld a, [hli]