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>int 20h terminate program <u>superseded</b></u> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Int 20h                 Terminate Program                          Superseded

    Terminates the current program and returns control to its parent
    program.

        Note    Int 20h has been superseded. Programs should use
                End Program (Int 21h, function 4ch).

        Entry   CS = Segment of PSP

        Return  This interrupt does not return

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

    This interrupt is intended to be used by .COM programs. When a
    program issues Int 20h, the CS register must contain the segment
    address of the program segment prefix (PSP).

    Int 20h carries out the following actions:

    - Flushes the file buffers and closes files, unlocking any regions
      locked by the program.
    - Restores interrupt 22h, 23h, and 24h vectors from the addresses
      saved in the PSP.
    - Frees any memory owned by the terminating program.
    - Transfers control to the address specified by offset 0Ah
      (termination address) in the PSP.

See Also: 4Ch

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