Class: AArch64::Instructions::LDRSH_reg
- Inherits:
-
Object
- Object
- AArch64::Instructions::LDRSH_reg
- Defined in:
- lib/aarch64/instructions/ldrsh_reg.rb
Overview
LDRSH (register) – A64 Load Register Signed Halfword (register) LDRSH <Wt>, [<Xn|SP>, (<Wm>|<Xm>)<extend> {<amount>}] LDRSH <Xt>, [<Xn|SP>, (<Wm>|<Xm>)<extend> {<amount>}]
Instance Method Summary collapse
- #encode ⇒ Object
-
#initialize(rt, rn, rm, s, option, opc) ⇒ LDRSH_reg
constructor
A new instance of LDRSH_reg.
Constructor Details
#initialize(rt, rn, rm, s, option, opc) ⇒ LDRSH_reg
Returns a new instance of LDRSH_reg.
8 9 10 11 12 13 14 15 |
# File 'lib/aarch64/instructions/ldrsh_reg.rb', line 8 def initialize rt, rn, rm, s, option, opc @rt = rt @rn = rn @rm = rm @s = s @option = option @opc = opc end |
Instance Method Details
#encode ⇒ Object
17 18 19 |
# File 'lib/aarch64/instructions/ldrsh_reg.rb', line 17 def encode LDRSH_reg(@opc, @rm.to_i, @option, @s, @rn.to_i, @rt.to_i) end |