Is the -x filename option of the z80pack CP/M emulation scripts supposed to boot CP/M and run the filename executable program? If so, I have an issue with -x.
Here's a Linux shell session in which I try to run the te screen editor by Miguel Garcia:
paoloamoroso@penguin:~/cpm/sim$ ./cpm2 -x
te.com
####### ##### ### ##### ### # #
# # # # # # # # ## ##
# # # # # # # # # # #
# ##### # # ##### ##### # # # #
# # # # # # # # #
# # # # # # # # # #
####### ##### ### ##### ### # #
Release 1.37, Copyright (C) 1987-2021 by Udo Munk
CPU speed is unlimited, CPU executes undocumented instructions
Loader statistics for file
te.com:
START : FFFFH
END : 0000H
LOADED: 0002H (2)
Booting...
INT disabled and HALT Op-Code reached at 7704
paoloamoroso@penguin:~/cpm/sim$
Executing the same command with the -f option results in a different error, and sometimes the session hangs at Booting... (omitting the banner and version number for brevity):
paoloamoroso@penguin:~/cpm/sim$ ./cpm2 -f4 -x
te.com
[...]
CPU speed is 4 MHz, CPU executes undocumented instructions
Loader statistics for file
te.com:
START : FFFFH
END : 0000H
LOADED: 0002H (2)
Booting...
E (1535) system: Op-code trap at e91b fd f5
paoloamoroso@penguin:~/cpm/sim$
The error happens with any CP/M program. The same executable files that cause an error with -x run fine when copied to a disk image and invoked from CCP.
I'm using z80pack on Crostini Linux, the Chrome OS Linux container that currently runs Debian Buster. z80pack otherwise works great with the same setup.
Any insight or suggestions? Am I using the -x option or the argument incorrectly?