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