Class: AArch64::Instructions::SWPB
- Inherits:
-
Object
- Object
- AArch64::Instructions::SWPB
- Defined in:
- lib/aarch64/instructions/swpb.rb
Overview
SWPB, SWPAB, SWPALB, SWPLB – A64 Swap byte in memory SWPAB <Ws>, <Wt>, [<Xn|SP>] SWPALB <Ws>, <Wt>, [<Xn|SP>] SWPB <Ws>, <Wt>, [<Xn|SP>] SWPLB <Ws>, <Wt>, [<Xn|SP>]
Instance Method Summary collapse
- #encode ⇒ Object
-
#initialize(rs, rt, rn, a, r) ⇒ SWPB
constructor
A new instance of SWPB.
Constructor Details
#initialize(rs, rt, rn, a, r) ⇒ SWPB
Returns a new instance of SWPB.
10 11 12 13 14 15 16 |
# File 'lib/aarch64/instructions/swpb.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/swpb.rb', line 18 def encode SWPB(@a, @r, @rs.to_i, @rn.to_i, @rt.to_i) end |