Re: pyz80 question

2007-08-30 Thread Simon Owen

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


Re: pyz80 question

2007-08-30 Thread Andrew Collier


On 30 Aug 2007, at 08:42, Simon Owen wrote:


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


I'll check this - with --nobodmas pyz80 should be completely  
compatible with comet files.


(If the code is already 256-byte aligned, doesn't Stefan's version  
leave a 256-byte gap?)


The other option is to use a new pyz80 extension, whose intent should  
be much clearer:


DEFS ALIGN 256

HTH,
Andrew

--
 ---   Andrew Collier 
   http://www.intensity.org.uk/ ---
  --




Re: pyz80 question

2007-08-30 Thread Simon Owen

Andrew Collier wrote:
The other option is to use a new pyz80 extension, whose intent should be 
much clearer:


DEFS ALIGN 256


Despite having used it in more recent source files, I'd completely 
forgotten you added that!  *blush*


Si



Step Midi 1.9

2007-08-30 Thread Simon Owen

Hi all,

Does anyone still have Step Midi 1.9 by P.S.S. soft ltd?  It was 
original distributed by Derek Morgan, and I believe it was reviewed by 
both Fred and Sam Supplement at some point.


The author's original disks appears to be damaged/faded, so we're 
desperately seeking good images.  The original may also be copy 
protected and require some special attention


If you can help, please get in touch!

Si