Class: AArch64::Instructions::LDADDH
- Inherits:
-
Object
- Object
- AArch64::Instructions::LDADDH
- Defined in:
- lib/aarch64/instructions/ldaddh.rb
Overview
LDADDH, LDADDAH, LDADDALH, LDADDLH – A64 Atomic add on halfword in memory LDADDAH <Ws>, <Wt>, [<Xn|SP>] LDADDALH <Ws>, <Wt>, [<Xn|SP>] LDADDH <Ws>, <Wt>, [<Xn|SP>] LDADDLH <Ws>, <Wt>, [<Xn|SP>]
Instance Method Summary collapse
- #encode ⇒ Object
-
#initialize(rs, rt, rn, a, r) ⇒ LDADDH
constructor
A new instance of LDADDH.
Constructor Details
#initialize(rs, rt, rn, a, r) ⇒ LDADDH
Returns a new instance of LDADDH.
10 11 12 13 14 15 16 |
# File 'lib/aarch64/instructions/ldaddh.rb', line 10 def initialize rs, rt, rn, a, r @rs = rs @rt = rt @rn = rn @a = a @r = r end |
Instance Method Details
#encode ⇒ Object
18 19 20 |
# File 'lib/aarch64/instructions/ldaddh.rb', line 18 def encode LDADDH(@a, @r, @rs.to_i, @rn.to_i, @rt.to_i) end |