Class: AArch64::Instructions::AUTIB

Inherits:
Instruction 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(z, rd, rn) ⇒ AUTIB

Returns a new instance of AUTIB.



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

def initialize z, rd, rn
  @z  = check_mask(z, 0x01)
  @rd = check_mask(rd, 0x1f)
  @rn = check_mask(rn, 0x1f)
end

Instance Method Details

#encode(_) ⇒ Object



17
18
19
# File 'lib/aarch64/instructions/autib.rb', line 17

def encode _
  AUTIB(@z, @rn, @rd)
end