Class: AArch64::Instructions::CBNZ
- Inherits:
-
Object
- Object
- AArch64::Instructions::CBNZ
- 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
- #encode ⇒ Object
-
#initialize(rt, label, sf) ⇒ CBNZ
constructor
A new instance of CBNZ.
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
#encode ⇒ Object
14 15 16 |
# File 'lib/aarch64/instructions/cbnz.rb', line 14 def encode CBNZ(@sf, @label.to_i / 4, @rt.to_i) end |