Class: AArch64::Instructions::LDSET
- Inherits:
-
Instruction
- Object
- Instruction
- AArch64::Instructions::LDSET
- Defined in:
- lib/aarch64/instructions/ldset.rb
Overview
LDSET, LDSETA, LDSETAL, LDSETL – A64 Atomic bit set on word or doubleword in memory LDSET <Ws>, <Wt>, [<Xn|SP>] LDSETA <Ws>, <Wt>, [<Xn|SP>] LDSETAL <Ws>, <Wt>, [<Xn|SP>] LDSETL <Ws>, <Wt>, [<Xn|SP>] LDSET <Xs>, <Xt>, [<Xn|SP>] LDSETA <Xs>, <Xt>, [<Xn|SP>] LDSETAL <Xs>, <Xt>, [<Xn|SP>] LDSETL <Xs>, <Xt>, [<Xn|SP>]
Instance Method Summary collapse
- #encode(_) ⇒ Object
-
#initialize(rs, rt, rn, size, a, r) ⇒ LDSET
constructor
A new instance of LDSET.
Constructor Details
#initialize(rs, rt, rn, size, a, r) ⇒ LDSET
Returns a new instance of LDSET.
14 15 16 17 18 19 20 21 |
# File 'lib/aarch64/instructions/ldset.rb', line 14 def initialize rs, rt, rn, size, a, r @rs = check_mask(rs, 0x1f) @rt = check_mask(rt, 0x1f) @rn = check_mask(rn, 0x1f) @size = check_mask(size, 0x03) @a = check_mask(a, 0x01) @r = check_mask(r, 0x01) end |
Instance Method Details
#encode(_) ⇒ Object
23 24 25 |
# File 'lib/aarch64/instructions/ldset.rb', line 23 def encode _ LDSET(@size, @a, @r, @rs, @rn, @rt) end |