Prev: B4A2 Up: Map Next: B4C1
B4A3: Check Flag And Set Display
Used by the routine at FindFirstNoun.
Sets up which room to display based on display flags and processes objects for that room.
CheckFlagAndSetDisplay B4A3 LD A,($B4A2) Jump to FindFirstNoun_NoAction if the display setup flag is not FF.
B4A6 INC A
B4A7 JR NZ,FindFirstNoun_NoAction
B4A9 LD ($B4A2),A Record the display setup flag.
B4AC LD A,($B173)
B4AF BIT 7,A Go to FindFirstNoun_NoAction if bit 7 of the display flag is clear.
B4B1 JR Z,FindFirstNoun_NoAction
Set up special display mode.
B4B3 LD A,$FE Write FE to the room display parameter.
B4B5 LD ($A034),A
B4B8 LD HL,($B172) Write *DisplayDataPointer to *DisplayPointer.
B4BB LD ($A02F),HL
B4BE OR %00000001 Reset the zero flag.
B4C0 RET Return.
Prev: B4A2 Up: Map Next: B4C1