Prev: A59D Up: Map Next: A5C3
A59F: Print Text And Handle Control Characters
Input
HL Pointer to text data
PrintTextAndHandleControlCharacters A59F PUSH BC Save the count, the source, the character record, the result and the pointer.
A5A0 PUSH DE
A5A1 PUSH IX
A5A3 PUSH AF
A5A4 PUSH HL
A5A5 LD HL,$000C Point twelve bytes up the stack, just past the saved return address.
A5A8 ADD HL,SP Add the stack pointer, store that address in the text pointer at A59D.
A5A9 LD ($A59D),HL
A5AC POP HL Restore the message pointer from the stack.
A5AD LD A,($A00B) Jump to PrintTextAndHandleControlCharacters_Next if the parser is set.
A5B0 AND A
A5B1 JR NZ,PrintTextAndHandleControlCharacters_Next
A5B3 LD ($A00C),A Record the parser.
PrintTextAndHandleControlCharacters_Next A5B6 CALL ProcessTextStream Call ProcessTextStream to run text stream.
A5B9 POP AF
A5BA POP IX
A5BC POP DE
A5BD POP BC
A5BE POP HL Restore the return address from the stack.
A5BF LD SP,($A59D) And switch to the stack saved in the text pointer at A59D.
View the equivalent code in;
Prev: A59D Up: Map Next: A5C3