Class: AArch64::Instructions::CASH
- Inherits:
-
Instruction
- Object
- Instruction
- AArch64::Instructions::CASH
- Defined in:
- lib/aarch64/instructions/cash.rb
Overview
CASH, CASAH, CASALH, CASLH – A64 Compare and Swap halfword in memory CASAH <Ws>, <Wt>, [<Xn|SP>,,#0] CASALH <Ws>, <Wt>, [<Xn|SP>,,#0] CASH <Ws>, <Wt>, [<Xn|SP>,,#0] CASLH <Ws>, <Wt>, [<Xn|SP>,,#0]
Instance Method Summary collapse
- #encode(_) ⇒ Object
-
#initialize(rs, rt, rn, l, o0) ⇒ CASH
constructor
A new instance of CASH.
Constructor Details
#initialize(rs, rt, rn, l, o0) ⇒ CASH
Returns a new instance of CASH.
10 11 12 13 14 15 16 |
# File 'lib/aarch64/instructions/cash.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/cash.rb', line 18 def encode _ CASH(@l, @rs, @o0, @rn, @rt) end |