Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Interrupts & Ports - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

        Load or execute (INT 21h, 4Bh - EXEC)

        Entry:
          AH = 4Bh
          AL = subfunction
                  0 = Load and execute program
                  1 = Load (Internal) but do not execute
                      Process ID set to new program's PSP; get with
                      function 62h
                  3 = Load overlay; do not create PSP
          DS:DX = filename
          ES:BX = parameter block
                     AL    Type
                     ----------------------------------------
                      0    Word      Segment of new environment (0=current)
                           DWord     Pointer to command line
                           DWord     Pointer to FCB 1
                           DWord     Pointer to FCB 2
                      1    Word      Segment of new environment (0=current)
                           DWord     Pointer to command line
                           DWord     Pointer to FCB 1
                           DWord     Pointer to FCB 2
                           DWord     Will hold SS:SP on return
                           DWord     Will hold entry point (CS:IP) on return
                      3    Word      Segment load address
                           Word      Segment relocation factor
        Return: CF = 1 if error
                        AX = Error Code

See Also: INT 2Eh EXE Error codes

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