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 5.0 Ref. - <b>function 4b03h load overlay</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Function 4B03h          Load Overlay

    Loads a program as an overlay. DOS loads the overlay into memory
    already allocated by the program.

        Entry   AX    = 4B03h
                DS:DX = Pointer to ASCIIZ program name
                ES:BX = Pointer to a LoadOverlay structure

        Return  Expect all registers to be changed, except CS:IP
                AX = Error code, if CF is set
                     | 01h Invalid function number
                     | 02h File not found
                     | 03h Path not found
                     | 04h No handle available
                     | 05h Access denied
                     | 08h Insufficient memory
                     | 0Ah Invalid environment

    ------------------------------------------------------------------

    Before function 4B03h is invoked, DS:DX must point to a zero-
    terminated string that specifies the program to load. The program
    name must be a valid DOS filename. ES:BX must point to a LoadOverlay
    structure.

See Also: 4b00h 4b01h LoadOverlay

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