Class: AArch64::Instructions::LDAPRH
- Inherits:
-
Object
- Object
- AArch64::Instructions::LDAPRH
- Defined in:
- lib/aarch64/instructions/ldaprh.rb
Overview
LDAPRH – A64 Load-Acquire RCpc Register Halfword LDAPRH <Wt>, [<Xn|SP> ,,#0]
Instance Method Summary collapse
- #encode ⇒ Object
-
#initialize(rt, rn) ⇒ LDAPRH
constructor
A new instance of LDAPRH.
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 = rt @rn = rn end |
Instance Method Details
#encode ⇒ Object
12 13 14 |
# File 'lib/aarch64/instructions/ldaprh.rb', line 12 def encode LDAPRH(@rn.to_i, @rt.to_i) end |