11.60 MRA

Transfer to two general-purpose registers from a 40-bit internal accumulator.

Syntax

MRA{cond} RdLo, RdHi, Acc

where:

cond

is an optional condition code.

Acc

is the internal accumulator. The standard name is accx,where x is an integer in the range 0 to n. The value of n depends on the processor. It is 0 for current processors.

RdLo, RdHi

are general-purpose registers. RdLo and RdHi must not be the PC, and they must be different registers.

Operation

The MRA instruction:

  • Copies bits[31:0] of Acc to RdLo.

  • Copies bits[39:32] of Acc to RdHi bits[7:0].

  • Sign extends the value by copying bit[39] of Acc to bits[31:8] of RdHi.

Architectures

The MRA ARM coprocessor 0 instruction is only available in XScale processors.

There is no Thumb version of the MRA instruction.

Examples

    MRA     r4, r5, acc0
    MRAGT   r4, r8, acc0
Non-ConfidentialPDF file icon PDF versionARM DUI0473M
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.