Keil Logo

BYTEx Assembler Operator

Arguments
BYTEx operand


Description

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.

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.

  • 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

HIGH, LOW, WORDx

Example
MOV     R0,#BYTE2 12345678h   ; R0=34h
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.