[Coco] Nitros9/lwasm

William Astle lost at l-w.ca
Sat Jan 21 15:36:23 EST 2012


On 12-01-21 07:04 AM, Boisy G. Pitre wrote:
> William,
>
> I'm making arrangements for CoCoROMs to be on Wes Gale's www.opencoco.net as a project.  That will be the official hosting place for the repo.  As soon as we rectify a few technical issues I'll put it up there and let you know.
>
> OpenCoCo supports GIT instead of Mercurial.  That will be the only difference.

Seems like a good place to stash it. I've messed with git, seems to work 
well.

> BTW, have you ever made progress with your assembler in making it fully mamou compatible?  I would really like to get behind one assembler in the community and yours seems robust.

I can't actually hit the "fully mamou compatible" target due to 
architectural differences. The architecture of lwasm doesn't allow it to 
support "ifp1" to suppress spamming the listing with the contents of a 
defs file, for instance. As a result, some amount of source code 
massaging is needed to get everything to build.

Those changes are relatively minor, involving mostly fixups involving 
using undefined symbols in conditionals and the ifp1 stuff. There are 
also some differences with the resulting binaries due to lwasm handling 
forward references better.

Finally, there are a bunch of places where "symbol,pc" appears in the 
code when "symbol,pcr" is intended. (symbol,pc means "use the value of 
symbol as the offset from pc" while "symbol,pcr" means "treat symbol as 
an address and calculate the offset from pc". The "constant offset from 
PC" interpretation doesn't seem useful but it is the correct 
interpretation (I checked).

All told, these are fairly easy source fixups to do and I have a version 
of the various sources from September-ish with much of the fixups done 
and additional adjustments to create binary accurate results. I should 
get back onto that project at some point.



More information about the Coco mailing list