![]() |
Routines |
| Prev: 45832 | Up: Map | Next: 45903 |
|
Used by the routine at InitialiseDisplayBuffer.
Reads the secondary display pointer, calls ReportNextEmptyDisplayStep, and tests bit 7 of the display mode flag at 45433.
|
||||
| ReadSecondaryDisplayFlag | 45869 | LD HL,(45440) | Call ReportNextEmptyDisplayStep to report that this display step found nothing. | |
| 45872 | PUSH HL | |||
| 45873 | CALL ReportNextEmptyDisplayStep | |||
| 45876 | LD A,(46409) | Read the display. | ||
| 45879 | PUSH AF | |||
| ReadSecondaryDisplayFlag_TestFlagDisplay | 45880 | CALL MatchSecondNoun | Go to ReadSecondaryDisplayFlag_ResultDisplayFlag if bit 7 of the display mode flag at 45433 is set or the handler returns 255. | |
| 45883 | JR Z,ReadSecondaryDisplayFlag_ResultDisplayFlag | |||
| 45885 | LD HL,45425 | Count one more in 45425 and try the next entry from ReadSecondaryDisplayFlag_TestFlagDisplay. | ||
| 45888 | INC (HL) | |||
| 45889 | JR ReadSecondaryDisplayFlag_TestFlagDisplay | |||
|
Store the result in the display flag, then read the working value before returning.
|
||||
| ReadSecondaryDisplayFlag_ResultDisplayFlag | 45891 | POP AF | Restore the saved result from the stack. | |
| 45892 | LD (46409),A | Record the result in the display flag at 46409. | ||
| 45895 | LD A,(45425) | Read the pass count at 45425. | ||
| 45898 | POP HL | Restore the saved pointer from the stack. | ||
| 45899 | LD (45440),HL | Store it at 45440. | ||
| 45902 | RET | Return. | ||
| Prev: 45832 | Up: Map | Next: 45903 |