mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
9dec80b07e
Introduce MONICON_* constants Introduce BATTLEPLAYERACTION_* constants
29 lines
477 B
NASM
29 lines
477 B
NASM
PrintLevel::
|
|
; Print wTempMonLevel at hl
|
|
|
|
ld a, [wTempMonLevel]
|
|
ld [hl], "<LV>"
|
|
inc hl
|
|
|
|
; How many digits?
|
|
ld c, 2
|
|
cp 100 ; This is distinct from MAX_LEVEL.
|
|
jr c, Print8BitNumRightAlign
|
|
|
|
; 3-digit numbers overwrite the :L.
|
|
dec hl
|
|
inc c
|
|
jr Print8BitNumRightAlign
|
|
|
|
PrintLevel_Force3Digits::
|
|
; Print :L and all 3 digits
|
|
ld [hl], "<LV>"
|
|
inc hl
|
|
ld c, 3
|
|
|
|
Print8BitNumRightAlign::
|
|
ld [wDeciramBuffer], a
|
|
ld de, wDeciramBuffer
|
|
ld b, PRINTNUM_RIGHTALIGN | 1
|
|
jp PrintNum
|