Specifications

Saturn General Assembler Directives 4-19
Psy-Q Development System
ORG
Description The ORG directive informs the Assembler of the location of the code in the target
machine.
Syntax ORG address[,parameter]
where address is a previously-defined symbol, or a hex or decimal value, optionally
preceded by a question mark (?) and followed by a (target-specific) numeric
parameter.
See Also OBJ, OBJEND, GROUP, SECTION
Remarks
If a link file is output, the ORG directive must not be used - see Groups and
Sections, chapter 8.
If the program contains SECTIONs, a single ORG is allowed, and it must
precede all SECTION directives. If the program does not utilise the SECTION
construct, it may contain multiple ORG's.
The ORG operand can be preceded by a question mark, to indicates the amount
of RAM required by the program. However, the ORG ? function only works on
machines with operating systems to allocate the memory; for instance, it will
work on the Amiga but not the Sega Mega Drive.
Examples org $100
Begin move.w sr,-(A7)
Program equ $4000
...
org Program