diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2019-11-03 20:17:04 -0500 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2019-11-03 20:17:04 -0500 |
commit | 4d32035d4f68157e11c5eab2311ab760eb481339 (patch) | |
tree | 10738f3481638317b09a36f0862c599a77fdeeba /home/print_level.asm | |
parent | 0c7b309f7f275f7cfee99bddea8b645c4c8f5f7f (diff) |
Bit 6 of PrintNum left-aligns numbers
Diffstat (limited to 'home/print_level.asm')
-rw-r--r-- | home/print_level.asm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/home/print_level.asm b/home/print_level.asm index d10b8f8a1..bdd11aabb 100644 --- a/home/print_level.asm +++ b/home/print_level.asm @@ -8,12 +8,12 @@ PrintLevel:: ; How many digits? ld c, 2 cp 100 ; This is distinct from MAX_LEVEL. - jr c, Print8BitNumRightAlign + jr c, Print8BitNumLeftAlign ; 3-digit numbers overwrite the :L. dec hl inc c - jr Print8BitNumRightAlign + jr Print8BitNumLeftAlign PrintLevel_Force3Digits:: ; Print :L and all 3 digits @@ -21,8 +21,8 @@ PrintLevel_Force3Digits:: inc hl ld c, 3 -Print8BitNumRightAlign:: +Print8BitNumLeftAlign:: ld [wDeciramBuffer], a ld de, wDeciramBuffer - ld b, PRINTNUM_RIGHTALIGN | 1 + ld b, PRINTNUM_LEFTALIGN | 1 jp PrintNum |