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/ ---
                                      --


Reply via email to