int 20h ;Terminate Program
Terminate Program (Interrupt 20h) terminates the current program and returns control to its parent program.
This interrupt has been superseded. Programs should use the Interrupt 21h function End Program (Function 4Ch).
This function has no parameters.
This interrupt does not return.
This interrupt is intended to be used by .COM programs. When a program issues the interrupt, the CS register must contain the segment address of the program segment prefix (PSP).
This interrupt carries out the following actions:
Flushes the file buffers and closes files, unlocking any regions locked by the program.
Restores Termination Address (Interrupt 22h) from offset 0Ah in the PSP (pspTerminateVector field).
Restores the CTRL+C Handler (Interrupt 23h) from offset 0Eh in the PSP (pspControlCVector field).
Restores the Critical-Error Handler (Interrupt 24h) from offset 12h in the PSP (pspCritErrorVector field).
Frees any memory owned by the terminating program.
After completing these actions, this interrupt transfers control to the address specified by offset 0Ah in the PSP.
Interrupt 21h Function 00h Terminate Program
Interrupt 21h Function 4Ch End Program
Interrupt 22h Termination Address
Interrupt 23h CTRL+C Handler
Interrupt 24h Critical-Error Handler