Class: AArch64::Instructions::TBNZ
- Inherits:
-
Instruction
- Object
- Instruction
- AArch64::Instructions::TBNZ
- Defined in:
- lib/aarch64/instructions/tbnz.rb
Overview
TBNZ – A64 Test bit and Branch if Nonzero TBNZ <R><t>, #<imm>, <label>
Instance Method Summary collapse
- #encode(pos) ⇒ Object
-
#initialize(rt, imm, label, sf) ⇒ TBNZ
constructor
A new instance of TBNZ.
Constructor Details
#initialize(rt, imm, label, sf) ⇒ TBNZ
Returns a new instance of TBNZ.
7 8 9 10 11 12 |
# File 'lib/aarch64/instructions/tbnz.rb', line 7 def initialize rt, imm, label, sf @rt = check_mask(rt, 0x1f) @imm = check_mask(imm, 0x1f) @label = label @sf = check_mask(sf, 0x1) end |
Instance Method Details
#encode(pos) ⇒ Object
14 15 16 |
# File 'lib/aarch64/instructions/tbnz.rb', line 14 def encode pos TBNZ(@sf, @imm, check_mask(unwrap_label(@label, pos), 0x3fff), @rt) end |