Class: AArch64::Instructions::BL

Inherits:
Instruction show all
Defined in:
lib/aarch64/instructions/bl.rb

Overview

BL – A64 Branch with Link BL <label>

Instance Method Summary collapse

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