Class: AArch64::Instructions::PACDA

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

Overview

PACDA, PACDZA – A64 Pointer Authentication Code for Data address, using key A PACDA <Xd>, <Xn|SP> PACDZA <Xd>

Instance Method Summary collapse

Constructor Details

#initialize(rd, rn, z) ⇒ PACDA

Returns a new instance of PACDA.



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

def initialize rd, rn, z
  @rd = rd
  @rn = rn
  @z  = z
end

Instance Method Details

#encodeObject



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

def encode
  PACDA(@z, @rn.to_i, @rd.to_i)
end