Document high nybble of PrintNum c register

This commit is contained in:
mid-kid
2019-06-09 17:46:06 +02:00
parent c048b24d25
commit d6db010429
2 changed files with 8 additions and 3 deletions

View File

@@ -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