Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- TASM 2.x / MASM 6.x Assembly Language - <b>int 20h (32) terminate program</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
INT 20h (32)             Terminate Program

    Terminates program execution.

       On entry:      CS         Segment address of PSP

       Returns:       Nothing

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

    This function, equivalent in effect to Interrupt 21h, Function 00h,
    terminates the execution of a program and returns control to DOS,
    which restores the terminate, Ctrl-Break, and critical-error exit
    addresses from the PSP. CS must contain the segment address of the
    PSP, and all files written to by the program must be closed before
    Interrupt 20h is called.

       Notes:         It is best to use INT 21h Function 4Ch to exit from
                      '.exe' programs since Function 4Ch doesn't require
                      that CS point to the PSP.

See Also: 00h 4Ch

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