Prev: 58764 Up: Map Next: 58806
58789: Identify address of message text
Used by the routines at 49215, 50807, 51043, 55944 and 58599.
Input
A Message number (1-37). Message text lists stored at 29042, beginning with level names.
58789 LD HL,(60251) Address pointer for text to print
58792 LD D,1 Start at text #1
58794 CP D Determine which message number to print - is it this one?
58795 JR Z,58805 If so, RETurn
58797 LD B,(HL) If not, get the number of text characters in this message
58798 INC B +1 (correction to set the counter at the right number)
58799 INC HL Move to the next byte
58800 DJNZ 58799 Skip the rest of the bytes for this message
58802 INC D Increment message number/counter
58803 JR 58794 ...and run the check again for the next message
58805 RET
Prev: 58764 Up: Map Next: 58806