![]() |
Routines |
| Prev: 34745 | Up: Map | Next: 34854 |
|
Switch to the shadow registers and keep XOR-ing the current sprite.
|
||||
| ContinueSpriteWrite | 34823 | EXX | Jump to WriteSpriteRow_DecreaseShadow if the shadow row counter is live. | |
| 34824 | LD A,C | |||
| 34825 | AND A | |||
| 34826 | JR NZ,WriteSpriteRow_DecreaseShadow | |||
|
This entry point is used by the routine at DrawActorSprite.
|
||||
| ContinueSpriteWrite_Next | 34828 | EXX | Switch back to the normal registers. | |
|
This entry point is used by the routine at DrawActorSprite.
|
||||
| ContinueSpriteWrite_Row | 34829 | LD A,(24154) | Return if both SpriteCachedRows and SpriteRowsLeft are zero. | |
| 34832 | LD C,A | |||
| 34833 | LD A,(24153) | |||
| 34836 | OR C | |||
| 34837 | RET Z | |||
| 34838 | XOR A | Write 0 to SpriteCachedRows and switch register sets. | ||
| 34839 | LD (24154),A | |||
| 34842 | EXX | |||
| 34843 | LD A,(24153) | Load the remaining row count and clear A. | ||
| 34846 | LD C,A | |||
| 34847 | XOR A | |||
|
This entry point is used by the routine at DrawActorSprite.
|
||||
| ContinueSpriteWrite_Done | 34848 | LD (24153),A | Write the remaining row count to SpriteRowsLeft. | |
| 34851 | EXX | Switch back and loop to WriteSpriteRow. | ||
| 34852 | JR WriteSpriteRow | |||
| Prev: 34745 | Up: Map | Next: 34854 |