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