Prev: DD24 Up: Map Next: DD7E
DD5C: Print the active spell's message text
Used by the routines at E77E, E852, E929 and EA1D.
spell message on scroll
Called from routine at E797. This prints the relevant spell message text (at 6FBC) for the active spell using the text print routine at E2E0.
  • The message isn't printed all at once, but appears letter by letter as gameplay continues
  • The text print routine expects the full text string length, and the screen display address in this routine is set to DD75
  • So for "PROJECT THY SOUL" (MOVE spell), instead of "P", then "R", then "O" etc. being printed, we have "P", "PR", "PRO", "PROJ" etc.
DD5C LD A,($EBC9) Character number in the current spell message text
DD5F LD C,A
DD60 LD DE,($EAEA) Active spell message text address pointer
DD64 LD A,(DE) Get length of the message text
DD65 INC DE And advance to the first message text character
DD66 CP C Check if we've reached the end of the text to print
DD67 JR Z,$DD7E If so, skip the text print routine
DD69 LD A,C Retrieve and increment the text counter number...
DD6A INC A
DD6B LD ($EBC9),A ...and re-store
DD6E LD ($EAA1),DE Store the text address pointer
DD72 LD ($EAA3),A Number of text characters to print
DD75 LD HL,$5088 Set screen display address - middle of scroll, on left
DD78 LD ($EAA4),HL ...and store
DD7B CALL $E2E0 Print text on scroll
Prev: DD24 Up: Map Next: DD7E