ref: b08a0b860ae7b666e3fd526de1f78809368d1bf6
dir: /engine/battle/4.asm/
Func_128d8: ; 128d8 (4:68d8) ld a, [W_YCOORD] ; wd361 ld b, a ld a, [W_CURMAPHEIGHT] ; wd368 call Func_128ea ret z ld a, [W_XCOORD] ; wd362 ld b, a ld a, [W_CURMAPWIDTH] ; wd369 Func_128ea: ; 128ea (4:68ea) add a cp b ret z inc b ret DrawHP: ; 128ef (4:68ef) call GetPredefRegisters ld a, $1 jr asm_128fb Func_128f6: ; 128f6 (4:68f6) call GetPredefRegisters ld a, $2 asm_128fb: ; 128fb (4:68fb) ld [wListMenuID], a ; wListMenuID push hl ld a, [wcf99] ld b, a ld a, [wcf9a] ld c, a or b jr nz, .asm_12913 xor a ld c, a ld e, a ld a, $6 ld d, a jp Func_12924 .asm_12913 ld a, [wcfba] ld d, a ld a, [wcfbb] ld e, a predef HPBarLength ld a, $6 ld d, a ld c, a Func_12924: ; 12924 (4:6924) pop hl push de push hl push hl call DrawHPBar pop hl ld a, [$fff6] bit 0, a jr z, .asm_12937 ld bc, $9 jr .asm_1293a .asm_12937 ld bc, $15 .asm_1293a add hl, bc ld de, wcf99 ld bc, $203 call PrintNumber ld a, "/" ld [hli], a ld de, wcfba ld bc, $203 call PrintNumber pop hl pop de ret