Prev: 00862 Up: Map Next: 00895
00885: Check Memory
Used by the routines at HandleInterrupt and ParseSpeechString.
Compare the speech-buffer pointer with *RAMTOP. Carry is set when the pointer has dropped into the reserved workspace.
Input
BC Buffer pointer
Output
F Carry set if BC is below *RAMTOP
CheckMemory 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