Prev: 9F47 Up: Map Next: 9FB4
9F99: Another draw string entry point?
Used by the routine at print_message.
9F99 PUSH BC
9F9A EXX Bank
9F9B POP HL HL' = BC so BC is ptr to text
9F9C LD DE,$0020 DE = 32
9F9F LD C,A C = A
9FA0 EXX Bank
9FA1 JR draw_string_entry goto draw_string_entry
The string is terminated by setting the topmost bit of the final character.
draw_string 9FA3 LD A,$01 A' = 1 Set drawing type (single height, plots to real screen)
9FA5 EX AF,AF'
draw_string_entry 9FA6 LD A,(HL) Load a byte and mask off the text part
9FA7 AND $7F
9FA9 PUSH HL
9FAA CALL draw_char
9FAD POP HL
9FAE BIT 7,(HL) Was bit 7 set?, quit if so, otherwise loop
9FB0 INC HL
9FB1 RET NZ
9FB2 JR draw_string_entry
Prev: 9F47 Up: Map Next: 9FB4