The statements
PARAMETER_TABLE DW PAR1
DW PAR2
DW PAR3
|
INTERSEG_DATA DD DATA1
DD DATA2
|
Figure 3-58 Use of DW and DD statements to preassign addresses.
![]() | ![]() |
| (a) DW statement | (b) DD statement |
The assembler uses the type attribute to determine whether the machine instruction is to operate on a byte or word (i.e., the w-bit is to be set to 0 or 1). For example, given
MOV OPER1,0
MOV OPER2,0
.
.
.
OPER1 DB ?,?
OPER2 DW ?,?
|
The LABEL directive, which
BYTE_ARRAY LABEL BYTE WORD_ARRAY DW 50 DUP(?) |
MOV WORD_ARRAY+2,0
MOV BYTE_ARRAY+2,0
This is page 43.