Previous: 7.2.17. Function 0202 - Get Processor Exception Handler Vector To the Table of Contents Next: 7.2.19. Function 0204 - Get Protected Mode Interrupt Vector
7.2.17. Function 0202 - Get Processor Exception Handler Vector Table of Contents 7.2.19. Function 0204 - Get Protected Mode Interrupt Vector

- 7.2.18. -
Table of Contents
7. PMODE/W MSDOS Extender
7.2. PMODE/W Supported DPMI INT 31h functions
7.2.18. Function 0203 - Set Processor Exception Handler Vector


7.2.18. Function 0203 - Set Processor Exception Handler Vector


PMODE/W API

This function Sets the address of a handler for a CPU exception or fault, allowing a protected mode application to intercept processor exceptions.
In:
   AX     = 0203h
   BL     = exception number (00h-1fh)
   CX:EDX = selector:offset of exception handler
Out:
   if successful:
     carry flag clear
   if failed:
     carry flag set
Notes:
PMODE/W handles exceptions under clean/XMS/VCPI environments. Under a DPMI environment, exception handling is provided by the DPMI host.

PMODE/W only traps exceptions 0 through 14. The default behavior is to terminate execution and do a debug dump. PMODE/W will terminate on exceptions 0, 1, 2, 3, 4, 5, and 7, instead of passing them down to the real mode handlers as DPMI specifications state.

If you wish to hook one of the low 8 interrupts, you must hook it as an exception. It will not be called if you hook it with function 0205h.


Previous: 7.2.17. Function 0202 - Get Processor Exception Handler Vector To the Table of Contents Next: 7.2.19. Function 0204 - Get Protected Mode Interrupt Vector
7.2.17. Function 0202 - Get Processor Exception Handler Vector Table of Contents 7.2.19. Function 0204 - Get Protected Mode Interrupt Vector

- 7.2.18. -