pokered/engine/pokemon/status_ailments.asm
Rangi 308189b638
Some checks failed
CI / build (push) Has been cancelled
Use ld_hli_a_string macro to make byte-by-byte strings more obvious (#540)
2025-11-23 21:19:21 -06:00

27 lines
314 B
NASM

PrintStatusAilment::
ld a, [de]
bit PSN, a
jr nz, .psn
bit BRN, a
jr nz, .brn
bit FRZ, a
jr nz, .frz
bit PAR, a
jr nz, .par
and SLP_MASK
ret z
ld_hli_a_string "SLP"
ret
.psn
ld_hli_a_string "PSN"
ret
.brn
ld_hli_a_string "BRN"
ret
.frz
ld_hli_a_string "FRZ"
ret
.par
ld_hli_a_string "PAR"
ret