Stefan Drissen wrote:
1. the downloaded file, although being shown as pyz80.tgz is
miraculously downloaded as pyz80.tar - use 7-zip to open this file.
Dunno if that's a browser or Windows quirk, but I also find .tar.gz
files are renamed as .tar.tar on download!
3. from a command prompt ensure that python is in your path (set
path=%path%;c:\python) and then invoke as:
python pyz80 pang.z80
I think ActivePython defaulted to adding it to my path and setting an
executable extension, so just use pyz80.py pang.z80.
I use a small batch file to assemble and, if successful, launch the disk
image in SimCoupe:
pyz80.py -I samdos2 blah.asm
@if %errorlevel%==0 start blah.dsk
The -I injects a local samdos2 file into the disk image, so it's also
suitable for booting on a real SAM (the bare image only works in
SimCoupe due to the automagical booting feature). If you also use the
autoboot keyword in your source file, your code file also launches on
bootup for faster testing.
Which automatically adds an item to the feature list for SimCoupe:
detect that Comet is printing a file and run at maximum speed ;-)
Implemented :-)
pass 1 ...
Error: Allocated invalid space 0 bytes
pang.z80:414 DEFS $/256+1*256-$
I think the 0 is due to Comet using left-to-right evaluation and
pyz80 using proper operator precedence. You could try using --nobodmas
with pyz80 to force the old behaviour, or use the simple expression
Andrew suggested to me: defs -$\256
Si