AARM User's Guide

Discontinued

BYTEx Assembler Operator

Arguments
BYTEx operand


Description Keil, Inc.

The BYTEx operators return the byte of operand corresponding to the position specified by x. For example, BYTE0 returns the least-significant byte, BYTE1 returns the next byte, and so on. The following table shows how the BYTEx, WORDx, HIGH, and LOW controls work on a 32-bit value.

MSB32-bit operandLSB
BYTE3BYTE2BYTE1BYTE0
WORD2WORD0
HIGHLOW

The operand must either be absolute or a constant defined as extern :DATAn. Other types of relocatable operands are not allowed.

Note

  • The BYTE0, BYTE1, BYTE2, BYTE3, BYTE4, BYTE5, BYTE6, and BYTE7 operators are available with the A166 Assembler.

Note

  • This directive is available in the AX51 Assembler only.
See Also

WORDx

Example
MOV     R0,#BYTE2 12345678h   ; R0=34h