Class: AArch64::Instructions::LDR_reg_gen
- Inherits:
-
Object
- Object
- 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 = rt @rn = rn @rm = rm @size = size @option = option @s = s 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.to_i, @option, @s, @rn.to_i, @rt.to_i) end |