Class: AArch64::Instructions::CBNZ
- Inherits:
-
Instruction
- Object
- Instruction
- 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(pos) ⇒ 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 = check_mask(rt, 0x1f) @label = label @sf = check_mask(sf, 0x1) end |
Instance Method Details
#encode(pos) ⇒ Object
14 15 16 |
# File 'lib/aarch64/instructions/cbnz.rb', line 14 def encode pos CBNZ(@sf, check_mask(unwrap_label(@label, pos), 0x7ffff), @rt) end |