Class: AArch64::Instructions::AUTIA

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

Overview

AUTIA, AUTIA1716, AUTIASP, AUTIAZ, AUTIZA – A64 Authenticate Instruction address, using key A AUTIA <Xd>, <Xn|SP> AUTIZA <Xd> AUTIA1716 AUTIASP AUTIAZ

Instance Method Summary collapse

Constructor Details

#initialize(d, n) ⇒ AUTIA

Returns a new instance of AUTIA.



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

def initialize d, n
  @d = d
  @n = n
end

Instance Method Details

#encodeObject



16
17
18
19
20
21
22
# File 'lib/aarch64/instructions/autia.rb', line 16

def encode
  if @n.integer?
    AUTIA(1, @n.to_i, @d.to_i)
  else
    AUTIA(0, @n.to_i, @d.to_i)
  end
end