Crossware

Table of Contents        Previous topic       Next topic       

ASSEMBLER DIRECTIVES->Other Assembler Directives->DS Define Storage

DS is the define storage directive used to reserve locations in memory for specific purposes.  The DS directive allocates a specified number of bytes depending on the size specification as follows:

Size SpecificationBytes Reserved
Byte (.B)1
Word (.W)2
Long word (.L)4

.W is assumed if no size is specified.

Formats:

DS.B<expression><comment>
DS.W<expression><comment>
DS.L<expression><comment>
DS<expression><comment>

where <expression> evaluates to the number of units to be reserved.