Class: AArch64::Instructions::LDRH_reg
- Inherits:
-
Instruction
- Object
- Instruction
- 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 = check_mask(rt, 0x1f) @rn = check_mask(rn, 0x1f) @rm = check_mask(rm, 0x1f) @s = check_mask(s, 0x01) @option = check_mask(option, 0x07) end |
Instance Method Details
#encode(_) ⇒ Object
15 16 17 |
# File 'lib/aarch64/instructions/ldrh_reg.rb', line 15 def encode _ LDRH_reg(@rm, @option, @s, @rn, @rt) end |