Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Ralf Brown's Interrupt List (Part 1,2) - int 31 - dpmi 0.9 api - protected mode - get raw mode switch addresses http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
INT 31 - DPMI 0.9 API - protected mode - GET RAW MODE SWITCH ADDRESSES
        AX = 0306h
Return: CF set on error
        CF clear if successful
            BX:CX -> procedure to switch from real to protected mode
            SI:DI / SI:EDI -> procedure to switch from protected to real mode
Notes:  16-bit programs should jump to SI:DI, 32-bit programs should use SI:EDI
        the caller must save and restore the state of the task with AX=0305h
SeeAlso: AX=0305h

Values to JUMP at mode-switch procedures with:
        AX = new DS
        CX = new ES
        DX = new SS
        BX / EBX = new SP / ESP
        SI = new CS
        DI / EDI = new IP / EIP
Note:   BP/EBP is preserved across the call, but AX/EAX, BX/EBX, CX/ECX,
          DX/EDX, SI/ESI, and DI/EDI will be undefined

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson