![]() |
Routines |
| Prev: 45145 | Up: Map | Next: 45155 |
|
Used by the routines at MoveHunter and MovePellet.
Flips the lowest bit of an entity's type, which switches it between two sprites. This is the handler for entity types 2 to 7. Types 6 and 7 are the battery and share one picture. Nothing sets types 2 to 5.
|
||||||||
| ToggleSprite | 45146 | LD A,(IX+0) | Fetch the type of the entity... | |||||
| 45149 | XOR 1 | ...flip the lowest bit... | ||||||
| 45151 | LD (IX+0),A | ...and store it. | ||||||
| 45154 | RET | Return. | ||||||
| Prev: 45145 | Up: Map | Next: 45155 |