Class: AArch64::Instructions::CCMN_reg

Inherits:
Instruction show all
Defined in:
lib/aarch64/instructions/ccmn_reg.rb

Overview

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of CCMN_reg.



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

def initialize rn, rm, nzcv, cond, sf
  @rn   = check_mask(rn, 0x1f)
  @rm   = check_mask(rm, 0x1f)
  @nzcv = check_mask(nzcv, 0x0f)
  @cond = check_mask(cond, 0x0f)
  @sf   = check_mask(sf, 0x01)
end

Instance Method Details

#encode(_) ⇒ Object



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

def encode _
  CCMN_reg(@sf, @rm, @cond, @rn, @nzcv)
end