![]() |
Routines |
| Prev: AD1B | Up: Map | Next: AD46 |
|
Sets up the erasing of the old sprite of an object, from its position on the screen at the last frame. Also clears the visible flag of the object (bit 7 of offset 10) and keeps the wrap flag (bit 6) in SpriteVariables_RightEdge.
|
||||||||
| PrepareErase | AD27 | CALL FetchFrameSprite | Call FetchFrameSprite. | |||||
| AD2A | LD L,(IX+$11) | The horizontal screen position. | ||||||
| AD2D | LD H,(IX+$12) | The vertical screen position. | ||||||
| AD30 | LD ($A1D3),HL | Update the sprite positions. | ||||||
| AD33 | CALL ClipFirstSprite | Call ClipFirstSprite. | ||||||
| AD36 | CALL SelectEraseSprite | Call SelectEraseSprite. | ||||||
| AD39 | RES 7,(IX+$10) | Reset bit 7 of offset 10 of IX. | ||||||
| AD3D | LD A,(IX+$10) | The flags. | ||||||
| AD40 | AND %01000000 | Keep the bits of A that are set in 40. | ||||||
| AD42 | LD ($A2FA),A | The wrap flag. | ||||||
| AD45 | RET | Return. | ||||||
| Prev: AD1B | Up: Map | Next: AD46 |