Class: AArch64::Instructions::PACIA

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

Overview

PACIA, PACIA1716, PACIASP, PACIAZ, PACIZA – A64 Pointer Authentication Code for Instruction address, using key A PACIA <Xd>, <Xn|SP> PACIZA <Xd> PACIA1716 PACIASP PACIAZ

Instance Method Summary collapse

Constructor Details

#initialize(rd, rn, z) ⇒ PACIA

Returns a new instance of PACIA.



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

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

Instance Method Details

#encode(_) ⇒ Object



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

def encode _
  PACIA(@z, @rn, @rd)
end