Class: AArch64::Instructions::CBNZ

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

Overview

CBNZ – A64 Compare and Branch on Nonzero CBNZ <Wt>, <label> CBNZ <Xt>, <label>

Instance Method Summary collapse

Constructor Details

#initialize(rt, label, sf) ⇒ CBNZ

Returns a new instance of CBNZ.



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

def initialize rt, label, sf
  @rt    = rt
  @label = label
  @sf    = sf
end

Instance Method Details

#encodeObject



14
15
16
# File 'lib/aarch64/instructions/cbnz.rb', line 14

def encode
  CBNZ(@sf, @label.to_i / 4, @rt.to_i)
end