A.4 Simulate Real-Mode Interrupt

See Section 17.3.2 for more details about why this functionality is required.

A.4.1 DPMI_Int

Usage

DPMI_Int

Purpose

Simulate a real-mode interrupt with the ability to set ALL registers, including segments, without causing a General Protection Fault. Essentially just a wrapper around DPMI function 0300h.

Inputs

DPMI_Regs filled with real-mode interrupt register inputs.

BX = interrupt number to simulate.

Outputs

DPMI_Regs filled with real-mode interrupt register outputs.

CF=1, AX=error code (see DPMI function 0300h for a list) if an error occurred, otherwise CF=0.

Notes

Clobbers CX, DX.

Important: Doesn't use C calling convention.