# mac68k traps

The unit at [drv/mac68k/trap.fs] contains access word to Macintosh traps. There
are two types of words: runtime words and compilers.

Compilers are the simplest: They simply write the trap number associated with
the name. For example, "SysError," will write $a9c9. This unit uses [mem/endian]
to write down those numbers in in big endian so that these compiler words can be
used in a xcomp context.

The runtime words are meant to be called at runtime. They implement the
appropriate calling convention and map arguments to Forth PS. For example,
calling "SysError ( code -- )" will invoke the $a9c9 trap after having set the
D0 register to "code".

## API

## Compilers

SysError A9C9

## Runtime

SysError ( code -- )
