Class: AArch64::Instructions::AUTIB
- Inherits:
-
Object
- Object
- AArch64::Instructions::AUTIB
- 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
- #encode ⇒ Object
-
#initialize(d, n) ⇒ AUTIB
constructor
A new instance of AUTIB.
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
#encode ⇒ Object
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 |