![]() |
Routines |
| Prev: 87B9 | Up: Map | Next: 8826 |
|
Switch to the shadow registers and keep XOR-ing the current sprite.
|
||||
| ContinueSpriteWrite | 8807 | EXX | Jump to WriteSpriteRow_DecreaseShadow if the shadow row counter is live. | |
| 8808 | LD A,C | |||
| 8809 | AND A | |||
| 880A | JR NZ,WriteSpriteRow_DecreaseShadow | |||
|
This entry point is used by the routine at DrawActorSprite.
|
||||
| ContinueSpriteWrite_Next | 880C | EXX | Switch back to the normal registers. | |
|
This entry point is used by the routine at DrawActorSprite.
|
||||
| ContinueSpriteWrite_Row | 880D | LD A,($5E5A) | Return if both SpriteCachedRows and SpriteRowsLeft are zero. | |
| 8810 | LD C,A | |||
| 8811 | LD A,($5E59) | |||
| 8814 | OR C | |||
| 8815 | RET Z | |||
| 8816 | XOR A | Write 00 to SpriteCachedRows and switch register sets. | ||
| 8817 | LD ($5E5A),A | |||
| 881A | EXX | |||
| 881B | LD A,($5E59) | Load the remaining row count and clear A. | ||
| 881E | LD C,A | |||
| 881F | XOR A | |||
|
This entry point is used by the routine at DrawActorSprite.
|
||||
| ContinueSpriteWrite_Done | 8820 | LD ($5E59),A | Write the remaining row count to SpriteRowsLeft. | |
| 8823 | EXX | Switch back and loop to WriteSpriteRow. | ||
| 8824 | JR WriteSpriteRow | |||
| Prev: 87B9 | Up: Map | Next: 8826 |