![]() |
Routines |
| Prev: 49305 | Up: Map | Next: 49345 |
|
Used by the routine at 55885.
|
||||
|
|
||||
| 49315 | LD A,(60129) | Check if any spell was active before Maroc ran out of energy | ||
| 49318 | CP 16 | Any value above 16 means there's some sort of spell in effect, and there's a flashing icon in the top right of the scroll. | ||
| 49320 | JR C,49325 | |||
| 49322 | CALL 60018 | If a spell was active, clear the 4 FLASHing attributes in the top right of the scroll | ||
|
Clear any active spell text in the 'mini-scroll' in the bottom right of the screen (pixels)
|
||||
| 49325 | LD L,248 | Low byte of screen display address | ||
| 49327 | LD A,8 | 8 character squares to clear | ||
| 49329 | LD B,8 | 8 pixel lines to clear in each square | ||
| 49331 | LD H,80 | High byte of screen display address | ||
| 49333 | LD (HL),0 | Clear byte on screen | ||
| 49335 | INC H | Move down one pixel | ||
| 49336 | DJNZ 49333 | Repeat for 8 pixel lines | ||
| 49338 | INC L | Move right one character square | ||
| 49339 | DEC A | |||
| 49340 | JR NZ,49329 | ..and repeat for 8 character squares | ||
| 49342 | CALL 58599 | Calculate Maroc's rank and print it on screen | ||
| Prev: 49305 | Up: Map | Next: 49345 |