.DB2


Initialization of 2-byte area.

[Syntax]

Symbol field
Mnemonic field
Operand field
Comment field
[label:]
.DB2 
expression[, ... ]
[; comment]

[Function]

-

The .DB2 directive tells the assembler to initialize 2-byte area.

[Description]

-

The .DB2 directive tells the assembler to initialize 2-byte area.

The value of an expression must be 2-byte data. Therefore, the value of the operand must be in the range of 0x0000 to 0xFFFF. If the value exceeds 2-byte, the assembler will use only lower 2-byte value as valid 2-byte data.

An expression that includes a relocatable symbol or external reference name may be described.

-

Character string constants cannot be specified in the operand field.

-

If the relocation attribute of the section containing the .DB2 directive is "BSS", then an error is output because initial values cannot be specified.

[Example]

        .DSEG   DATA
LABEL:  .DB2    0x1234  ; 2-byte area is initialized by 0x34, 0x12