Prev: EACB Up: Map Next: EAEF
EAE1: Data buffer - spell data
EAE1 DEFB $00 Spell selection status byte. Checked at E64B. Set to:
  • 0 at new game data initialization (C0DB)
  • 8 after spell names printed on scroll (E672)
  • 24 after energy bar printed (E779)
  • 32 when MOVE spell selected (E805)
  • 48 when SERVANT/other cursor spell cast (E84A)
  • 56 when active 'effect' spell deactivated (EA1D)
EAE2 DEFB $00 Store for spell counter used in checking spells collected at E6BE
EAE3 DEFW $0000 Store for address pointer to the start and/or current spell list text at 6DFC (copied from EB65 at C101)
Used to determine spells to print when the player presses up or down in the spell menu
EAE5 DEFB $00 Temp store for spell counter byte at EAE2, copied at start of routine at DF33
EAE6 DEFB $00 Spell number counter (for spell list at 6FBC)
Used to print relevnat spell message on scroll at E753
Set at DF9D - spell number 3 on the scroll (pointed at by the scroll arrow)
EAE7 DEFB $00,$00 Address pointer for selected/highlighted spell (6DFC). The 16 bytes of spell data are copied to/from a buffer at EBC5
EAE9 DEFB $00 Currently active 'effect' spell (e.g. UNSEEN, SHIELD) - from 0-27 (0 = no effect spell) from spell list at 6DFC
Set to 255 at EA45 if deactivated effect spell is SHIELD, PROTECT or DEFENCE - this tells the routine at D4BD to erase any on screen 'barrier' graphics
EAEA DEFW $0000 Address pointer for active spell message text (6FBC)
Also used for level text (7172), as only one or the other appears on the scroll at any one time
EAEC DEFB $00 Temp store for spell number pointer (EAE6)
Also used for cast spell number, checked at D7F3
EAED DEFB $00 - (unused)
EAEE DEFB $00 - (unused)
Prev: EACB Up: Map Next: EAEF