![]() |
Routines |
| Prev: 44315 | Up: Map | Next: 44358 |
|
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 16) and keeps the wrap flag (bit 6) in SpriteVariables_RightEdge.
|
||||||||
| PrepareErase | 44327 | CALL FetchFrameSprite | Call FetchFrameSprite. | |||||
| 44330 | LD L,(IX+17) | The horizontal screen position. | ||||||
| 44333 | LD H,(IX+18) | The vertical screen position. | ||||||
| 44336 | LD (41427),HL | Update the sprite positions. | ||||||
| 44339 | CALL ClipFirstSprite | Call ClipFirstSprite. | ||||||
| 44342 | CALL SelectEraseSprite | Call SelectEraseSprite. | ||||||
| 44345 | RES 7,(IX+16) | Reset bit 7 of offset 16 of IX. | ||||||
| 44349 | LD A,(IX+16) | The flags. | ||||||
| 44352 | AND %01000000 | Keep the bits of A that are set in 64. | ||||||
| 44354 | LD (41722),A | The wrap flag. | ||||||
| 44357 | RET | Return. | ||||||
| Prev: 44315 | Up: Map | Next: 44358 |