Class: AArch64::Instructions::XPAC

Inherits:
Instruction 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 = check_mask(rd, 0x1f)
  @d  = check_mask(d, 0x01)
end

Instance Method Details

#encode(_) ⇒ Object



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

def encode _
  XPAC(@d, @rd)
end