Int 2Fh                 Multiplex Interrupt                          Overview

Multiplex Interrupt (Interrupt 2Fh) is a common entry point for
terminate-and-stay-resident programs (TSRs) that provide services
to other programs. Programs use this interrupt to request services
from and to check the status of such DOS commands as PRINT,
ASSIGN, and APPEND.

A program requests service by placing a specified function number
in the AX register and issuing interrupt 2Fh. Some functions may
require additional values in registers before issuing the
interrupt.

──────────────────────────────────────────────────────────────────

The DOS multiplex functions are available only if the corresponding
DOS command or program has been loaded. If the command or program
is not loaded, DOS carries out a default action, such as setting
the carry flag and setting the AX register to 01h (Invalid
Function).

Programs that install their own Interrupt 2Fh handler must create
a chain of handlers, that is, save the original address from the
Interrupt 2Fh vector-table entry and call the address as part of
their processing. Note that Int 2Fh function numbers 0000h through
0BFFFh are reserved for system programs and commands. Other
programs can use function numbers 0C000h through 0FFFFh.