Prev: 038A Up: Map Next: 03A2
0393: Compare Buffer
Used by the routine at HandleInterrupt.
Compare the live buffer pointer with the saved pointer in the workspace.
Output
F Z flag set when the two pointers match
CompareBuffer 0393 PUSH HL Stash HL on the stack.
0394 LD A,$06 Call ReadWorkspace for the saved pointer.
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