![]() |
Routines |
| Prev: 38419 | Up: Map | Next: 38454 |
|
Used by the routines at Draw_Menu_Icons, Update_Object_Sprite, Draw_Lives, Handle_Stalactite and Handle_Coloured_Decoration.
Draws the sprite of the object that IX points at, using XOR. Nothing is erased.
The XORSpriteLoop routine works through two sets of registers: the set that is current when it is entered belongs to the sprite at the old position and the other set belongs to the sprite at the new position. Here there is no old sprite, so its row count is zero.
|
||||||||||||
| DrawEntity | 38442 | CALL PrepDraw2 | Prepare the registers for the sprite at its new position. | |||||||||
| 38445 | EXX | Switch to the registers of the old sprite. | ||||||||||
| 38446 | XOR A | Write 0 to Old_Sprite_Row_Count as there are no rows of the old sprite to draw. | ||||||||||
| 38447 | LD (36578),A | |||||||||||
| 38450 | LD C,A | C=0. | ||||||||||
| 38451 | JP XORSpriteLoop | Jump to XORSpriteLoop to draw the sprite. | ||||||||||
|
View the equivalent code in;
|
||||||||||||
| Prev: 38419 | Up: Map | Next: 38454 |