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 Specification | Bytes Reserved |
| Byte (.B) | 1 |
| Word (.W) | 2 |
| Long word (.L) | 4 |
| DS.B | <expression> | <comment> |
| DS.W | <expression> | <comment> |
| DS.L | <expression> | <comment> |
| DS | <expression> | <comment> |