Class: AArch64::Instructions::LDAR

Inherits:
Object
  • Object
show all
Defined in:
lib/aarch64/instructions/ldar.rb

Overview

LDAR – A64 Load-Acquire Register LDAR <Wt>, [<Xn|SP>,,#0] LDAR <Xt>, [<Xn|SP>,,#0]

Instance Method Summary collapse

Constructor Details

#initialize(rt, rn, size) ⇒ LDAR

Returns a new instance of LDAR.



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

def initialize rt, rn, size
  @rt   = rt
  @rn   = rn
  @size = size
end

Instance Method Details

#encodeObject



14
15
16
# File 'lib/aarch64/instructions/ldar.rb', line 14

def encode
  LDAR(@size, @rn.to_i, @rt.to_i)
end