Class: AArch64::Instructions::CBZ
- Inherits:
-
Object
- Object
- 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 ⇒ Object
-
#initialize(rt, label, sf) ⇒ CBZ
constructor
A new instance of CBZ.
Constructor Details
#initialize(rt, label, sf) ⇒ CBZ
8 9 10 11 12 |
# File 'lib/aarch64/instructions/cbz.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/cbz.rb', line 14 def encode CBZ(@sf, @label.to_i / 4, @rt.to_i) end |