Class: AArch64::Instructions::LDTRSW
- Inherits:
-
Object
- Object
- AArch64::Instructions::LDTRSW
- Defined in:
- lib/aarch64/instructions/ldtrsw.rb
Overview
LDTRSW – A64 Load Register Signed Word (unprivileged) LDTRSW <Xt>, [<Xn|SP>#<simm>]
Instance Method Summary collapse
- #encode ⇒ Object
-
#initialize(rt, rn, imm9) ⇒ LDTRSW
constructor
A new instance of LDTRSW.
Constructor Details
#initialize(rt, rn, imm9) ⇒ LDTRSW
Returns a new instance of LDTRSW.
7 8 9 10 11 |
# File 'lib/aarch64/instructions/ldtrsw.rb', line 7 def initialize rt, rn, imm9 @rt = rt @rn = rn @imm9 = imm9 end |
Instance Method Details
#encode ⇒ Object
13 14 15 |
# File 'lib/aarch64/instructions/ldtrsw.rb', line 13 def encode LDTRSW(@imm9, @rn.to_i, @rt.to_i) end |