Specifications

Saturn General Assembler Directives 4-13
Psy-Q Development System
DC
Description This directive evaluates the expressions in the operand field, and assigns the results to
the preceding symbol, in the format specified by the .size parameter. Argument
expressions may be numeric values, strings or symbols.
Syntax symbol name DC.size expression,..,expression
where .size is .b byte
.w word
.l long word
(if .size is not specified, .w is assumed)
See Also DCB
Remarks
Textual operands are delimited by double or single quotes. If it is required to
include a double quote in the text string, delimit with single quotes or two double
quotes; similarly, to include a single quote in the text, delimit with double quotes
or two single quotes - see examples below. If delimiters are omitted, the
Assembler assumes the operand to be the symbol name of a previously defined
string variable, the value of which is assigned to the new symbol name.
When the Automatic Even assembler option (/AE) is in force, DC directives for
word and long word ensure that the program counter is aligned to the next word
boundary.
Examples Hexvals dc.w $80d,$a08,0,$80d,0
Coords dc.w -15,46
Pointers dc.l StartMarker,EndMarker
ErrorMes dc.b "File Error",0
Notes If the Assembler encounters a parameter that is out-of-range, an error is flagged; the
following statements will produce errors:
dc.b 257
dc.b -129
dc.w 66000
dc.w -33000