ldaexh

Load Acquire Exclusive Halfword (A32)

LDAEXH<c> <Rt>, [<Rn>]

Loads a halfword, acquires semantics, marks exclusive.

Pseudocode Operation

Rt ← ZeroExtend([Rn], 16); ExclusiveLocal ← TRUE; Acquire()

Example

LDAEXH r3, [r1]

Encoding

Binary Layout
cond
31:28
00011
27:23
11
22:21
1
20
Rn
19:16
Rt
15:12
1
11
1
10
1
9
0
8
1001
7:4
1111
3:0
 
Format Load Excl
Opcode 0x01F00E9F
Extension A32 (Atomic)

Operands

  • Rt
    Transfer general-purpose register (load/store)
  • Rn
    First source / base general-purpose register

Related

More in A32 (Atomic)

Reference

Instruction Forms

Encoding Instruction ISA Bit pattern
0x01F00E9F LDAEXH{<c>}{<q>} <Rt>, [<Rn>] A32 cond | 00011 | 11 | 1 | Rn | Rt | 1 | 1 | 1 | 0 | 1001 | 1111
0xE8D00FDF LDAEXH{<c>}{<q>} <Rt>, [<Rn>] T32 11101000110 | 1 | Rn | Rt | 1111 | 1 | 1 | 01 | 1111

Description

Load-Acquire Exclusive Halfword loads a halfword from memory, zero-extends it to form a 32-bit word, writes it to a register and: The instruction also has memory ordering semantics as described in Load-Acquire, Store-Release. For more information about support for shared memory see Synchronization and semaphores. For information about memory accesses see Memory accesses.

Operation

if ConditionPassed() then
    EncodingSpecificOperations();
    address = R[n];
    AArch32.SetExclusiveMonitors(address, 2);
    R[t] = ZeroExtend(MemO[address, 2], 32);