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