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