Prev: A5A3 Up: Map Next: A5CE
A5BF: screenlocstring plot
This draws a screenlocstring to screen. A screenlocstring is a structure consisting of a screen address at which to start drawing, a count of glyph indices and an array of that number of glyph indices.
Used by the routines at escaped, user_confirm and plot_statics_and_menu_text.
Input
HL Pointer to screenlocstring.
Output
HL Pointer to byte after screenlocstring.
screenlocstring_plot A5BF LD E,(HL) Read the screen address into DE
A5C0 INC HL
A5C1 LD D,(HL)
A5C2 INC HL
A5C3 LD B,(HL) Read the number of characters to plot
A5C4 INC HL
HL now points at the first glyph to plot
Start loop
screenlocstring_loop A5C5 PUSH BC Save the counter
A5C6 CALL plot_glyph Plot a single glyph
A5C9 INC HL Advance the glyph pointer
A5CA POP BC Restore the counter
A5CB DJNZ screenlocstring_loop ...loop until the counter is zero
A5CD RET Return
Prev: A5A3 Up: Map Next: A5CE