Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Dos Protected Mode Interface - <b>error handling</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
        ERROR HANDLING

            Most Int  31h calls  can fail.   The  DPMI 0.9 specification
            does not  specify error return codes for most calls.  When a
            call fails  it will  set the  carry flag and return with the
            value in AX unmodified unless otherwise specified.  However,
            future DPMI  implementations will  return error codes in the
            AX register.   All  specific error  codes will have the high
            bit (bit  15) set.  If a function returns with carry set and
            the high  bit of AX clear, it should be treated as a general
            failure.   Specific error  codes will allow programs running
            under  future   DPMI  implementations  to  take  appropriate
            corrective action in some cases.

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