Class: AArch64::Instructions::AUTIA
- Inherits:
-
Object
- Object
- AArch64::Instructions::AUTIA
- Defined in:
- lib/aarch64/instructions/autia.rb
Overview
AUTIA, AUTIA1716, AUTIASP, AUTIAZ, AUTIZA – A64 Authenticate Instruction address, using key A AUTIA <Xd>, <Xn|SP> AUTIZA <Xd> AUTIA1716 AUTIASP AUTIAZ
Instance Method Summary collapse
- #encode ⇒ Object
-
#initialize(d, n) ⇒ AUTIA
constructor
A new instance of AUTIA.
Constructor Details
#initialize(d, n) ⇒ AUTIA
Returns a new instance of AUTIA.
11 12 13 14 |
# File 'lib/aarch64/instructions/autia.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/autia.rb', line 16 def encode if @n.integer? AUTIA(1, @n.to_i, @d.to_i) else AUTIA(0, @n.to_i, @d.to_i) end end |