Class: AArch64::Instructions::LDXP

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

Overview

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

Instance Method Summary collapse

Constructor Details

#initialize(rt, rt2, rn, sz) ⇒ LDXP

Returns a new instance of LDXP.



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

def initialize rt, rt2, rn, sz
  @rt  = check_mask(rt, 0x1f)
  @rt2 = check_mask(rt2, 0x1f)
  @rn  = check_mask(rn, 0x1f)
  @sz  = check_mask(sz, 0x01)
end

Instance Method Details

#encode(_) ⇒ Object



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

def encode _
  LDXP(@sz, @rt2, @rn, @rt)
end