Class: AArch64::Instructions::STXRH
- Inherits:
-
Instruction
- Object
- Instruction
- AArch64::Instructions::STXRH
- Defined in:
- lib/aarch64/instructions/stxrh.rb
Overview
STXRH – A64 Store Exclusive Register Halfword STXRH <Ws>, <Wt>, [<Xn|SP>,,#0]
Instance Method Summary collapse
- #encode(_) ⇒ Object
-
#initialize(rs, rt, rn) ⇒ STXRH
constructor
A new instance of STXRH.
Constructor Details
#initialize(rs, rt, rn) ⇒ STXRH
Returns a new instance of STXRH.
7 8 9 10 11 |
# File 'lib/aarch64/instructions/stxrh.rb', line 7 def initialize rs, rt, rn @rs = check_mask(rs, 0x1f) @rt = check_mask(rt, 0x1f) @rn = check_mask(rn, 0x1f) end |
Instance Method Details
#encode(_) ⇒ Object
13 14 15 |
# File 'lib/aarch64/instructions/stxrh.rb', line 13 def encode _ STXRH(@rs, @rn, @rt) end |