![]() |
Routines |
| Prev: 47493 | Up: Map | Next: 47516 |
|
Used by the routines at HandleCauldronBubbles and HandleRepelSpell.
Changes the graphic of an object to the next of a group of four, by adding one to the lowest two bits of the graphic number and ignoring the carry.
|
||||||||
|
Advance the lowest two bits of the graphic number.
|
||||||||
| NextSpriteNumber | 47500 | LD A,(IX+0) | Fetch the graphic number. | |||||
| 47503 | LD C,A | Stash it in C. | ||||||
| 47504 | AND %11111100 | Keep the highest six bits. | ||||||
| 47506 | LD B,A | Stash them in B. | ||||||
| 47507 | LD A,C | Fetch the graphic number. | ||||||
| 47508 | INC A | Add one. | ||||||
| 47509 | AND %00000011 | Keep the lowest two bits. | ||||||
| 47511 | OR B | Combine them with the highest six bits. | ||||||
|
This entry point is used by the routine at ToggleGraphic.
|
||||||||
| SetGraphic | 47512 | LD (IX+0),A | Store the new graphic number. | |||||
| 47515 | RET | Return. | ||||||
|
View the equivalent code in;
|
||||||||
| Prev: 47493 | Up: Map | Next: 47516 |