![]() |
Routines |
| Prev: 7271 | Up: Map | Next: 72B5 |
|
Used by the routine at DrawPatched.
Writes the row count over the loop stops and the shift over the offset immediates, so the shape can move by a fraction of a pixel.
|
||||
| PatchShift | 728C | LD A,(IX+$03) | Self-modify the loop stops at 726C and 7287. | |
| 728F | LD ($726C),A | |||
| 7292 | LD ($7287),A | |||
| 7295 | LD A,(IX+$04) | Fetch the shift. | ||
| 7298 | LD B,(IX+$01) | Fetch the Y coordinate. | ||
| 729B | LD C,(IX+$02) | Fetch the X coordinate. | ||
|
This entry point is used by the routine at DrawFixedShift.
Patch the offset immediates and draw both layers.
|
||||
| PatchShift_Draw | 729E | LD ($7248),A | Self-modify the reverse widths at 7248 and 7276. | |
| 72A1 | LD ($7276),A | |||
| 72A4 | AND A | Halve the shift. | ||
| 72A5 | RRA | |||
| 72A6 | LD ($7253),A | Self-modify the inner counts at 7253 and 727D. | ||
| 72A9 | LD ($727D),A | |||
|
Reverse the pixels.
|
||||
| 72AC | PUSH BC | Stash the coordinates on the stack. | ||
| 72AD | CALL ReversePixelRow | Call ReversePixelRow. | ||
| 72B0 | POP BC | Restore the coordinates from the stack. | ||
|
Reverse the attributes.
|
||||
| 72B1 | CALL ReverseAttributeRow | Call ReverseAttributeRow. | ||
| 72B4 | RET | Return. | ||
| Prev: 7271 | Up: Map | Next: 72B5 |