Specifications

Saturn Structuring the Program 8-5
Psy-Q Development System
If sections are used to structure application code, only a single ORG directive
can be used; this must precede all section definitions. Groups and Sections may
have ORG attributes to position them.
No ORG directives or attributes are permitted when producing linkable output.
Within a group, sections are ordered in the sequence that the Linker encounters
the section definitions.
Examples The following example shows the use of Groups and Sections to impose a structure
on the target memory:
preliminary version checks and includes;
group declarations;
a section of variables, at the start of the program, to take advantage of absolute
addressing modes;
a section of application code;
a section of unitialised data.
opt c-,ow+,oz+,v+
version equ 0 ; 0 => full version
; 1 => demo version
; 2 => test version
include "miscmac.obj"
include "rooms.obj"
include "output.obj"
org $100
numvecs equ $100>>2
regs pc=progstart
if ~def(amiga)
amiga equ 1
endif
if ~def(ntsc)
ntsc equ 1
endif