Class: AArch64::Instructions::REV
- Inherits:
-
Object
- Object
- AArch64::Instructions::REV
- Defined in:
- lib/aarch64/instructions/rev.rb
Overview
REV – A64 Reverse Bytes REV <Wd>, <Wn> REV <Xd>, <Xn>
Instance Method Summary collapse
- #encode ⇒ Object
-
#initialize(rd, rn, sf, opc) ⇒ REV
constructor
A new instance of REV.
Constructor Details
#initialize(rd, rn, sf, opc) ⇒ REV
Returns a new instance of REV.
8 9 10 11 12 13 |
# File 'lib/aarch64/instructions/rev.rb', line 8 def initialize rd, rn, sf, opc @rd = rd @rn = rn @sf = sf @opc = opc end |
Instance Method Details
#encode ⇒ Object
15 16 17 |
# File 'lib/aarch64/instructions/rev.rb', line 15 def encode REV(@sf, @rn.to_i, @rd.to_i, @opc) end |