![]() |
Routines |
| Prev: 47964 | Up: Map | Next: 48161 |
|
Used by the routines at StoreSetMarkPointer and ReadActionFlags.
Prints the common-word lead-in, and a second message when the flag is not 1.
|
||||
| PrintTextBasedOnFlag | 48101 | PUSH AF | Take the common words and call PrintTextAndHandleControlCharacters to print this message. | |
| 48102 | LD HL,26623 | |||
| 48105 | CALL PrintTextAndHandleControlCharacters | |||
| 48108 | POP AF | |||
| 48109 | CP 1 | Call PrintTextAndHandleControlCharacters if the character is not 1. | ||
| 48111 | LD HL,29398 | |||
| 48114 | CALL NZ,PrintTextAndHandleControlCharacters | |||
| 48117 | BIT 4,(IX+3) | Jump to PrintTextBasedOnFlag_Next if the action state flag is clear. | ||
| 48121 | JR Z,PrintTextBasedOnFlag_Next | |||
| 48123 | RES 1,(IX+3) | Clear the action-taken flag. | ||
| 48127 | PUSH IX | |||
| 48129 | LD HL,29409 | Point HL at the message at 29229+180. | ||
|
Print text and handle control characters.
|
||||
| 48132 | CALL PrintTextAndHandleControlCharacters | Call PrintTextAndHandleControlCharacters to print this message. | ||
| 48135 | LD L,(IX+4) | Read the message address from bytes 4-5 of the record. | ||
| 48138 | LD H,(IX+5) | |||
| 48141 | LD A,L | Jump to PrintTextAndHandleControlCharacters to print this text when HL is not zero. | ||
| 48142 | OR H | |||
| 48143 | JP NZ,PrintTextAndHandleControlCharacters | |||
| 48146 | LD A,34 | Print a quotation mark and a full stop. | ||
| 48148 | CALL Print_Character | |||
| 48151 | JP PrintFullStop | |||
|
Read the handler address and jump to it.
|
||||
| PrintTextBasedOnFlag_Next | 48154 | LD L,(IX+4) | Read the handler address into HL. | |
| 48157 | LD H,(IX+5) | |||
| 48160 | JP (HL) | Jump to the handler address in HL. | ||
| Prev: 47964 | Up: Map | Next: 48161 |