[comp.sys.mac.programmer] Absolute Assembly

kaufman@polya.Stanford.EDU (Marc T. Kaufman) (06/13/88)

I am involved in the development of hardware that uses 68000 type CPUs.
I need to write code for the ROMs in the device.  Is there any way to put
the MPW assembler into a mode in which it will generate ABSOLUTE based code?
Right now I have to run an assembler on a PC.  (and no, I do not want to
change all address offsets to 'address-start'... and I do not want the
assembler to assume incorrect things about my register environment (A5, A6)).

oster@dewey.soe.berkeley.edu (David Phillip Oster) (06/14/88)

Check out the Apple Addison-Weselly book on writing NuBus cards for the Mac II.
In it they use some clever MPW macros to lay out complex data structures
for Mac II card ROMs.

I've always just used MDS for this, but any assembler should work. Once
you have the code physically arranged in the ROM where you want it, I find
it convenient to access hardware registers by LEAing a pointer to them
into a register, and similarly for blocks of variables defined at a pc
relative address.

--- David Phillip Oster            --When you asked me to live in sin with you
Arpa: oster@dewey.soe.berkeley.edu --I didn't know you meant sloth.
Uucp: {uwvax,decvax,ihnp4}!ucbvax!oster%dewey.soe.berkeley.edu