Specifications
Saturn General Assembler Directives 4-37
Psy-Q Development System
REGS
Description If a CPE file is produced, or object code output is directed to the target, the REGS
directive specifies the contents of the registers, at the start of code execution.
Syntax REGS regcode=expression[,regcode=expression]
where regcode is the mnemonic name of a register, such as SR, PC.
Remarks For relocatable code, which is specific to the target, or pure binary code, this
directive is not available.
Example regs pc=__SN_ENTRY_POINT
Register assigns can be declared on one line, separated by commas. Remember to use
specific mnemonics for registers, e.g. for the 68000, USP for the user stack and SSP
for the supervisor stack.
UNIT
Description The UNIT directive allows the destination unit in a multi-processor target to be
specified, such as the Main CPU and Sub-CPU in Sega Mega-CD.
Syntax UNIT unitnumber
Remarks Only one UNIT directive may be included; if there is no UNIT directive, a unit
number of 0 is assumed.
Examples unit 1