Class: AArch64::Instructions::REV

Inherits:
Object
  • Object
show all
Defined in:
lib/aarch64/instructions/rev.rb

Overview

REV – A64 Reverse Bytes REV <Wd>, <Wn> REV <Xd>, <Xn>

Instance Method Summary collapse

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

#encodeObject



15
16
17
# File 'lib/aarch64/instructions/rev.rb', line 15

def encode
  REV(@sf, @rn.to_i, @rd.to_i, @opc)
end