by an-unknown · 2y ago · 0 comments
You could also improve the debugging experience with full execution trace recording (record all executed instructions / memory accesses / … to a trace file) which would not only give you detailed information about what exactly went wrong if something goes wrong but also allow you to directly debug your own Z80 code on assembler level.
So I have a plan, but it's a bit more annoying than I'd like to handle. At least the "conditional compilation" via build-tags is nice and straight-forward!
There is a trace of all CP/M syscalls made, available via the "-log-path" command-line option, but so far I've not needed to debug actual Z80 opcodes.
And I had to use stty to make it work better from the command line. At least from BASH on MacOS.
Minimally, you need to disable ^Z, or you send it into the background. ^Z is the EOF character for text files in CP/M.
The other is ^Y. Which is another suspend process command for BASH. ^Y is important for Turbo Pascal, it’s a key editing command.
I don’t think I’ve have to fix any others. Those two have let me do what I want so far.
Isn't it best to use the switch already built into Go?