Prev: 45791 Up: Map Next: 45869
45832: Read The Display Setup Flag
Used by the routine at InitialiseDisplayBuffer.
Reads the object table pointer, calls ReportEmptyDisplayStep, and tests bit 7 of the display flag.
ReadDisplaySetupFlag 45832 LD HL,(45438) Read the object table pointer and keep it with the flag at DisplaySetupFlag.
45835 PUSH HL
45836 LD A,(46242)
45839 PUSH AF
45840 CALL ReportEmptyDisplayStep Call ReportEmptyDisplayStep to report that this display step found nothing.
ReadDisplaySetupFlag_0 45843 CALL FindFirstNoun Go to ReadDisplaySetupFlag_ResultDisplaySetup if FindFirstNoun returns zero.
45846 JR Z,ReadDisplaySetupFlag_ResultDisplaySetup
45848 LD HL,45424 Count one more in 45424 and try the next entry from ReadDisplaySetupFlag_0.
45851 INC (HL)
45852 JR ReadDisplaySetupFlag_0
Store the result in the display setup flag before returning.
ReadDisplaySetupFlag_ResultDisplaySetup 45854 POP AF Record the display setup flag.
45855 LD (46242),A
45858 LD HL,45424
45861 LD A,(HL) Clear the display-setup flag and keep the object-table pointer.
45862 LD (HL),0
45864 POP HL
45865 LD (45438),HL
45868 RET Return.
Prev: 45791 Up: Map Next: 45869