Prev: 038A Up: Map Next: 03A2
0393: Test Queue Empty
Used by the routine at HandleInterrupt.
Compare the buffer pointer with the address of the queue head.
Output
F Z flag set if the queue is empty
TestQueueEmpty 0393 PUSH HL Stash HL on the stack.
0394 LD A,$06 Call ReadWorkspace for the address of the queue head.
0396 CALL ReadWorkspace
0399 CALL ReadBufferPointer Call ReadBufferPointer.
039C SBC HL,BC Compare the two pointers.
039E POP HL Restore HL from the stack.
039F SCF Clear the carry flag.
03A0 CCF
03A1 RET Return.
Prev: 038A Up: Map Next: 03A2