Specifications
Saturn General Assembler Directives 4-15
Psy-Q Development System
DS
Description Allocates memory to the symbol, of the specified length, and initialises it to zero.
Syntax symbol name DS.size length
where .size is .b byte
.w word
.l long word
(if .size is not specified, .w is assumed)
See Also DC, DCB
Remarks
• When the Automatic Even assembler option (/AE) is in force, DS directives for
word and long word ensure that the program counter is aligned to the next word
boundary.
• If this directive is used to allocate memory in a Group/Section with the BSS
attribute, the reserved area will not be initialised - see Groups and Sections,
chapter 8.
Examples List ds.w 64
reserves an area 64 words long, and sets it to zero.
Buffer ds.b 1024
reserves a 1k bytes area, and sets it to zero.