Prev: 42397 Up: Map Next: 42435
42399: Print Text And Handle Control Characters
Input
HL Pointer to text data
PrintTextAndHandleControlCharacters 42399 PUSH BC Save the count, the source, the character record, the result and the pointer.
42400 PUSH DE
42401 PUSH IX
42403 PUSH AF
42404 PUSH HL
42405 LD HL,12 Point twelve bytes up the stack, just past the saved return address.
42408 ADD HL,SP Add the stack pointer, store that address in the text pointer at 42397.
42409 LD (42397),HL
42412 POP HL Restore the message pointer from the stack.
42413 LD A,(40971) Jump to PrintTextAndHandleControlCharacters_Next if the parser is set.
42416 AND A
42417 JR NZ,PrintTextAndHandleControlCharacters_Next
42419 LD (40972),A Record the parser.
PrintTextAndHandleControlCharacters_Next 42422 CALL ProcessTextStream Call ProcessTextStream to run text stream.
42425 POP AF
42426 POP IX
42428 POP DE
42429 POP BC
42430 POP HL Restore the return address from the stack.
42431 LD SP,(42397) And switch to the stack saved in the text pointer at 42397.
View the equivalent code in;
Prev: 42397 Up: Map Next: 42435