Class: AArch64::Instructions::BL
- Inherits:
-
Object
- Object
- AArch64::Instructions::BL
- Defined in:
- lib/aarch64/instructions/bl.rb
Overview
BL – A64 Branch with Link BL <label>
Instance Method Summary collapse
- #encode ⇒ 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 ⇒ Object
11 12 13 |
# File 'lib/aarch64/instructions/bl.rb', line 11 def encode BL(@label.to_i / 4) end |