Class: AArch64::Instructions::BR
- Inherits:
-
Instruction
- Object
- Instruction
- AArch64::Instructions::BR
- Defined in:
- lib/aarch64/instructions/br.rb
Overview
BR – A64 Branch to Register BR <Xn>
Instance Method Summary collapse
- #encode(_) ⇒ Object
-
#initialize(rn) ⇒ BR
constructor
A new instance of BR.
Constructor Details
#initialize(rn) ⇒ BR
Returns a new instance of BR.
7 8 9 |
# File 'lib/aarch64/instructions/br.rb', line 7 def initialize rn @rn = check_mask(rn, 0x1f) end |
Instance Method Details
#encode(_) ⇒ Object
11 12 13 |
# File 'lib/aarch64/instructions/br.rb', line 11 def encode _ BR(@rn) end |