Class: AArch64::Instructions::AUTDA

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

Overview

AUTDA, AUTDZA – A64 Authenticate Data address, using key A AUTDA <Xd>, <Xn|SP> AUTDZA <Xd>

Instance Method Summary collapse

Constructor Details

#initialize(d, n) ⇒ AUTDA

Returns a new instance of AUTDA.



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

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

Instance Method Details

#encodeObject



13
14
15
16
17
18
19
# File 'lib/aarch64/instructions/autda.rb', line 13

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