Class: AArch64::Instructions::BRA

Inherits:
Object
  • Object
show all
Defined in:
lib/aarch64/instructions/bra.rb

Overview

BRAA, BRAAZ, BRAB, BRABZ – A64 Branch to Register, with pointer authentication BRAAZ <Xn> BRAA <Xn>, <Xm|SP> BRABZ <Xn> BRAB <Xn>, <Xm|SP>

Instance Method Summary collapse

Constructor Details

#initialize(rn, rm, z, m) ⇒ BRA

Returns a new instance of BRA.



10
11
12
13
14
15
# File 'lib/aarch64/instructions/bra.rb', line 10

def initialize rn, rm, z, m
  @rn = rn
  @rm = rm
  @z  = z
  @m  = m
end

Instance Method Details

#encodeObject



17
18
19
# File 'lib/aarch64/instructions/bra.rb', line 17

def encode
  BRA(@z, @m, @rn.to_i, @rm.to_i)
end