Class: AArch64::Instructions::LDNP_gen
- Inherits:
-
Object
- Object
- AArch64::Instructions::LDNP_gen
- Defined in:
- lib/aarch64/instructions/ldnp_gen.rb
Overview
LDNP – A64 Load Pair of Registers, with non-temporal hint LDNP <Wt1>, <Wt2>, [<Xn|SP>#<imm>] LDNP <Xt1>, <Xt2>, [<Xn|SP>#<imm>]
Instance Method Summary collapse
- #encode ⇒ Object
-
#initialize(rt1, rt2, rn, imm, opc) ⇒ LDNP_gen
constructor
A new instance of LDNP_gen.
Constructor Details
#initialize(rt1, rt2, rn, imm, opc) ⇒ LDNP_gen
Returns a new instance of LDNP_gen.
8 9 10 11 12 13 14 |
# File 'lib/aarch64/instructions/ldnp_gen.rb', line 8 def initialize rt1, rt2, rn, imm, opc @rt1 = rt1 @rt2 = rt2 @rn = rn @imm = imm @opc = opc end |
Instance Method Details
#encode ⇒ Object
16 17 18 |
# File 'lib/aarch64/instructions/ldnp_gen.rb', line 16 def encode LDNP_gen(@opc, @imm, @rt2.to_i, @rn.to_i, @rt1.to_i) end |