diff options
author | yenatch <yenatch@gmail.com> | 2017-12-10 01:47:10 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-10 01:47:10 -0500 |
commit | 94c7def4883fbdbcd3987a067443a2069b8bb610 (patch) | |
tree | 171c67509afba62571266bd6bebbfdb829d2a876 /home.asm | |
parent | 89b9292db0898f8ad2b6ea8513a3190762eb58c8 (diff) | |
parent | d554b997c590825f030bd1be71989653b16a2ae0 (diff) |
Merge pull request #409 from roukaour/master
Document constants with comments, actual names, and more thorough usage
Diffstat (limited to 'home.asm')
-rw-r--r-- | home.asm | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -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] @@ -1832,7 +1830,7 @@ PrintBCDNumber:: ; 38bb ; 0x38f2 PrintBCDDigit:: ; 38f2 - and a, %00001111 + and %00001111 and a jr z, .zeroDigit .nonzeroDigit @@ -1847,7 +1845,7 @@ PrintBCDDigit:: ; 38f2 .skipCurrencySymbol res 7, b ; unset 7 to indicate that a nonzero digit has been reached .outputDigit - add a, "0" + add "0" ld [hli], a jp PrintLetterDelay |