Prev: BB5C Up: Map Next: BC21
BBE5: Print Text Based On Flag
Used by the routines at StoreSetMarkPointer and ReadActionFlags.
Prints the common-word lead-in, and a second message when the flag is not 01.
PrintTextBasedOnFlag BBE5 PUSH AF Take the common words and call PrintTextAndHandleControlCharacters to print this message.
BBE6 LD HL,$67FF
BBE9 CALL PrintTextAndHandleControlCharacters
BBEC POP AF
BBED CP $01 Call PrintTextAndHandleControlCharacters if the character is not 01.
BBEF LD HL,$72D6
BBF2 CALL NZ,PrintTextAndHandleControlCharacters
BBF5 BIT 4,(IX+$03) Jump to PrintTextBasedOnFlag_Next if the action state flag is clear.
BBF9 JR Z,PrintTextBasedOnFlag_Next
BBFB RES 1,(IX+$03) Clear the action-taken flag.
BBFF PUSH IX
BC01 LD HL,$72E1 Point HL at the message at 722D+B4.
Print text and handle control characters.
BC04 CALL PrintTextAndHandleControlCharacters Call PrintTextAndHandleControlCharacters to print this message.
BC07 LD L,(IX+$04) Read the message address from bytes 04-05 of the record.
BC0A LD H,(IX+$05)
BC0D LD A,L Jump to PrintTextAndHandleControlCharacters to print this text when HL is not zero.
BC0E OR H
BC0F JP NZ,PrintTextAndHandleControlCharacters
BC12 LD A,$22 Print a quotation mark and a full stop.
BC14 CALL Print_Character
BC17 JP PrintFullStop
Read the handler address and jump to it.
PrintTextBasedOnFlag_Next BC1A LD L,(IX+$04) Read the handler address into HL.
BC1D LD H,(IX+$05)
BC20 JP (HL) Jump to the handler address in HL.
Prev: BB5C Up: Map Next: BC21