include vmm.inc mov eax, Interrupt ; number of interrupt to check VMMcall Get_PM_Int_Vector mov [Segment], cx ; segment selector for interrupt routine mov [Offset], edx ; offset to interrupt routine |
The Get_PM_Int_Vector service returns the address of the interrupt routine for the specified protected-mode interrupt in the current virtual machine.
Interrupt
Specifies the number of the interrupt to check.
The CX register contains the segment selector of the interrupt routine, and the EDX register contains the offset of the interrupt routine. If the code segment is a 16-bit segment, the high word of the EDX register is zero.
The zero flag is set if the interrupt address points to the default interrupt handler; the flag is clear if a virtual device has hooked the interrupt.
The system maintains a protected-mode interrupt vector table for each virtual machine. By default, each table entry points to a protected-mode breakpoint procedure that reflects the interrupt to V86 mode.
ECX, EDX, Flags