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