Class: AArch64::Instructions::CASB
- Inherits:
-
Instruction
- Object
- Instruction
- AArch64::Instructions::CASB
- Defined in:
- lib/aarch64/instructions/casb.rb
Overview
CASB, CASAB, CASALB, CASLB – A64 Compare and Swap byte in memory CASAB <Ws>, <Wt>, [<Xn|SP>,,#0] CASALB <Ws>, <Wt>, [<Xn|SP>,,#0] CASB <Ws>, <Wt>, [<Xn|SP>,,#0] CASLB <Ws>, <Wt>, [<Xn|SP>,,#0]
Instance Method Summary collapse
- #encode(_) ⇒ Object
-
#initialize(rs, rt, rn, l, o0) ⇒ CASB
constructor
A new instance of CASB.
Constructor Details
#initialize(rs, rt, rn, l, o0) ⇒ CASB
Returns a new instance of CASB.
10 11 12 13 14 15 16 |
# File 'lib/aarch64/instructions/casb.rb', line 10 def initialize rs, rt, rn, l, o0 @rs = check_mask(rs, 0x1f) @rt = check_mask(rt, 0x1f) @rn = check_mask(rn, 0x1f) @l = check_mask(l, 0x01) @o0 = check_mask(o0, 0x01) end |
Instance Method Details
#encode(_) ⇒ Object
18 19 20 |
# File 'lib/aarch64/instructions/casb.rb', line 18 def encode _ CASB(@l, @rs, @o0, @rn, @rt) end |