Class: AArch64::Instructions::SETF

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

Overview

SETF8, SETF16 – A64 Evaluation of 8 or 16 bit flag values SETF8 <Wn> SETF16 <Wn>

Instance Method Summary collapse

Constructor Details

#initialize(rn, sz) ⇒ SETF

Returns a new instance of SETF.



8
9
10
11
# File 'lib/aarch64/instructions/setf.rb', line 8

def initialize rn, sz
  @rn = rn
  @sz = sz
end

Instance Method Details

#encodeObject



13
14
15
# File 'lib/aarch64/instructions/setf.rb', line 13

def encode
  SETF(@sz, @rn.to_i)
end