Skip to main content

IAR Embedded Workbench for RH850 3.20.x

Value assignment directives

In this section:
Syntax

label = expr

label ASSIGN expr

label DEFINE const_expr

label EQU expr

label SET expr

label VAR expr

Parameters

const_expr

Constant value assigned to symbol.

expr

Value assigned to symbol or value to be tested.

label

Symbol to be defined.

Operand modifiers

These prefixes can be used to modify operands:

Prefix

Description

M:

  • Makes the JARL and JR instructions use 23-bit addressing

  • Makes the Bcond instruction use 17-bit displacement instead of 9-bit displacements

  • Makes register-indirect operands use 23-bit displacement instead of 16-bit displacement

F:

Makes the JARL and JR instructions use 32-bit displacement

Table 125. Operand modifiers


As an example, the operand modifier F: is needed to determine whether

JARL disp22,reg2

or

JARL disp32,reg2

shall be used. For example:

JARL F:max,R2

Description

These directives are used for assigning values to symbols:

Directive

Description

=, EQU

Assigns a permanent value local to a module.

ASSIGN, SET, VAR

Assigns a temporary value.

DEFINE

Defines a file-wide value.

Table 126. Value assignment directives