Class: AArch64::Instructions::LDAPRH

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

Overview

LDAPRH – A64 Load-Acquire RCpc Register Halfword LDAPRH <Wt>, [<Xn|SP> ,,#0]

Instance Method Summary collapse

Constructor Details

#initialize(rt, rn) ⇒ LDAPRH

Returns a new instance of LDAPRH.



7
8
9
10
# File 'lib/aarch64/instructions/ldaprh.rb', line 7

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

Instance Method Details

#encode(_) ⇒ Object



12
13
14
# File 'lib/aarch64/instructions/ldaprh.rb', line 12

def encode _
  LDAPRH(@rn, @rt)
end