Class: AArch64::Instructions::LDTRSW
- Inherits:
-
Instruction
- Object
- Instruction
- 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 = check_mask(rt, 0x1f) @rn = check_mask(rn, 0x1f) @imm9 = check_mask(imm9, 0x1ff) end |
Instance Method Details
#encode(_) ⇒ Object
13 14 15 |
# File 'lib/aarch64/instructions/ldtrsw.rb', line 13 def encode _ LDTRSW(@imm9, @rn, @rt) end |