Prev: 00906 Up: Map Next: 00930
00915: 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 00915 PUSH HL Stash HL on the stack.
00916 LD A,6 Call ReadWorkspace for the address of the queue head.
00918 CALL ReadWorkspace
00921 CALL ReadBufferPointer Call ReadBufferPointer.
00924 SBC HL,BC Compare the two pointers.
00926 POP HL Restore HL from the stack.
00927 SCF Clear the carry flag.
00928 CCF
00929 RET Return.
Prev: 00906 Up: Map Next: 00930