The .db directive tells the assembler to initialize a memory area in byte units with the initial value(s) specified in the operand field. |
The value of an expression must be 1-byte data. Therefore, the value of the operand must be in the range of 0x0 to 0xFF. If the value exceeds 1 byte, the assembler will use only lower 1 byte of the value as valid data.
If an operand is surrounded by double quotes ("), it is assumed to be a string constant.
If a character string constants is described as the operand, an area of appropriate size will be reserved for each character in the string.
As an initial value, an expression that includes a relocatable symbol or external reference symbol may be described. |
If the relocation attribute of the section containing the .db directive is "BSS", then an error is output because initial values cannot be specified. |