Class: AArch64::Instructions::STXP
- Inherits:
-
Instruction
- Object
- Instruction
- AArch64::Instructions::STXP
- Defined in:
- lib/aarch64/instructions/stxp.rb
Overview
STXP – A64 Store Exclusive Pair of registers STXP <Ws>, <Wt1>, <Wt2>, [<Xn|SP>,,#0] STXP <Ws>, <Xt1>, <Xt2>, [<Xn|SP>,,#0]
Instance Method Summary collapse
- #encode(_) ⇒ Object
-
#initialize(rs, rt1, rt2, rn, sf) ⇒ STXP
constructor
A new instance of STXP.
Constructor Details
#initialize(rs, rt1, rt2, rn, sf) ⇒ STXP
Returns a new instance of STXP.
8 9 10 11 12 13 14 |
# File 'lib/aarch64/instructions/stxp.rb', line 8 def initialize rs, rt1, rt2, rn, sf @rs = check_mask(rs, 0x1f) @rt1 = check_mask(rt1, 0x1f) @rt2 = check_mask(rt2, 0x1f) @rn = check_mask(rn, 0x1f) @sf = check_mask(sf, 0x01) end |
Instance Method Details
#encode(_) ⇒ Object
16 17 18 |
# File 'lib/aarch64/instructions/stxp.rb', line 16 def encode _ STXP(@sf, @rs, @rt2, @rn, @rt1) end |