Prev: B549 Up: Map Next: B568
B54A: Check Flag And Set Display Parameter
Used by the routine at MatchSecondNoun.
Sets the room graphics parameter to FE and returns non-zero when the count at B549 has reached FF and bit 7 of B179 is set. Otherwise returns with the zero flag set.
CheckFlagAndSetDisplayParameter B54A LD A,($B549) Jump to MatchSecondNoun_Next if the byte at B549 is not FF.
B54D INC A
B54E JR NZ,MatchSecondNoun_Next
B550 LD ($B549),A Record the result in the display flag at B549.
B553 LD A,($B179) Go to MatchSecondNoun_Next if bit 7 of the display mode flag at B179 is clear.
B556 BIT 7,A
B558 JR Z,MatchSecondNoun_Next
B55A LD A,$FE Write FE to the room graphics parameter and read the display mode word.
B55C LD ($A035),A
B55F LD HL,($B178)
B562 LD ($A031),HL Record the display pointer.
B565 OR %00000001 Reset the zero flag.
B567 RET Return.
Prev: B549 Up: Map Next: B568