Prev: BAB3 Up: Map Next: BACE
BAB4: Update the tick counter for the "{character} is in {room}" display
Used by the routines at 81AE and EDF7.
BAB4 LD HL,$BAB3 Are we in the middle of printing a message?
BAB7 LD A,(HL)
BAB8 OR A
BAB9 RET Z Return if not.
BABA DEC (HL) Otherwise decrement the tick count.
BABB RET NZ Return if it is not zero.
The tick count has reached 0, so get rid of the message.
BABC LD C,$42
BABE LD HL,$DFDC Set the drawing routine at B7BA to use the character set (DFDC) as a base address.
BAC1 LD ($B7E9),HL
BAC4 LD DE,$0400 Set the position.
BAC7 LD HL,$7E68 Point HL at the status bar text (7E3F) that was overwritten by the message.
BACA CALL $B84B Draw the graphic and return.
BACD RET
Prev: BAB3 Up: Map Next: BACE