Class: AArch64::Instructions::CAS
- Inherits:
-
Object
- Object
- AArch64::Instructions::CAS
- Defined in:
- lib/aarch64/instructions/cas.rb
Overview
CAS, CASA, CASAL, CASL – A64 Compare and Swap word or doubleword in memory CAS <Ws>, <Wt>, [<Xn|SP>,,#0] CASA <Ws>, <Wt>, [<Xn|SP>,,#0] CASAL <Ws>, <Wt>, [<Xn|SP>,,#0] CASL <Ws>, <Wt>, [<Xn|SP>,,#0] CAS <Xs>, <Xt>, [<Xn|SP>,,#0] CASA <Xs>, <Xt>, [<Xn|SP>,,#0] CASAL <Xs>, <Xt>, [<Xn|SP>,,#0] CASL <Xs>, <Xt>, [<Xn|SP>,,#0]
Instance Method Summary collapse
- #encode ⇒ Object
-
#initialize(s, t, n, l, o0, sf) ⇒ CAS
constructor
A new instance of CAS.
Constructor Details
#initialize(s, t, n, l, o0, sf) ⇒ CAS
Returns a new instance of CAS.
14 15 16 17 18 19 20 21 |
# File 'lib/aarch64/instructions/cas.rb', line 14 def initialize s, t, n, l, o0, sf @s = s @t = t @n = n @l = l @o0 = o0 @sf = sf end |
Instance Method Details
#encode ⇒ Object
23 24 25 |
# File 'lib/aarch64/instructions/cas.rb', line 23 def encode CAS(@sf, @l, @s.to_i, @o0, @n.to_i, @t.to_i) end |