 | A166 User's Guide |  |
|
|
| WORDx Assembler Operator| Arguments |
WORDx operand
| | Description | Keil, Inc. The WORDx operators return the word of operand corresponding to the position specified by x. For example, WORD0 returns the least-significant word, WORD2 returns the next word, and so on. The following table shows how the BYTEx, WORDx, HIGH, and LOW controls work on a 32-bit value. | MSB | 32-bit operand | LSB |
|---|
| BYTE3 | BYTE2 | BYTE1 | BYTE0 | | WORD2 | WORD0 | | | HIGH | LOW |
The operand must either be absolute or a constant defined as extern :DATAn. Other types of relocatable operands are not allowed. Note - The WORD0, WORD2, WORD4, and WORD6 operators are available with the A166 Assembler.
Note - This directive is available in the AX51 Assembler only.
| | See Also | BYTEx, HIGH, LOW | | Example |
MOV R0, #WORD2 12345678h ; R0=1234h
|
|
|