summaryrefslogtreecommitdiff
path: root/engine/pokedex
diff options
context:
space:
mode:
authormid-kid <esteve.varela@gmail.com>2019-06-09 17:46:06 +0200
committermid-kid <esteve.varela@gmail.com>2019-06-09 17:46:06 +0200
commitd6db0104294aa5f449dac69e1965f552d95440fa (patch)
treef0cc33e7f83425cdb2f3aba282ee10c3b2a6b147 /engine/pokedex
parentc048b24d255f5f5ac71f5e9d2f4d4864a06edeaf (diff)
Document high nybble of PrintNum `c` register
Diffstat (limited to 'engine/pokedex')
-rw-r--r--engine/pokedex/pokedex_2.asm9
1 files changed, 6 insertions, 3 deletions
diff --git a/engine/pokedex/pokedex_2.asm b/engine/pokedex/pokedex_2.asm
index 62e7e853b..0f42aea3a 100644
--- a/engine/pokedex/pokedex_2.asm
+++ b/engine/pokedex/pokedex_2.asm
@@ -124,14 +124,16 @@ DisplayDexEntry:
jr z, .skip_height
push hl
push de
+; Print the height with two of the four digits will be in front of the decimal point
ld hl, sp+$0
ld d, h
ld e, l
hlcoord 12, 7
- lb bc, 2, PRINTNUM_MONEY | 4
+ lb bc, 2, (2 << 4) | 4
call PrintNum
+; Replace the decimal point with a ft symbol
hlcoord 14, 7
- ld [hl], $5e ; ft symbol
+ ld [hl], $5e
pop af
pop hl
@@ -148,11 +150,12 @@ DisplayDexEntry:
or d
jr z, .skip_weight
push de
+; Print the height with four of the five digits will be in front of the decimal point
ld hl, sp+$0
ld d, h
ld e, l
hlcoord 11, 9
- lb bc, 2, PRINTNUM_RIGHTALIGN | 5
+ lb bc, 2, (4 << 4) | 5
call PrintNum
pop de