Class: AArch64::Instructions::STRH_imm_unsigned
- Inherits:
-
Object
- Object
- AArch64::Instructions::STRH_imm_unsigned
- Defined in:
- lib/aarch64/instructions/strh_imm_unsigned.rb
Overview
STRH (immediate) – A64 Store Register Halfword (immediate) STRH <Wt>, [<Xn|SP>#<pimm>]
Instance Method Summary collapse
- #encode ⇒ Object
-
#initialize(rt, rn, imm12) ⇒ STRH_imm_unsigned
constructor
A new instance of STRH_imm_unsigned.
Constructor Details
#initialize(rt, rn, imm12) ⇒ STRH_imm_unsigned
Returns a new instance of STRH_imm_unsigned.
7 8 9 10 11 |
# File 'lib/aarch64/instructions/strh_imm_unsigned.rb', line 7 def initialize rt, rn, imm12 @rt = rt @rn = rn @imm12 = imm12 end |
Instance Method Details
#encode ⇒ Object
13 14 15 |
# File 'lib/aarch64/instructions/strh_imm_unsigned.rb', line 13 def encode STRH_imm_unsigned(@imm12, @rn.to_i, @rt.to_i) end |