Class: AArch64::Instructions::AUTIB

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

Overview

AUTIB, AUTIB1716, AUTIBSP, AUTIBZ, AUTIZB – A64 Authenticate Instruction address, using key B AUTIB <Xd>, <Xn|SP> AUTIZB <Xd> AUTIB1716 AUTIBSP AUTIBZ

Instance Method Summary collapse

Constructor Details

#initialize(d, n) ⇒ AUTIB



11
12
13
14
# File 'lib/aarch64/instructions/autib.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/autib.rb', line 16

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