Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Programmers Reference 0.02b - <b>int 27h (39) terminate and stay resident</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
INT 27h (39)             Terminate and Stay Resident

    Terminates a program and leaves a specified portion installed in
    memory.

       On entry:      CS         Segment of PSP
                      DX         Address at which next program may be loaded
                                 (i.e., highest address to stay resident + 1)

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

       Note:          Interrupt 27h is the original (i.e. DOS 1.x) method
                      of creating a TSR program. Unlike its DOS 2.0-and-
                      later counterpart, Interrupt 21h, Function 31h, it
                      does not allow you to pass a return code. And the
                      amount of memory that may kept resident is limited
                      to 64K.

                      Use INT 21h function 31h to keep EXE programs
                      resident in memory.

                      Files are not closed by Interrupt 27h.

See Also: 31h 00h INT 20h 4Ch

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