Prev: 9ACF Up: Map Next: 9AF9
9AF0: Graphic layout routine: (255) Load HL with stored coordinates and return from drawing
Note that when returning from another block of graphic layout data, the current attribute stored at CurrentAttribute (and set in the called block) is not preserved. Upon returning, the current attribute value is cleared.
The x- and y-coordinates to start drawing next time are loaded into HL from DrawingYCo-Ordinate by the routines at 9B08 (graphic layout routine FE) or 9878 (obtained from simple / complex state data).
Output
B Do-not-recalculate-display-buffer-address flag (00)
H Current x-coordinate
L Current y-coordinate
9AF0 XOR A Set current attribute to 00.
9AF1 LD ($6D97),A
9AF4 LD HL,($6DCA) Load HL with base x- and y-coordinates.
9AF7 LD B,A Set B to 00.
9AF8 RET Return.
Prev: 9ACF Up: Map Next: 9AF9