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