Class: AArch64::Instructions::LDAXP

Inherits:
Instruction show all
Defined in:
lib/aarch64/instructions/ldaxp.rb

Overview

LDAXP – A64 Load-Acquire Exclusive Pair of Registers LDAXP <Wt1>, <Wt2>, [<Xn|SP>,,#0] LDAXP <Xt1>, <Xt2>, [<Xn|SP>,,#0]

Instance Method Summary collapse

Constructor Details

#initialize(rt1, rt2, rn, sf) ⇒ LDAXP

Returns a new instance of LDAXP.



8
9
10
11
12
13
# File 'lib/aarch64/instructions/ldaxp.rb', line 8

def initialize rt1, rt2, rn, sf
  @rt1 = check_mask(rt1, 0x1f)
  @rt2 = check_mask(rt2, 0x1f)
  @rn  = check_mask(rn, 0x1f)
  @sf  = check_mask(sf, 0x01)
end

Instance Method Details

#encode(_) ⇒ Object



15
16
17
# File 'lib/aarch64/instructions/ldaxp.rb', line 15

def encode _
  LDAXP(@sf, @rt2, @rn, @rt1)
end