Class: AArch64::Instructions::STXR
- Inherits:
-
Instruction
- Object
- Instruction
- 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 = check_mask(rs, 0x1f) @rt = check_mask(rt, 0x1f) @rn = check_mask(rn, 0x1f) @size = check_mask(size, 0x03) end |
Instance Method Details
#encode(_) ⇒ Object
15 16 17 |
# File 'lib/aarch64/instructions/stxr.rb', line 15 def encode _ STXR(@size, @rs, @rn, @rt) end |