Prev: 7382 Up: Map Next: 73AE
738D: Reset Drawing Origin
Used by the routine at DispatchShape.
Opcode F3 sets *SourceOrigin, *DestinationOrigin and *SourceOrigin_Row to 00, *DestinationOrigin_Height to the bottom illustration row 0B, and the copy width to 20. It then copies that full-width rectangle through SetOrigin_Copy. The destination row counts down, so the copy is upside down.
Input
IX Picture record
ResetOrigin 738D XOR A Write 00 to *SourceOrigin, *DestinationOrigin and *SourceOrigin_Row.
738E LD ($7337),A
7391 LD ($7339),A
7394 LD ($7338),A
7397 LD A,$0B Write 0B to *DestinationOrigin_Height, the bottom row of the illustration.
7399 LD ($733A),A
739C LD A,$20 Self-modify the copy widths at 7319 and 72E6 to 20.
739E LD ($7319),A
73A1 LD ($72E6),A
Copy the default rectangle.
73A4 LD A,$05 Call SetOrigin_Copy with the loop stop set to 05.
73A6 CALL SetOrigin_Copy
73A9 INC IX Step past this opcode.
73AB JP PictureRecord Jump to PictureRecord.
Prev: 7382 Up: Map Next: 73AE