Class: AArch64::Instructions::B_uncond
- Inherits:
-
Instruction
- Object
- Instruction
- AArch64::Instructions::B_uncond
- Defined in:
- lib/aarch64/instructions/b_uncond.rb
Overview
B – A64 Branch B <label>
Instance Method Summary collapse
- #encode(pos) ⇒ Object
-
#initialize(label) ⇒ B_uncond
constructor
A new instance of B_uncond.
Constructor Details
#initialize(label) ⇒ B_uncond
Returns a new instance of B_uncond.
7 8 9 |
# File 'lib/aarch64/instructions/b_uncond.rb', line 7 def initialize label @label = label end |
Instance Method Details
#encode(pos) ⇒ Object
11 12 13 |
# File 'lib/aarch64/instructions/b_uncond.rb', line 11 def encode pos B_uncond(check_mask(unwrap_label(@label, pos), 0x3ffffff)) end |