Class: AArch64::Instructions::BR

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

Overview

BR – A64 Branch to Register BR <Xn>

Instance Method Summary collapse

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