Class: AArch64::Instructions::CCMP_reg

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

Overview

CCMP (register) – A64 Conditional Compare (register) CCMP <Wn>, <Wm>, #<nzcv>, <cond> CCMP <Xn>, <Xm>, #<nzcv>, <cond>

Instance Method Summary collapse

Constructor Details

#initialize(rn, rm, nzcv, cond, sf) ⇒ CCMP_reg

Returns a new instance of CCMP_reg.



8
9
10
11
12
13
14
# File 'lib/aarch64/instructions/ccmp_reg.rb', line 8

def initialize rn, rm, nzcv, cond, sf
  @rn   = rn
  @rm   = rm
  @nzcv = nzcv
  @cond = cond
  @sf   = sf
end

Instance Method Details

#encodeObject



16
17
18
# File 'lib/aarch64/instructions/ccmp_reg.rb', line 16

def encode
  CCMP_reg(@sf, @rm.to_i, @cond, @rn.to_i, @nzcv)
end