.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 bytes of data. Therefore, the value of the operand must be in the range of 0x0000 to 0xFFFF. The assembler checks the lower-order 24 bits of the result of an operation and outputs an error message if the value is not within the range from 0x0000 to 0xFFFF.

An expression may include a relocatable symbol or reference to an external name.

-

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