![]() |
Routines |
| Prev: 39549 | Up: Map | Next: 39587 |
| ActionPrintOpeningText | 39552 | LD A,(41014) | Compare the current character with 0 and take 1. | |
| 39555 | CP 0 | |||
| 39557 | LD A,1 | |||
| 39559 | LD HL,26901 | Take the message at 26857+44. | ||
| 39562 | JR Z,ActionPrintOpeningText_Next | Jump ahead to ActionPrintOpeningText_Next if the current character is 0. | ||
| 39564 | XOR A | Clear A and take the message at 26857+55. | ||
| 39565 | LD HL,26912 | |||
| ActionPrintOpeningText_Next | 39568 | LD (40999),A | Store it in the print mode, then call PrintTextAndHandleControlCharacters to print the message. | |
| 39571 | CALL PrintTextAndHandleControlCharacters | |||
| 39574 | OR %00000001 | Reset the zero flag. | ||
| 39576 | RET | Return. | ||
|
Attribute pair.
|
||||
| 39577 | DEFB 4,0 | Display record read by ProcessDisplayRecord: flags 4 value 0. | ||
| ActionPrintOpeningText_MatchAttribute | 39579 | CALL ReadRoomDisplayParameter | Return zero through ParseInputNumber_ReturnZero if ReadRoomDisplayParameter finds no display parameter. | |
| 39582 | JP Z,ParseInputNumber_ReturnZero | |||
| 39585 | JR ReadRoomDisplayParameter_0 | Jump ahead to ReadRoomDisplayParameter_0 to adjust attribute match. | ||
| Prev: 39549 | Up: Map | Next: 39587 |