Prev: D6DB Up: Map Next: D711
D700: Jump To Drawing Routine
Used by the routine at LocatePicture.
Jumps to the routine that draws the piece. The displacement of the relative jump at JumpToDrawingRoutine_Jump is held in D702 and chosen by SetUpPiece and SetUpFlatPiece: zero for the routine in IY, 02 for DrawSlopeRows, 05 for DrawMirroredSlopeRows, 08 for DrawSlopeRowsFromEdge and 0B for DrawMirroredRowsFromEdge.
Input
E Number of rows in a block
HL Screen address
IY Address of the routine for the type of segment
JumpToDrawingRoutine D700 LD A,E A=E.
JumpToDrawingRoutine_Jump D701 JR JumpToDrawingRoutine_Jump Jump forward by the displacement at D702.
JumpToDrawingRoutine_Iy D703 JP (IY) Jump to the address in IY.
JumpToDrawingRoutine_First D705 JP DrawSlopeRows Jump to DrawSlopeRows.
JumpToDrawingRoutine_Second D708 JP DrawMirroredSlopeRows Jump to DrawMirroredSlopeRows.
JumpToDrawingRoutine_Third D70B JP DrawSlopeRowsFromEdge Jump to DrawSlopeRowsFromEdge.
JumpToDrawingRoutine_Fourth D70E JP DrawMirroredRowsFromEdge Jump to DrawMirroredRowsFromEdge.
Prev: D6DB Up: Map Next: D711