Class: AArch64::Instructions::AUTDB

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

Overview

AUTDB, AUTDZB – A64 Authenticate Data address, using key B AUTDB <Xd>, <Xn|SP> AUTDZB <Xd>

Instance Method Summary collapse

Constructor Details

#initialize(d, n) ⇒ AUTDB

Returns a new instance of AUTDB.



8
9
10
11
# File 'lib/aarch64/instructions/autdb.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/autdb.rb', line 13

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