Class: AArch64::Instructions::HLT
- Inherits:
-
Instruction
- Object
- Instruction
- AArch64::Instructions::HLT
- Defined in:
- lib/aarch64/instructions/hlt.rb
Overview
HLT – A64 Halt instruction HLT #<imm>
Instance Method Summary collapse
- #encode(_) ⇒ Object
-
#initialize(imm) ⇒ HLT
constructor
A new instance of HLT.
Constructor Details
#initialize(imm) ⇒ HLT
Returns a new instance of HLT.
7 8 9 |
# File 'lib/aarch64/instructions/hlt.rb', line 7 def initialize imm @imm = check_mask(imm, 0xffff) end |
Instance Method Details
#encode(_) ⇒ Object
11 12 13 |
# File 'lib/aarch64/instructions/hlt.rb', line 11 def encode _ HLT(@imm) end |