Prev: CBE5 Up: Map Next: CBF8
CBF1: Fetch Position
Used by the routine at DrawFrame.
Reads a position (pixel column first) from a table.
Input
DE Address of the position
Output
DE Address after the position
HL Position (H is the pixel row and L is the pixel column)
FetchPosition CBF1 LD A,(DE) Fetch the pixel column.
CBF2 INC DE Move on to the pixel row.
CBF3 LD L,A Keep the column.
CBF4 LD A,(DE) Fetch the pixel row.
CBF5 INC DE Move on past this position.
CBF6 LD H,A Keep the row.
CBF7 RET Return.
Prev: CBE5 Up: Map Next: CBF8