Prev: 55003 Up: Map Next: 55057
55040: 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 55042 and chosen by SetUpPiece and SetUpFlatPiece: zero for the routine in IY, 2 for DrawSlopeRows, 5 for DrawMirroredSlopeRows, 8 for DrawSlopeRowsFromEdge and 11 for DrawMirroredRowsFromEdge.
Input
E Number of rows in a block
HL Screen address
IY Address of the routine for the type of segment
JumpToDrawingRoutine 55040 LD A,E A=E.
JumpToDrawingRoutine_Jump 55041 JR JumpToDrawingRoutine_Jump Jump forward by the displacement at 55042.
JumpToDrawingRoutine_Iy 55043 JP (IY) Jump to the address in IY.
JumpToDrawingRoutine_First 55045 JP DrawSlopeRows Jump to DrawSlopeRows.
JumpToDrawingRoutine_Second 55048 JP DrawMirroredSlopeRows Jump to DrawMirroredSlopeRows.
JumpToDrawingRoutine_Third 55051 JP DrawSlopeRowsFromEdge Jump to DrawSlopeRowsFromEdge.
JumpToDrawingRoutine_Fourth 55054 JP DrawMirroredRowsFromEdge Jump to DrawMirroredRowsFromEdge.
Prev: 55003 Up: Map Next: 55057