![]() |
Routines |
| Prev: 29297 | Up: Map | Next: 29365 |
|
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 | 29324 | LD A,(IX+3) | Self-modify the loop stops at 29292 and 29319. | |
| 29327 | LD (29292),A | |||
| 29330 | LD (29319),A | |||
| 29333 | LD A,(IX+4) | Fetch the shift. | ||
| 29336 | LD B,(IX+1) | Fetch the Y coordinate. | ||
| 29339 | LD C,(IX+2) | Fetch the X coordinate. | ||
|
This entry point is used by the routine at DrawFixedShift.
Patch the offset immediates and draw both layers.
|
||||
| PatchShift_Draw | 29342 | LD (29256),A | Self-modify the reverse widths at 29256 and 29302. | |
| 29345 | LD (29302),A | |||
| 29348 | AND A | Halve the shift. | ||
| 29349 | RRA | |||
| 29350 | LD (29267),A | Self-modify the inner counts at 29267 and 29309. | ||
| 29353 | LD (29309),A | |||
|
Reverse the pixels.
|
||||
| 29356 | PUSH BC | Stash the coordinates on the stack. | ||
| 29357 | CALL ReversePixelRow | Call ReversePixelRow. | ||
| 29360 | POP BC | Restore the coordinates from the stack. | ||
|
Reverse the attributes.
|
||||
| 29361 | CALL ReverseAttributeRow | Call ReverseAttributeRow. | ||
| 29364 | RET | Return. | ||
| Prev: 29297 | Up: Map | Next: 29365 |