Specifications
4-22 Programmer’s Guide Sega
Psy-Q Development System
OBJ and OBJEND
Description OBJ forces the code following it to be assembled as if it were at the specified
address, although it will still appear following on from the previous code.
OBJEND terminates this process and returns to the ORG'd address value.
Syntax OBJ address
OBJEND
See Also ORG
Remarks
• The OBJ - OBJEND construct is useful for code that must be assembled at one
address (for instance, in a ROM cartridge), but will be run at a different address,
after being copied there.
• Code blocks delimited by OBJ - OBJEND cannot be nested.
Examples org $100
dc.l *
dc.l *
obj $200
dc.l *
dc.l *
objend
dc.l *
dc.l *
The above code will generate the following sequence of longwords, starting at
address $100:
$100
$104
$200
$204
$110
$114