Secures the memory area of the number of bytes specified by operand.
Symbol field |
Mnemonic field |
Operand field |
Comment field |
[label:] |
.ds |
absolute-expression |
[; comment] |
The .ds directive tells the assembler to reserve a memory area for the number of bytes specified in the operand field. |
The .ds directive is mainly used to reserve a memory (RAM) area to be used in the program. |
If relocation attribute "BSS" is applied to the section where this instruction is written, an area for the number of bytes specified in the operand is allocated. For other sections, an area for the number of bytes specified in the operand is allocated and then initialized by 0. |