Virtual Devices (3.1) (vdag31qh.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
VPICD_Convert_Int_To_IRQ
                                                     Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
include vpicd.inc
 
mov     eax, VecNum                 ; interrupt vector number
VxDcall VPICD_Convert_Int_To_IRQ
 
jc      not_mapped                  ; carry set if vector not mapped to IRQ
 
mov     [IRQNum], eax               ; IRQ number
 
The VPICD_Convert_Int_To_IRQ service returns the IRQ number (if any)
corresponding to the specified interrupt vector number.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
VecNum     Specifies an interrupt vector number.
 
Return Value
 
The carry flag is clear and the EAX register contains the IRQ number if the
interrupt vector number is mapped to an IRQ. Otherwise, the carry flag is
set.
 
Comments
 
Since virtual machines can map IRQ numbers of the virtual PIC to any
interrupt vector numbers, virtual devices should always explicitly check
which interrupt vector is mapped to a particular IRQ.
 
Uses
 
EAX, Flags
 
See Also
 
VPICD_Convert_Handle_To_IRQ, VPICD_Convert_IRQ_To_Int