Skip to main content

IAR Embedded Workbench for Arm 9.70.x

ADR (CODE16)

In this section:
Syntax
ADR register,expression
Parameters

register

The register to load.

expression

A program-relative expression that evaluates to a word-aligned address within the range +4 to +1024 bytes.

Description

This Thumb-1 ADR can generate word-aligned addresses only (that is, addresses divisible by 4). Use the ALIGNROM directive to ensure that the address is aligned (unless DC32 is used, because it is always word-aligned).