Class: AArch64::Instructions::LDLAR

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

Overview

LDLAR – A64 Load LOAcquire Register LDLAR <Wt>, [<Xn|SP>,,#0] LDLAR <Xt>, [<Xn|SP>,,#0]

Instance Method Summary collapse

Constructor Details

#initialize(rt, rn, size) ⇒ LDLAR

Returns a new instance of LDLAR.



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

def initialize rt, rn, size
  @rt   = check_mask(rt, 0x1f)
  @rn   = check_mask(rn, 0x1f)
  @size = check_mask(size, 0x03)
end

Instance Method Details

#encode(_) ⇒ Object



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

def encode _
  LDLAR(@size, @rn, @rt)
end