I used H.GONE hook for that. It does RST30 to ROM. I check if command executing matches the one ROM needs to handle. I find the command, execute my code and...
problems start. I can not make BASIC to display "Ok". It always says "Syntax error".
I tried the following
- writing to the buffer where command is found (in HL) - it causes bad result
- skipping HL pointer to the end of my command (there're zeros in the buffer) - says "Syntax error" anyway.
It is not possible to alter stack (just do "pop" on the ret address, as it contains a lot of pushes and calls from CALLF and other subs.
Can anyone help with that? Any ideas? What should I return to basic not to get "Syntax error"?
Login or 등록 to post comments


The second part though seems to be valid: HL must point to the last byte of the text you parsed, so the byte before the concluding '0' or ':'