![]() |
Routines |
| Prev: B308 | Up: Map | Next: B34F |
|
Used by the routine at InitialiseDisplayBuffer.
Reads the secondary display pointer, calls ReportNextEmptyDisplayStep, and tests bit 7 of the display mode flag at B179.
|
||||
| ReadSecondaryDisplayFlag | B32D | LD HL,($B180) | Call ReportNextEmptyDisplayStep to report that this display step found nothing. | |
| B330 | PUSH HL | |||
| B331 | CALL ReportNextEmptyDisplayStep | |||
| B334 | LD A,($B549) | Read the display. | ||
| B337 | PUSH AF | |||
| ReadSecondaryDisplayFlag_TestFlagDisplay | B338 | CALL MatchSecondNoun | Go to ReadSecondaryDisplayFlag_ResultDisplayFlag if bit 7 of the display mode flag at B179 is set or the handler returns FF. | |
| B33B | JR Z,ReadSecondaryDisplayFlag_ResultDisplayFlag | |||
| B33D | LD HL,$B171 | Count one more in B171 and try the next entry from ReadSecondaryDisplayFlag_TestFlagDisplay. | ||
| B340 | INC (HL) | |||
| B341 | JR ReadSecondaryDisplayFlag_TestFlagDisplay | |||
|
Store the result in the display flag, then read the working value before returning.
|
||||
| ReadSecondaryDisplayFlag_ResultDisplayFlag | B343 | POP AF | Restore the saved result from the stack. | |
| B344 | LD ($B549),A | Record the result in the display flag at B549. | ||
| B347 | LD A,($B171) | Read the pass count at B171. | ||
| B34A | POP HL | Restore the saved pointer from the stack. | ||
| B34B | LD ($B180),HL | Store it at B180. | ||
| B34E | RET | Return. | ||
| Prev: B308 | Up: Map | Next: B34F |