I have several programs which I run on an 8 bit CP/M machine (Amstrad CPC6128). The native language of the machine is (interpretive) Locomotive Basic which has a useful feature relating to “printing”. It uses streams 0 - 9 to which the "print" can be directed, 0 - 7 direct output to a “screen”, 8 to the printer and 9 to a file.
This means that, by changing the “stream expression”, the same coding can be used to display on the screen, print hard copy or to a file by different passes of the program.
I can convert the straight text from the Amstrad (on 3” floppy) to PC format but need to find a DOS or Windows Basic with a similar feature. Otherwise I’ve got to triplicate each print statement and proceed with “IF stream is ??? print to screen/printer/file”.
The only other possibility is a good Locoscript emulator on the PC. It doesn’t need to be fast nor compile.