Class: AArch64::Instructions::XPAC

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

Overview

XPACD, XPACI, XPACLRI – A64 Strip Pointer Authentication Code XPACD <Xd> XPACI <Xd> XPACLRI

Instance Method Summary collapse

Constructor Details

#initialize(rd, d) ⇒ XPAC

Returns a new instance of XPAC.



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

def initialize rd, d
  @rd = rd
  @d  = d
end

Instance Method Details

#encodeObject



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

def encode
  XPAC(@d, @rd.to_i)
end