Routines |
Prev: A5A3 | Up: Map | Next: A5CE |
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.
|
||||||||||||
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 |