![]() |
Routines |
| Prev: 96F7 | Up: Map | Next: 9728 |
|
Used by the routine at DisplayEntity.
Draws the bottom rows of the new sprite on their own first, because the new sprite is lower than the old one (the old sprite has moved up the screen).
|
||||||||
| DisplayEntity_NewLower | 9719 | EXX | Switch to the registers of the new sprite. | |||||
| 971A | NEG | Make the difference positive. | ||||||
| 971C | LD C,A | Copy the number of rows that stand alone to C. | ||||||
| 971D | LD A,($8EE3) | Fetch the number of rows of the new sprite from New_Sprite_Row_Count. | ||||||
| 9720 | CP C | Compare it with the number of rows that stand alone. | ||||||
| 9721 | JP C,XORSpriteLoop_Done | Jump to XORSpriteLoop_Done if the new sprite has no more rows than that, so that the sprites do not overlap and are each drawn in full. | ||||||
| 9724 | SUB C | Subtract the number of rows that stand alone. | ||||||
| 9725 | JP XORSpriteLoop_StoreNew | Jump to XORSpriteLoop_StoreNew to store the number of rows that remain and draw those rows of the new sprite on their own. | ||||||
|
View the equivalent code in;
|
||||||||
| Prev: 96F7 | Up: Map | Next: 9728 |