ld [hl+], a
ret
+ ; sets up for drawing hp bar
+ui_draw_hp_bar:
+ ; set up ptrs
+ ; draw hp UI
+ ld hl, SCRN0_UI+SCRN_W+1
+ ; player hp ptr
+ ld de, player + player_hp
+ ; directly jump without a return
+ jp ui_draw_bar
+
; update the UI
; this should only be called
; during blanking
cp a, 0
jr z, @skip REL
- ; draw hp UI
- ld hl, SCRN0_UI+SCRN_W+1
- ; player hp ptr
- ld de, player + player_hp
; check redraw hp flag
and a, UI_REDRAW_HP
call nz, ui_draw_bar