Class: AArch64::Instructions::LDAPRB

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

Overview

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

Instance Method Summary collapse

Constructor Details

#initialize(rt, rn) ⇒ LDAPRB

Returns a new instance of LDAPRB.



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

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

Instance Method Details

#encodeObject



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

def encode
  LDAPRB(@rn.to_i, @rt.to_i)
end