[comp.sys.amiga.tech] Stand-alone Assembly for Manx AS

dlarson@blake.acs.washington.edu (Dale Larson) (11/19/89)

I've done very littel assembly code on the 68000 and am going through
Leventhal, et. al.'s book.  My assembler is Manx's as.  I cannot seem
to get stand-alone programs to work well.  If anyone has any fairly small
assembly examples that they've compiled with AS, please mail me.  I
would especially like a routine that starts by calling Debug() so I
can watch from my terminal and rom-wack.

Thanks,


-- 
	    A lack of prior planning on the part of any programmer 
		       always constitutes an emergency.
	
           Digital Teddy Bear      dlarson@blake.acs.washington.edu

aduncan@rhea.trl.oz.au (Allan Duncan) (11/22/89)

From article <4530@blake.acs.washington.edu>, by dlarson@blake.acs.washington.edu (Dale Larson):
> I've done very littel assembly code on the 68000 and am going through
> Leventhal, et. al.'s book.  My assembler is Manx's as.  I cannot seem
> to get stand-alone programs to work well.  If anyone has any fairly small

The Manx as is only intended as a back-end for the compiler.  It has
some "interesting" properties - one that comes to mind is its treatment
of data - the order that STORAGE is allocated in is the order that the
symbols are first encountered in the source file, so that a structure
that you carefully set up in the data section (that most people put at
the end of the source) will be thoroughly scrambled.  References by
offset will FAIL.  Fix is to put the DATA section before the CODE
section, so that your structures are seen first.
Can't think of any others off-hand.  Will get CAPE when I remember to
order it.  (It gets complicated buying in a Goverment agency when the
cheapest way is to buy direct overseas).

Allan Duncan	ACSnet	aduncan@rhea.trl.oz
		ARPA	aduncan%rhea.trl.oz.au@uunet.uu.net
		UUCP	{uunet,hplabs,ukc}!munnari!rhea.trl.oz.au!aduncan
Telecom Research Labs, PO Box 249, Clayton, Victoria, 3168, Australia.