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