| Routines

30972: Check whether a message is in the message queue

Used by the routines at 24832, 24951 and 30989. Returns with the zero flag set if the message whose number is stored at 32722 is present in the message queue (meaning it is currently being displayed or has yet to be displayed).
30972 | CALL 28404 | Update the message line and process the message queue as appropriate
This entry point is used by the routine at 31126.
30975 | LD HL,32722 | Collect the message number stored at 32722
30978 | LD A,(HL)
30979 | LD B,8 | There are 8 slots in the message queue
30981 | LD L,184 | HL=32696 (the first byte in the message queue)
30983 | CP (HL) | Set the zero flag if the message number is in the queue
30984 | INC HL | Point HL at the next byte in the message queue
30985 | RET Z | Return if the message whose number is stored at 32722 is in the message queue
30986 | DJNZ 30983 | Jump back until all 8 bytes of the message queue have been checked
30988 | RET |