Class: AArch64::Instructions::BL

Inherits:
Object
  • Object
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

#encodeObject



11
12
13
# File 'lib/aarch64/instructions/bl.rb', line 11

def encode
  BL(@label.to_i / 4)
end