Class: AArch64::Instructions::STXR
- Inherits:
-
Object
- Object
- AArch64::Instructions::STXR
- Defined in:
- lib/aarch64/instructions/stxr.rb
Overview
STXR – A64 Store Exclusive Register STXR <Ws>, <Wt>, [<Xn|SP>,,#0] STXR <Ws>, <Xt>, [<Xn|SP>,,#0]
Instance Method Summary collapse
- #encode ⇒ Object
-
#initialize(rs, rt, rn, size) ⇒ STXR
constructor
A new instance of STXR.
Constructor Details
#initialize(rs, rt, rn, size) ⇒ STXR
Returns a new instance of STXR.
8 9 10 11 12 13 |
# File 'lib/aarch64/instructions/stxr.rb', line 8 def initialize rs, rt, rn, size @rs = rs @rt = rt @rn = rn @size = size end |
Instance Method Details
#encode ⇒ Object
15 16 17 |
# File 'lib/aarch64/instructions/stxr.rb', line 15 def encode STXR(@size, @rs.to_i, @rn.to_i, @rt.to_i) end |