Class: AArch64::Instructions::CBZ
- Inherits:
-
Instruction
- Object
- Instruction
- AArch64::Instructions::CBZ
- Defined in:
- lib/aarch64/instructions/cbz.rb
Overview
CBZ – A64 Compare and Branch on Zero CBZ <Wt>, <label> CBZ <Xt>, <label>
Instance Method Summary collapse
- #encode(pos) ⇒ Object
-
#initialize(rt, label, sf) ⇒ CBZ
constructor
A new instance of CBZ.
Constructor Details
#initialize(rt, label, sf) ⇒ CBZ
Returns a new instance of CBZ.
8 9 10 11 12 |
# File 'lib/aarch64/instructions/cbz.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/cbz.rb', line 14 def encode pos CBZ(@sf, check_mask(unwrap_label(@label, pos), 0x7ffff), @rt) end |