![]() |
Routines |
| Prev: 43852 | Up: Map | Next: 43921 |
|
Used by the routines at StepDisplayState, StepDisplayStateWhenParserClear and LinkCharacterWhenFlagged.
Copies display If Needed.
|
||||
|
The display-marker scan has finished.
|
||||
| CopyDisplayIfNeeded | 43858 | CALL ClearCoordinateBuffer | Jump to CopyDisplayIfNeeded_ReportDone if the display-marker scan has finished. | |
| 43861 | JR C,CopyDisplayIfNeeded_ReportDone | |||
| 43863 | JR NZ,CopyDisplayIfNeeded_Next | Skip the copy when bit 5 of the source is set. | ||
| 43865 | CALL CopyDisplayDataToDisplayBuffer | Go to CopyDisplayIfNeeded_ReportDone if neither bit 6 nor bit 7 of E is set. | ||
| 43868 | JR Z,CopyDisplayIfNeeded_ReportDone | |||
| 43870 | JR ReadObjectProcessingFlag | The copy did not finish, so try the next object from ReadObjectProcessingFlag. | ||
|
A sentence-stop marker rebuilds the picture once the game has started.
|
||||
| CopyDisplayIfNeeded_Next | 43872 | CP 176 | Go to MatchWordAgainstEarlierClause if the token code is 176. | |
| 43874 | JP Z,MatchWordAgainstEarlierClause | |||
| 43877 | CP 160 | Go to HandleClassAWord if the token code is 160. | ||
| 43879 | JP Z,HandleClassAWord | |||
| 43882 | CP 144 | Go to SearchCommandHandlerTable if it is 144. | ||
| 43884 | JP Z,SearchCommandHandlerTable | |||
| 43887 | LD HL,(41001) | Copy the word at SavedTextPointer into the word at ActiveTextPointer. | ||
| 43890 | LD (41003),HL | |||
| 43893 | LD A,(40996) | Jump to CopyDisplayIfNeeded_ReportDone if the command mode at 40996 is not 2. | ||
| 43896 | CP 2 | |||
| 43898 | JR NZ,CopyDisplayIfNeeded_ReportDone | |||
|
The character-pair search returned carry.
|
||||
| 43900 | CALL MatchCharacterPair | Jump to CopyDisplayIfNeeded_ReportDone if the character-pair search returns carry. | ||
| 43903 | JR C,CopyDisplayIfNeeded_ReportDone | |||
| 43905 | JR NZ,CopyDisplayIfNeeded_ReportDone | Jump ahead to CopyDisplayIfNeeded_ReportDone if MatchCharacterPair returns non-zero. | ||
| 43907 | LD HL,(41001) | Copy the word at SavedTextPointer into the word at ActiveTextPointer and take 160. | ||
| 43910 | LD (41003),HL | |||
| 43913 | LD D,160 | |||
| 43915 | JP HandleClassAWord | Take token 160 and continue at HandleClassAWord. | ||
|
This entry point is used by the routine at StartPictureModeScreenIdle.
|
||||
| CopyDisplayIfNeeded_ReportDone | 43918 | JP CopyBytes_ReportSuccess | Jump to CopyBytes_ReportSuccess to return non-zero. | |
| Prev: 43852 | Up: Map | Next: 43921 |