Prev: 00862 Up: Map Next: 00895
00885: Check Buffer Space
Used by the routines at HandleInterrupt and ParseSpeechString.
Compare the speech-buffer pointer with *RAMTOP. Carry is set when the pointer has run out of the reserved page (at or below *RAMTOP).
Input
BC Buffer pointer
Output
F Carry set if BC is at or below *RAMTOP
CheckBufferSpace 00885 PUSH HL Stash HL on the stack.
00886 LD HL,(23730) Fetch *RAMTOP.
00889 OR A Compare *RAMTOP with the buffer pointer.
00890 SBC HL,BC
00892 CCF
00893 POP HL Restore HL from the stack.
00894 RET Return.
Prev: 00862 Up: Map Next: 00895