Prev: BDBA Up: Map Next: BE45
BE31: Print a string in one given colour
Used by the routine at display_text_list.
For strings that carry no colour byte: the colour is whatever display_text_list left in $5BB6. Selects the standard font, works out the buffer address, and joins print_text where the attribute address is found.
Input
HL the position: L = x, H = y, in pixels, y counting up from the bottom
DE the string, in the text code; on exit, the byte after it
print_text_single_colour BE31 PUSH HL the standard font
BE32 LD HL,font
BE35 LD ($5BC7),HL
BE38 POP BC BC = the position again; HL = its buffer address
BE39 PUSH BC
BE3A CALL calc_vidbuf_addr
BE3D LD L,C
BE3E LD H,B
BE3F LD A,($5BB6) the colour into A'
BE42 EX AF,AF'
BE43 JR text_attr_addr
Prev: BDBA Up: Map Next: BE45