Class: AArch64::Instructions::BLRA

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

Overview

BLRAA, BLRAAZ, BLRAB, BLRABZ – A64 Branch with Link to Register, with pointer authentication BLRAAZ <Xn> BLRAA <Xn>, <Xm|SP> BLRABZ <Xn> BLRAB <Xn>, <Xm|SP>

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of BLRA.



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

def initialize rn, rm, z, m
  @rn = check_mask(rn, 0x1f)
  @rm = check_mask(rm, 0x1f)
  @z  = check_mask(z, 0x01)
  @m  = check_mask(m, 0x01)
end

Instance Method Details

#encode(_) ⇒ Object



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

def encode _
  BLRA(@z, @m, @rn, @rm)
end