Routines |
Prev: E9DD | Up: Map | Next: EA34 |
EA1D | LD A,$38 | This value (56) indicates the spell selected is an ongoing 'effect' spell | ||
EA1F | LD ($EAE1),A | |||
EA22 | CALL $DD5C | Start printing the selected spell message text | ||
After the initial spell selection, player controls are limited to either (a) UP/DOWN to cancel the spell casting and return to the spell menu, or (b) FIRE again to confirm & cast the spell
Check if UP/DOWN pressed:
|
||||
EA25 | LD A,($EAFE) | Check up/down control value | ||
EA28 | CP $00 | If the player presses UP or DOWN, spell casting is cancelled. Remove the FLASHing attributes in the top right of scroll, clear the scroll and and re-print the spell list | ||
EA2A | JR NZ,$EA72 | |||
Check if FIRE pressed:
|
||||
EA2C | LD A,($EB32) | Check if FIRE pressed | ||
EA2F | CP $00 | If NOT pressed, jump straight to the RET statement to continue the game. Otherwise continue to the next routine that deactivates the effect. | ||
EA31 | JP Z,$EAA0 |
Prev: E9DD | Up: Map | Next: EA34 |