Prev: 46427 Up: Map Next: 46460
46442: Graphic layout routine: (254) Adjust x- and y-coordinates for drawing and set as new base coordinates
Read following two bytes in graphic layout data and adjust y- and x-coordinates by these amounts respectively, storing at 34281 as base coordinates. These new coordinates will be used as the starting position on the next draw operation.
Used by the routine at 46218.
Input
H Current x-coordinate
L Current y-coordinate
IX Address of first parameter in current graphic layout data instruction
Output
B Do-not-recalculate-display-buffer-address flag (0)
46442 LD A,(IX+0) Adjust y-coordinate by delta-y
46445 ADD A,L
46446 LD L,A
46447 LD A,(IX+1) Adjust x-coordinate by delta-x
46450 ADD A,H
46451 LD H,A
46452 LD (34281),HL Store new coordinates at 34281
46455 LD B,0 Prepare to recalculate display buffer address
46457 JP 45999 Advance graphic layout data pointer by two bytes and read / process next data
Prev: 46427 Up: Map Next: 46460