Class: AArch64::Instructions::LDPSW
- Inherits:
-
Object
- Object
- AArch64::Instructions::LDPSW
- Defined in:
- lib/aarch64/instructions/ldpsw.rb
Overview
LDPSW – A64 Load Pair of Registers Signed Word LDPSW <Xt1>, <Xt2>, [<Xn|SP>], #<imm> LDPSW <Xt1>, <Xt2>, [<Xn|SP>, #<imm>]! LDPSW <Xt1>, <Xt2>, [<Xn|SP>#<imm>]
Instance Method Summary collapse
- #encode ⇒ Object
-
#initialize(rt, rt2, rn, imm7, mode) ⇒ LDPSW
constructor
A new instance of LDPSW.
Constructor Details
#initialize(rt, rt2, rn, imm7, mode) ⇒ LDPSW
Returns a new instance of LDPSW.
9 10 11 12 13 14 15 |
# File 'lib/aarch64/instructions/ldpsw.rb', line 9 def initialize rt, rt2, rn, imm7, mode @rt = rt @rt2 = rt2 @rn = rn @imm7 = imm7 @mode = mode end |
Instance Method Details
#encode ⇒ Object
17 18 19 |
# File 'lib/aarch64/instructions/ldpsw.rb', line 17 def encode LDPSW(@mode, @imm7, @rt2.to_i, @rn.to_i, @rt.to_i) end |