Class: AArch64::Instructions::PACIA2

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

Overview

PACIA, PACIA1716, PACIASP, PACIAZ, PACIZA – A64 Pointer Authentication Code for Instruction address, using key A PACIA1716 PACIASP PACIAZ

Instance Method Summary collapse

Constructor Details

#initialize(crm, op2) ⇒ PACIA2

Returns a new instance of PACIA2.



9
10
11
12
# File 'lib/aarch64/instructions/pacia2.rb', line 9

def initialize crm, op2
  @crm = check_mask(crm, 0x0f)
  @op2 = check_mask(op2, 0x07)
end

Instance Method Details

#encode(_) ⇒ Object



14
15
16
# File 'lib/aarch64/instructions/pacia2.rb', line 14

def encode _
  PACIA2(@crm, @op2)
end