Vsys/NeXT/ASM/

Up to parent directory

Manual

../doc/AAmanual.e

Source

The Ann Arbor Macro Assembler (AAma) needs relatively few IO functions and does not use the standard IO modules. IO code for the various systems is contained in Vmain.a.
Vmain.a Main program. Initial comments summarize calling sequence options.
Vassm.a Block assembler.
Ctable.a
Instr.a
Emul.a Floating point emulation.
Finals.a
Backw.a Disassembler.
Amacro.e Storage and machine parameter includes.
Aobject.e Included by Backw.a.

Command Files

These scripts build the assembler with an extra 100 in the machine option, for making a special assembler (one that assembles the assembler). For example, k=115 for the NeXT and k=114 for the Macintosh. See the comments in Amacro.e about MACHINE=.Key. The scripts include the optional software floating point emulation module Emul.a, which implements the assembler .EMUL directive for systems without hardware floating point.
AA15.s AAma15 executable for the NeXT.
AA15c.s AAma15c executable, functionally identical to AAma15. For cross-building on other machines, but works on the NeXT as well.
AA14c.s AAma14c executable for the Macintosh.

Examples

The following short examples illustrate some basic AAma features and concepts. See the comments in the .a source files for more explanation. The accompanying .s command files build only NeXT executables (no cross building). They are much the same up to file names, but with a twist in Argu.s.
hello.a
hello.s


Command line standard IO, basic pseudo's, subroutine and startup stack arguments, argument addresses, etc.
hello1.a
hello1.s


A version of hello.a that loads IOst.a and explicitly jumps to its entry code.
hello2.a
hello2.s


A version of hello.a whose NeXT executable is position independent when linked with IOst.a, except for a few external references related to the _Getmem system call that are fixed by the system.
hello3.a
hello3.s


Another version of hello.a which is position independent in the same sense as hello2.a.
Argu.a
Argu.s


Display command line arguments, accessed by direct manipulation of the stack instead of through formal subroutine arguments as in hello.a.

Notes

asm_var.e Assembler variables.
Notes.e Miscellaneous.

Up to Vsys/