On Tue, 12 Apr 2022 23:00:10 +0200 Philip Zembrod wrote:
> I've tried runcpm, and it looks good. It seems that I need to tweak
> it a bit to work in scripted mode with VolksForth. I assume you were
> referring to scripting via stdin and stdout? Somehow the console
> drivers of VolksForth and runcpm don't seem to play together too well
> with redirected stdin, but I find runcpm is very hackable, so this
> should work.
I expect you've run into the same problem I had getting ZEX to redirect
console input in my RunCPM based system. The RunCPM BDOS all happens
outside of the Z80 code space, and so doesn't see when the BIOS console
calls are redirected in the Z80's address space; the simulated BDOS
doesn't use the BIOS jumps.
The solution I came up with was to make a BDOS subset that implemented
the BDOS' console I/O code in the emulated Z80. Warm boots and console
I/O were handled in Z80 code, everything else ended up in RunCPM's
normal BDOS code. The Z80 code called the Z80 BIOS routines, so when
ZEX redirected the BIOS jumps, the BDOS followed the redirection.
Regards,
Wayne