![]() |
Routines |
| Prev: 7534 | Up: Map | Next: 7557 |
|
Used by the routines at PrepareOldSprite and PrepareActorSprite.
The vertical co-ordinate is the bottom edge of a sprite. This stops sprites being drawn below the play area, which ends at 9F.
|
||||||||||||||
| ClipSprite | 754A | LD A,H | Fetch the vertical co-ordinate. | |||||||||||
| 754B | SUB $9F | Subtract 9F (the bottom of the play area). | ||||||||||||
| 754D | JP M,ClipSprite_Visible | Jump to ClipSprite_Visible if the sprite is above the bottom of the play area. | ||||||||||||
| 7550 | LD H,$9F | Limit the vertical co-ordinate to 9F. | ||||||||||||
| 7552 | LD C,A | Keep the number of rows to clip in C. | ||||||||||||
| 7553 | RET | Return. | ||||||||||||
| ClipSprite_Visible | 7554 | LD C,$00 | Flag that no rows need to be clipped (C=00). | |||||||||||
| 7556 | RET | Return. | ||||||||||||
| Prev: 7534 | Up: Map | Next: 7557 |