Keil Logo Arm Logo

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.

MSB 32-bit operand LSB
BYTE3 BYTE2 BYTE1 BYTE0
WORD2 WORD0
HIGH LOW
See Also

BYTEx, LOW, WORDx

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

Keil logo

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.