Assembly Language Help (alang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Interrupt 22h
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Interrupt:   22h
 
  Title:       Terminate Handler Address
 
  See also:    Program Segment Prefix Chart
 
  Description:
 
     The machine interrupt vector for Int 22h (memory locations
     0000:0088h through 0000:008Bh) contains the address of the routine
     that receives control when the currently executing program
     terminates via Int 20h, Int 27h, or Int 21h Functions 00h, 31h, or
     4Ch. The address in this vector is also copied into offsets 0Ah
     through 0Dh of the program segment prefix (PSP) when a program is
     loaded but before it begins executing, and is restored from the
     PSP (in case it was modified by the application) as part of
     MS-DOS's termination handling.
 
     This interrupt should never be issued directly.
                                    -♦-