[Coco] lwtools assembler difference

Bill Nobel b_nobel at hotmail.com
Wed Sep 2 19:38:37 EDT 2015


Dave the source for asm is in the SourceForge archive under level1/cmds.  It looks like it is still in raw asm format for direct compile on a Coco3.

Bill Nobel

> On Sep 2, 2015, at 3:36 PM, Dave Philipsen <dave at davebiz.com> wrote:
> 
> As soon as I get these source files cleaned up I'll send them over to you. Actually, Krn has a whole bunch of files associated with it for the system calls but I don't recall that I had to do much with them other than strip linefeeds and tabs.  Also, while I'm thinking of it, a couple of questions:  Does anyone have any recommendations for a full screen text editor? I can't remember which one I settled in on so many years ago. I'm using micro emacs right now but the key bindings aren't optimal for a CoCo 3. Also, is there a disassembly of 'asm' floating around anywhere? It seems like it's not real tolerant of linefeeds and tabs. You'd think it might be a simple matter to filter them out.
> 
> Dave Philipsen
> 
>> On Sep 2, 2015, at 3:58 PM, Bill Pierce via Coco <coco at maltedmedia.com> wrote:
>> 
>> Dave, you can thank Tormod Volden for the condition of the repo. He came into the picture with the repo in an absolute mess when it was all but abandoned in the midst of the switch from ToolShed to LWTools and SVC to Mercurial and massaged it into one of the best running releases of OS9/NitrOS9 the Coco has ever seen.
>> And thank William Astle for the work on LWTools. LWTools has made building the repo a breeze...
>> 
>> Now to get it back into NitrOS9 :-)
>> 
>> 
>> 
>> 
>> 
>> 
>> Bill Pierce
>> "Charlie stole the handle, and the train it won't stop going, no way to slow down!" - Ian Anderson - Jethro Tull
>> 
>> 
>> 
>> My Music from the Tandy/Radio Shack Color Computer 2 & 3
>> https://sites.google.com/site/dabarnstudio/
>> Co-Contributor, Co-Editor for CocoPedia
>> http://www.cocopedia.com/wiki/index.php/Main_Page
>> Global Moderator for TRS-80/Tandy Color Computer Forums
>> http://www.tandycoco.com/forum/
>> 
>> E-Mail: ooogalapasooo at aol.com
>> 
>> 
>> 
>> 
>> 
>> 
>> -----Original Message-----
>> From: Dave Philipsen <dave at davebiz.com>
>> To: CoCoList for Color Computer Enthusiasts <coco at maltedmedia.com>
>> Sent: Wed, Sep 2, 2015 1:53 pm
>> Subject: Re: [Coco] lwtools assembler difference
>> 
>> 
>> Ok, so I found out that the disk images in the official repository have 
>> been
>> assembled correctly with the default operation of the lwasm 
>> assembler to
>> generate the 5-bit offset machine code ONLY when forced by 
>> a literal "0" such
>> as in ldb 0,x.  For some reason, the disk image that 
>> I received from a a guy
>> whose cousin knows a friend of another person 
>> who generated his own NitrOS9
>> disk image must have been generated 
>> incorrectly because when I compare the Krn
>> module generated by asm to a 
>> dump from that image there are twelve places where
>> the 5-bit offset was 
>> forced making it different than my Krn module.
>> 
>> The good
>> news is that at least with REL, Boot, and Krn the source code 
>> will pretty much
>> assemble just as well with the stock OS9 assembler as 
>> with lwasm.  I think the
>> only changes I had to make were to add some 
>> equates to define the target
>> machine etc., manual padding (the lwasm 
>> appears to have an assembler directive
>> for this whereas asm does not), 
>> and maybe a couple of other very minor issues. 
>> Whoever is 'in charge' 
>> of maintaining the source files on the repo has done a
>> great job in 
>> making sure that these modules are being kept as compatible as
>> possible 
>> with the stock assembler.
>> 
>> 
>> Dave Philipsen
>> 
>> 
>> On , Dave Philipsen
>> wrote:
>> ...
>>> However, the lwtools assembler (evidently) assembles in machine
>> code 
>>> as:
>>> 
>>> E6 00
>>> 
>>> which is the indexed addressing mode with a 5-bit
>> offset with the
>>> offset being zero.
>> 
>> -- 
>> Coco mailing
>> list
>> Coco at maltedmedia.com
>> https://pairlist5.pair.net/mailman/listinfo/coco
>> 
>> 
>> 
>> -- 
>> Coco mailing list
>> Coco at maltedmedia.com
>> https://pairlist5.pair.net/mailman/listinfo/coco
> 
> -- 
> Coco mailing list
> Coco at maltedmedia.com
> https://pairlist5.pair.net/mailman/listinfo/coco



More information about the Coco mailing list