Chapter 9 Writing Machine Language Instructions and Directive Statements
170 Writing Directive Statements
9.4.13 dd
Syntax
label operation operand
[name] dd expression(, expression)...
Functional description
This directive is used to define 32-bit constants in a memory area. The 32-bit constant specified by the
operand will be stored at the location of the statement specifying this directive.
When a name is coded for the label, the assembler will assign the current location counter value to that
name.
Operand coding rules
The operands are delimited with commas(,). Any number of operands can be coded.
When the specified data has fewer than 24 bits, those bits will fill the lower bits and the upper bits will
be padded with zeros.
Usage example
Below is an example use of the dw directive.
dd.LST Page 1
*** PanaX Series MN1030 Cross Assembler ***
Loc Object Line Source
1 global dd0, dd1, g_dd0
2 ;
3 _DATA section DATA, PUBLIC, 4
00000000 78563412 4 dd0 dd 0x12345678
00000004 00000000 +5 dd dd0
00000008 00000000 +6 dd1 dd g_dd0