A166 User's Guide

HIGH Assembler Operator

Arguments
HIGH operand
Description

The HIGH operator returns the high-order byte of operand (a 16-bit operand is assumed). The operand must either be absolute or a constant defined as extern name:DATAn . Other types of relocatable operands are not allowed.

The following table shows how the BYTEx, WORDx, HIGH, and LOW controls work on a 32-bit value.

MSB32-bit operandLSB
BYTE3BYTE2BYTE1BYTE0
WORD2WORD0
HIGHLOW
See Also

BYTEx, LOW, WORDx

Example
MOV     R0,#HIGH 1234h   ; R0=12h