![]() |
Routines |
| Prev: B2DF | Up: Map | Next: B32D |
|
Used by the routine at InitialiseDisplayBuffer.
Reads the object table pointer, calls ReportEmptyDisplayStep, and tests bit 7 of the display flag.
|
||||
| ReadDisplaySetupFlag | B308 | LD HL,($B17E) | Read the object table pointer and keep it with the flag at DisplaySetupFlag. | |
| B30B | PUSH HL | |||
| B30C | LD A,($B4A2) | |||
| B30F | PUSH AF | |||
| B310 | CALL ReportEmptyDisplayStep | Call ReportEmptyDisplayStep to report that this display step found nothing. | ||
| ReadDisplaySetupFlag_0 | B313 | CALL FindFirstNoun | Go to ReadDisplaySetupFlag_ResultDisplaySetup if FindFirstNoun returns zero. | |
| B316 | JR Z,ReadDisplaySetupFlag_ResultDisplaySetup | |||
| B318 | LD HL,$B170 | Count one more in B170 and try the next entry from ReadDisplaySetupFlag_0. | ||
| B31B | INC (HL) | |||
| B31C | JR ReadDisplaySetupFlag_0 | |||
|
Store the result in the display setup flag before returning.
|
||||
| ReadDisplaySetupFlag_ResultDisplaySetup | B31E | POP AF | Record the display setup flag. | |
| B31F | LD ($B4A2),A | |||
| B322 | LD HL,$B170 | |||
| B325 | LD A,(HL) | Clear the display-setup flag and keep the object-table pointer. | ||
| B326 | LD (HL),$00 | |||
| B328 | POP HL | |||
| B329 | LD ($B17E),HL | |||
| B32C | RET | Return. | ||
| Prev: B2DF | Up: Map | Next: B32D |