![]() |
Routines |
| Prev: B985 | Up: Map | Next: B99C |
|
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 | B98C | LD A,(IX+$00) | Fetch the graphic number. | |||||
| B98F | LD C,A | Stash it in C. | ||||||
| B990 | AND %11111100 | Keep the highest six bits. | ||||||
| B992 | LD B,A | Stash them in B. | ||||||
| B993 | LD A,C | Fetch the graphic number. | ||||||
| B994 | INC A | Add one. | ||||||
| B995 | AND %00000011 | Keep the lowest two bits. | ||||||
| B997 | OR B | Combine them with the highest six bits. | ||||||
|
This entry point is used by the routine at ToggleGraphic.
|
||||||||
| SetGraphic | B998 | LD (IX+$00),A | Store the new graphic number. | |||||
| B99B | RET | Return. | ||||||
|
View the equivalent code in;
|
||||||||
| Prev: B985 | Up: Map | Next: B99C |