home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / CLIPPER / MISC / DOSREF18.ZIP / CHAPTER.005 < prev    next >
Encoding:
Text File  |  1990-11-07  |  83.1 KB  |  1,857 lines

  1.  
  2.    **  Programmer's  Technical  Reference  for  MSDOS  and  the  IBM  PC **
  3.                         ┌─────────────────────────────┐
  4.                         │ Shareware Version, 10/26/90 │
  5.                         │  Please Register Your Copy  │
  6.                         └─────────────────────────────┘
  7.                     Copyright (c) 1987, 1990 Dave Williams
  8.                           USA copyright TXG 392-616
  9.                      ISBN 1-878830-02-3 (disk-based text)
  10.  
  11.  
  12.                             C H A P T E R   F I V E
  13.  
  14.                           Interrupts 22h Through 86h
  15.  
  16. note: the registered version of this chapter is more than twice this size.
  17.  
  18.  
  19. Interrupt 22h   Terminate Address
  20. (0:0088h)
  21.  This interrupt transfers control to the far (dword) address at this interrupt
  22. location when an application program terminates. The default address for this
  23. interrupt is 0:0088h through 0:008Bh. This address is copied into the program's
  24. Program Segment Prefix at bytes 0Ah through 0Dh at the time the segment is
  25. created and is restored from the PSP when the program terminates. The calling 
  26. program is normally COMMAND.COM or an application. Do not issue this interrupt
  27. directly, as the EXEC function call does this for you. If an application 
  28. spawns a child process, it must set the Terminate Address prior to issuing the 
  29. EXEC function call, otherwise when the second program terminated it would 
  30. return to the calling program's Terminate Address rather than its own. This 
  31. address may be set with int 21, function 25h.
  32.  
  33.  
  34. Interrupt 23h   Ctrl-Break Exit Address
  35. (0:008Ch)
  36.  If the user enters a Ctrl-Break during STDIN, STDOUT, STDPRN, or STDAUX, int
  37. 23h is executed. If BREAK is on, int 23h is checked on MOST function calls 
  38. (notably 06h). If the user written Ctrl-Break routine saves all registers, it 
  39. may end with a return-from-interrupt instruction (IRET) to continue program 
  40. execution. If the user-written interrupt program returns with a long return, the
  41. carry flag is used to determine whether the program will be aborted. If the 
  42. carry flag is set, the program is aborted, otherwise execution continues (as 
  43. with a return by IRET). If the user-written Ctrl-Break interrupt uses function 
  44. calls 09h or 0Ah, (Display String or Buffered Keyboard Input) then a three-byte
  45. string of 03h-0Dh-0Ah (ETX/CR/LF) is sent to STDOUT. If execution is continued
  46. with an IRET, I/O continues from the start of the line. When the interrupt
  47. occurs, all registers are set to the value they had when the original function
  48. call to DOS was made. There are no restrictions on what the Ctrl-Break handler 
  49. is allowed to do, including DOS function calls, as long as the registers are
  50. unchanged if an IRET is used. If the program creates a new segment and loads a
  51. second program which itself changes the Ctrl-Break address, the termination of
  52. the second program and return to the first causes the Ctrl-Break address to
  53. be restored from the PSP to the value it had before execution of the second
  54. program.
  55.  
  56.  
  57. Interrupt 24h   Critical Error Handler 
  58. (0:0090h)
  59.  
  60.  When a critical error occurs within DOS, control is transferred to an error 
  61. handler with an int 24h. This may be the standard DOS error handler (ABORT, 
  62. RETRY, IGNORE) or a user-written routine.
  63.  On entry to the error handler, AH will have its bit 7=0 (high order bit) 
  64. if the error was a disk error (probably the most common error), bit 7=1 if
  65. not.
  66.  BP:SI contains the address of a Device Header Control Block from which 
  67. additional information can be retrieved (see below).
  68.  The register is set up for a retry operation and an error code is in the 
  69. lower half of the DI register with the upper half undefined. These are the 
  70. error codes:
  71.  
  72.  The user stack is in effect and contains the following from top to bottom:
  73.  
  74.         IP      DOS registers from issuing int 24h
  75.         CS      int 24h
  76.         flags
  77.         AX      user registers at time of signal
  78.         BX      int 21h request
  79.         CX
  80.         DX
  81.         SI
  82.         DI
  83.         BP
  84.         DS
  85.         ES
  86.         IP      from original int 21h
  87.         CS
  88.         flags
  89.  
  90.  To reroute the critical error handler to a user-writen critical error handler,
  91. the following should be done:
  92.  
  93. Before an int 24h occurs:
  94. 1) The user application initialization code should save the int 24h vector and 
  95.    replace the vector with one pointing to the user error routine.
  96.  
  97. When the int 24h occurs:
  98. 2) When the user error routine received control it should push the flag 
  99.    registers onto the stack and execute a far call to the original int 24h
  100.    vector saved in step 1.
  101. 3) DOS gives the appropriate prompt, and waits for user input (Abort, Retry,
  102.    Ignore, Fail). After the user input, DOS returns control to the user error 
  103.    routine instruction following the far call.
  104. 4) The user error routine can now do any tasks nescessary. To return to the 
  105.    original application at the point the error occurred, the error routine needs
  106.    to execute an IRET instruction. Otherwise, the user error routine should 
  107.    remove the IP, CS, and flag registers from the stack. Control can then be 
  108.    passed to the desired point.
  109.                             
  110.  Int 24h provides the following values in registers on entry to the interrupt 
  111. handler:
  112.  
  113. entry   AH      status byte (bits)
  114.                 7       0       disk I/O hard error
  115.                         1       other error - if block device, bad FAT
  116.                                 - if char device, code in DI
  117.                 6       unused
  118.                 5       0       if IGNORE is not allowed
  119.                         1       if IGNORE is allowed
  120.                 4       0       if RETRY  is not allowed
  121.                         1       if RETRY  is allowed
  122.                 3       0       if FAIL   is not allowed
  123.                         1       if FAIL   is allowed
  124.                 2 \     disk area of error  00 = DOS area  01 = FAT
  125.                 1 /                         10 = root dir  11 = data area
  126.                 0       0       if read operation
  127.                         1       if write operation
  128.         AL      drive number if AH bit 7 = 1, otherwise undefined
  129.                 If it is as hard error on disk (AH bit 7=0), register AL 
  130.                 contains the failing drive number (0=A:, 1=B:, etc.).
  131.         BP:SI   address of a Device Header Control Block for which error
  132.                 occurred block device if high bit of BP:SI+4 = 1
  133.  low byte of DI: error code (note: high byte is undefined)
  134.                error code      description
  135.                 00h             attempt to write on write-protected diskette
  136.                 01h             unknown unit
  137.                 02h             drive not ready
  138.                 03h             unknown command
  139.                 04h             data error (bad CRC)
  140.                 05h             bad request structure length
  141.                 06h             seek error
  142.                 07h             unknown media type
  143.                 08h             sector not found
  144.                 09h             printer out of paper
  145.                 0Ah             write fault
  146.                 0Bh             read fault
  147.                 0Ch             general failure
  148.                 0Fh             invalid disk change (DOS 3.x+)
  149.                 10h     (DOS 3.x) FCB unavailable
  150.                 11h     (DOS 3.x) sharing buffer overflow
  151.  
  152. The handler must return this information:
  153.  
  154.  The registers are set such that if an IRET is executed, DOS responds according
  155. to (AL) as follows:
  156.  AL     00h  ignore the error
  157.         01h  retry the operation
  158.         02h  terminate via int 22h
  159.         03h  fail the system call that is in progress (DOS 3.x+)
  160. note 1) Be careful when choosing to ignore a response because this causes DOS to
  161.         beleive that an operation has completed successfully when it may not 
  162.         have.
  163.      2) If the error was a character device, the contents of AL are invalid.
  164.  
  165.  
  166.  
  167. OTHER ERRORS
  168.  
  169.  If AH bit 7=1, the error occurred on a character device, or was the result of 
  170. a bad memory image of the FAT. The device header passed in BP:SI can be examined
  171. to determine which case exists. If the attribute byte high-order bit indicates
  172. a block device, then the error was a bad FAT. Otherwise, the error is on a 
  173. character device.
  174.  If a character device is involved, the contents of AL are unpredictable, the
  175. error code is in DI as above.
  176.  
  177. Notes:
  178. 1.  Before giving this routine control for disk errors, DOS performs several
  179.     retries. The number of retries varies according to the DOS version.
  180. 2.  For disk errors, this exit is taken only for errors occurring during an 
  181.     int 21h function call. It is not used for errors during an int 25h or 26h.
  182. 3.  This routine is entered in a disabled state.
  183. 4.  All registers must be preserved.
  184. 5.  This interrupt handler should refrain from using DOS function calls. If
  185.     necessary, it may use calls 01h through 12h. Use of any other call destroys 
  186.     the DOS stack and leaves DOS in an unpredictable state.
  187. 6.  The interrupt handler must not change the contents of the device header.
  188. 7.  If the interrupt handler handles errors itself rather than returning to DOS,
  189.     it should restore the application program's registers from the stack, 
  190.     remove all but the last three words on the stack, then issue an IRET. This 
  191.     will return to the program immediately after the int 21h that experienced 
  192.     the error. Note that if this is done DOS will be in an unstable state until
  193.     a function call higher than 12h is issued, therefore not recommended.
  194. 8.  For DOS 3.x, IGNORE requests (AL=0) are converted to FAIL for critical 
  195.     errors that occur on FAT or DIR sectors.
  196. 9.  For DOS 3.10 up, IGNORE requests (AL=0) are converted to FAIL requests
  197.     for network critical errors (50-79).
  198.  
  199. The device header pointed to by BP:SI is as follows:
  200.  
  201. DWORD Pointer to next device (0FFFFh if last device)
  202.  
  203. WORD Attributes:
  204.  
  205. Bit     15      1       if character device.
  206.                         If bit 15 is 1:
  207.                         Bit 0 = 1 if current standard input
  208.                         Bit 1 = 1 if current standard output
  209.                         Bit 2 = 1 if current NULL device
  210.                         Bit 3 = 1 if current CLOCK device
  211.                 0       if block device
  212. Bit 14 is the IOCTL bit
  213. WORD pointer to device driver strategy entry point
  214. WORD pointer to device driver interrupt entry point
  215. 8-BYTE character device named field for block devices. The first byte is the
  216. number of units.
  217.  To tell if the error occurred on a block or character device, look at bit 15
  218. in the attribute field (WORD at BP:SI+4).
  219.  If the name of the character device is desired, look at the eight bytes 
  220. starting at BP:SI+10.
  221.  
  222.  
  223. HANDLING OF INVALID RESPONSES (DOS 3.x)
  224.  
  225.         A) If IGNORE (AL=0) is specified by the user and IGNORE is not allowed
  226.            (bit 5=0), make the response FAIL (AL=3).
  227.         B) If RETRY (AL=1) is specified by the user and RETRY is not allowed
  228.            (bit 4=0), make the response FAIL (AL=3).
  229.         C) If FAIL (AL=3) is specified by the user and FAIL is not allowed (bit
  230.            3=0), make the response ABORT. (AL=2)
  231.  
  232.  
  233.  
  234.  
  235.  
  236. Interrupt 25h   Absolute Disk Read
  237. Interrupt 26h   Absolute Disk Write
  238. (0:0094h, 0:0098h)
  239.   These transfer control directly to the device driver. On return, the original
  240. flags are still on the stack (put there by the INT instruction). This is 
  241. necessary because return information is passed back in the current flags.
  242.   The number of sectors specified is transferred between the given drive and the
  243. transfer address. Logical sector numbers are obtained by numbering each sector
  244. sequentially starting from track 0, head 0, sector 1 (logical sector 0) and 
  245. continuing along the same head, then to the next head until the last sector on 
  246. the last head of the track is counted.  Thus, logical sector 1 is track 0, head
  247. 0, sector 2; logical sector 2 is track 0, head 0, sector 3; and so on. Numbering
  248. then continues wih sector 1 on head 0 of the next track. Note that although the 
  249. sectors are sequentially numbered (for example, sectors 2 and 3 on track 0 in 
  250. the example above), they may not be physically adjacent on disk, due to 
  251. interleaving. Note that the mapping is different from that used by DOS 1.10 for
  252. dual-sided diskettes.
  253.  
  254. The request is as follows:
  255.  
  256. int 25 for Absolute Disk Read,
  257. int 26 for Absolute Disk Write
  258. entry   AL      drive number (0=A:, 1=B:, etc)
  259.         CX      number of sectors to read
  260.         DS:BX   disk transfer address (buffer)
  261.         DX      first relative sector to read - beginning logical sector number
  262. return  CF      set if error
  263.         AL      error code issued to int 24h in low half of DI
  264.         AH      01h     bad command
  265.                 02h     bad address mark
  266.                 03h     write-protected disk
  267.                 04h     requested sector not found
  268.                 08h     DMA failure
  269.                 10h     data error (bad CRC)
  270.                 20h     controller failed
  271.                 40h     seek operation failed
  272.                 80h     attachment failed to respond
  273. note 1) Original flags on stack! Be sure to pop the stack to prevent 
  274.         uncontrolled growth
  275.      2) Ints 25 and 26 will try rereading a disk if they get an error the first
  276.         time.
  277.      3) All registers except the segment registers are destroyed by these calls
  278.  
  279.  
  280. Interrupt 25h   ABSOLUTE DISK READ
  281.                 (except DOS 4.0/Compaq DOS 3.31 >32M partition)
  282. entry   AL      drive number (0=A, 1=B, etc)
  283.         DS:BX   pointer to Disk Transfer Address (buffer)
  284.         CX      number of sectors to read
  285.         DX      first relative sector to read
  286. return  CF      1 if error
  287.                 AL      error code issued to int 24h in low half of DI
  288.                 AH      80h     attachment failed to respond
  289.                         40h     seek operation failed
  290.                         20h     controller failed
  291.                         10h     data error (bad CRC)
  292.                         08h     DMA failure
  293.                         04h     requested sector not found
  294.                         03h     write-protected disk
  295.                         02h     bad address mark
  296.                         01h     bad command
  297. note    Original flags on stack!
  298.  
  299. Interrupt 25h   DOS 4.0/Compaq DOS 3.31 - ABSOLUTE DISK READ
  300.                 (>32M hard-disk partition)
  301. entry   AL      drive number (0=A, 1=B, etc)
  302.         CX      0FFFFh
  303.         DS:BX   Packet address
  304.                 DWORD  sector number
  305.                 WORD   number of sectors to read
  306.                 DWORD  transfer address
  307. return  same as above?
  308. note    Partition is potentially >32Mb (and requires this form of the call) if
  309.         bit 1 of device attribute word in device driver is set
  310.  
  311. Interrupt 26h   ABSOLUTE DISK WRITE
  312.                 (except DOS 4.0/Compaq DOS 3.31 >32M partition)
  313. entry   AL      drive number (0=A, 1=B, etc)
  314.         DS:BX   pointer to Disk Transfer Address (buffer)
  315.         CX      number of sectors to write
  316.         DX      first relative sector to write
  317. return  CF      1 if error
  318.                 AL      error code issued to int 24h in low half of DI
  319.                 AH      same error codes as for int 25h
  320. note    Original flags on stack!
  321.  
  322. Interrupt 26h   DOS 4.0/Compaq DOS 3.31 - ABSOLUTE DISK WRITE
  323.                 (>32M hard disk partitions)
  324. entry   AL      drive number (0=A, 1=B, etc)
  325.         CX      0FFFFh
  326.         DS:BX   Packet address
  327.                 DWORD  sector number
  328.                 WORD   number of sectors to write
  329.                 DWORD  transfer address
  330. return  same as above?
  331. note    Partition is potentially >32M (and requires this form of the call) if
  332.         bit 1 of device attribute word in device driver is set
  333.  
  334.  
  335.  
  336.  
  337. Interrupt 27h   Terminate And Stay Resident
  338. (0:009Ch)       (obsolete)
  339.  This vector is used by programs that are to remain resident when COMMAND.COM
  340. regains control.
  341.  After initializing itself, the program must set DX to its last address plus
  342. one relative to the program's initial DS or ES value (the offset at which other
  343. programs can be loaded), then execute interrupt 27h. DOS then considers the
  344. program as an extension of itself, so the program is not overlaid when other
  345. programs are executed. This is useful for loading programs such as utilities
  346. and interrupt handlers that must remain resident.
  347.  
  348. entry   CS      current program segment
  349.         DX      last program byte + 1
  350. return  none
  351. note 1) This interrupt must not be used by .EXE programs that are loaded into
  352.         the high end of memory.
  353.      2) This interrupt restores the interrupt 22h, 23h, and 24h vectors in the
  354.         same manner as interrupt 20h.  Therefore, it cannot be used to install
  355.         permanently resident Ctrl-Break or critical error handler routines.
  356.      3) The maximum size of memory that can be made resident by this method is 
  357.         64K.
  358.      4) Memory can be more efficiently used if the block containing a copy of 
  359.         the environment is deallocated before terminating. This can be done by 
  360.         loading ES with the segment contained in 2Ch of the PSP, and issuing 
  361.         function call 49h (Free Allocated Memory).
  362.      5) DOS function call 4Ch allows a program to pass a completion code to DOS,
  363.         which can be interpreted with processing (see function call 31h).
  364.      6) Terminate and stay resident programs do not close files.
  365.      7) Int 21, function 31h is the preferred method to cause a program to
  366.         remain resident because this allows return information to be passed and
  367.         allows a program larger than 64K to remain resident.
  368.  
  369.  
  370.  
  371.  
  372. Interrupt 28h   (not documented by Microsoft)
  373.            *    DOS Idle Interrupt
  374. Int 28h has been provided by DOS since release 2.0. The int 28h process is
  375. similar to the "Timer Tick" process provided by BIOS via int 1Ch in that it is
  376. an "outbound" (from DOS) call which an application can "hook onto" to get
  377. service at a particular entry point. DOS normally only issues int 28h when it
  378. recieves a function call (int 21h) from a foreground application with an
  379. argument in the range of 0 thru 12 (0Ch) in the AH register, or when it is
  380. idling waiting for keyboard input. In effect, when DOS issues int 28h, it is
  381. saying to the background task "I'm not doing anything hot right now, if you can
  382. use the time, go ahead." This means that a foreground application which doesn't
  383. do many low-number DOS functions can preempt CPU time easily.
  384.  
  385.  It is possible, if you are careful, to enhance the background priority by
  386. providing more int 28h calls than DOS normally would issue.
  387.  
  388.  When int 28h is being issued it is usually safe to do DOS calls. You won't get
  389. int 28hs if a program is running that doesn't do its keyboard input through
  390. DOS. You should rely on the timer interrupt for these.
  391.  
  392.  It is used primarily by the PRINT.COM routines, but any number of other 
  393. routines can be chained to it by saving the original vector and calling it with
  394. a FAR call (or just JMPing to it) at the end of the new routine.
  395.  
  396.  Int 28h is not called at all when any non-trivial foreground task is running. 
  397. As soon as a foreground program has a file open, int 28h no longer gets called.
  398. Could make a good driver for for a background program that works as long as
  399. there is nothing else going on in the machine.
  400.  
  401.  DOS uses 3 separate internal stacks: one for calls 01h through 0Ch; another
  402. for calls 0Dh and above; and a third for calls 01h through 0Ch when a Critical
  403. Error is in progress. When int 28h is called, any calls above 0Ch can be
  404. executed without destroying the internal stack used by DOS at the time. 
  405.  
  406.  The byte which is pushed on the stack before an int 28h just indicates which
  407. stack area is being used by the current int 21h call. In DOS 3.1, the code
  408. sequence that calls int 28h looks like this:
  409.  
  410.         PUSH    SS:[0304]
  411.         INT     28
  412.         POP     SS:[0304]
  413.  
  414.  The low-order byte of the word pushed contains 1 if the int 21h call currently
  415. in progress is for services 1 through 0Ch, and 0 for service 0 and for 0Dh and
  416. up. Assuming that the last DOS call was not a reentrant one, this tells you
  417. which set of DOS services should be safe to call. 
  418.  
  419.  If the InDOS flag is zero on int 28h, then it was called by someone other than
  420. DOS, and the word on the stack should NOT be examined. 
  421.  
  422.  
  423. entry   no parameters availible
  424. return  none
  425. note 1) The int 28h handler may invoke any int 21h function except functions
  426.         00h through 0Ch (and 50h/51h under DOS 2.x unless DOS CritErr flag is 
  427.         set).
  428.      2) Apparently int 28h is also called during screen writes
  429.      3) Until some program installs its own routine, this interrupt vector
  430.         simply points to an IRET opcode.
  431.      4) Supported in OS/2 1.0's DOS Compatibility Box
  432.  
  433.  
  434.  
  435.  
  436. Interrupt 29h   (not documented by Microsoft)
  437.            *    Internal - Quick Screen Output
  438.  
  439.  This method is extremely fast (much faster than DOS 21h subfunctions 2 and 9, 
  440. for example), and it is portable, even to "non-compatible" MS-DOS computers.
  441.  
  442. entry   AL      character to output to screen
  443. return  unknown
  444. note 1) Documented by Digital Research's DOS Reference as provided with the
  445.         DEC Rainbow
  446.      2) If ANSI.SYS is installed, character output is filtered through it.
  447.      3) Works on the IBM PC and compatibles, Wang PC, HP-150 and Vectra, DEC 
  448.         Rainbow, NEC APC, Texas Instruments PC and others
  449.      4) This interrupt is called from the DOS's output routines if output is 
  450.         going to a device rather than a file, and the device driver's attribute
  451.         word has bit 3 (04h) set to "1".
  452.      5) This call has been tested with MSDOS 2.11, PCDOS 2.1, PCDOS 3.1, PCDOS
  453.         3.2, and PCDOS 3.3.
  454.      6) Used in IBMBIO.COM as a vector to int 10, function 0Eh (write TTY)
  455.         followed by an IRET.
  456.  
  457.  
  458.  
  459.  
  460. Interrupt 2Ah   Microsoft Networks - Session Layer Interrupt
  461.            *    (not documented by Microsoft)
  462.  
  463. entry   AH      00h     check to see if network BIOS installed
  464.                         return  AH      <> 0 if installed
  465.                 01h     execute NETBIOS request
  466.                 02h     set net printer mode
  467.                 03h     get shared-device status (check direct I/O)
  468.                         AL      00h
  469.                         DS:SI   pointer to ASCIIZ disk device name
  470.                         return  CF      0 if allowed
  471.                 04h     execute NETBIOS 
  472.                         AL      0 for error retry
  473.                                 1 for no retry
  474.                         ES:BX   pointer to network control block
  475.                         return  AX      0 for no error
  476.                                 AH      1 if error
  477.                                 AL      error code
  478.                 05h     get network resource information
  479.                         AL      00h
  480.                         return  AX      reserved
  481.                                 BX      number of network names
  482.                                 CX      number of commands
  483.                                 DX      number of sessions
  484.                 06h     Network Print-stream Control
  485.                         note    NETBIOS 1.10
  486.                 20h     unknown
  487.                         note    AL=01h intercepted by DESQview 2.0
  488.                 80h     Begin DOS Critical Section
  489.                         AL      1 to 6
  490.                 81h     End DOS Critical Section
  491.                         AL      1 to 6
  492.                 82h     Server Hook
  493.                         return  unknown
  494.                         note    called by the int 21h function dispatcher
  495.                                 in DOS 3.10+ for function 0 and functions
  496.                                 greater than 0Ch except 59h
  497.                 84h     keyboard busy loop
  498.                         note    similar to DOS's int 28h
  499.  
  500.  
  501. Interrupt 2Bh   (not documented by Microsoft)
  502.            *    Unknown - Internal Routine for DOS (IRET)
  503.               
  504.  
  505. Interrupt 2Ch   (not documented by Microsoft)
  506.            *    Unknown - Internal Routine for DOS (IRET)
  507.               
  508.  
  509. Interrupt 2Dh   (not documented by Microsoft)
  510.            *    Unknown - Internal Routine for DOS (IRET)
  511.               
  512.  
  513. Interrupt 2Eh   (undocumented by Microsoft)  (DOS 2.0+)
  514.            *    Internal Routine for DOS  (Alternate EXEC)
  515.  
  516.   This interrupt passes a command line addressed by DS:SI to COMMAND.COM. The 
  517. command line must be formatted just like the unformatted parameter area of a 
  518. Program Segment Prefix. That is, the first byte must be a count of characters, 
  519. and the second and subsequent bytes must be a command line with parameters, 
  520. terminated by a carriage return character. 
  521.   When executed, int 2Eh will reload the transient part of the command 
  522. interpreter if it is not currently in memory. If called from a program that 
  523. was called from a batch file, it will abort the batch file. If executed from a 
  524. program which has been spawned by the EXEC function, it will abort the whole 
  525. chain and probably lock up the computer. Int 2Eh also destroys all registers 
  526. including the stack pointer.
  527.   Int 2Eh is called from the transient portion of the program to reset the DOS
  528. PSP pointers using the above Functions #81 & #80, and then reenters the 
  529. resident program. 
  530.   When called with a valid command line, the command will be carried out by 
  531. COMMAND.COM just as though you had typed it in at the DOS prompt. Note that the
  532. count does not include the carriage return. This is an elegant way to perform a
  533. SET from an application program against the master environment block for 
  534. example.
  535.  
  536. entry   DS:SI   pointer to an ASCIIZ command line in the form:
  537.                         count byte
  538.                         ASCII string
  539.                         carriage return
  540.                         null byte
  541. note 1) Destroys all registers including stack pointer
  542.      2) Seems to work OK in both DOS 2.x and 3.x
  543.      3) It is reportedly not used by DOS.
  544.      4) As far as known, int 2Eh is not used by DOS 3.1, although it was called
  545.         by COMMAND.COM of PCDOS 3.0, so it appears to be in 3.1 only for the 
  546.         sake of compatibility.
  547.  
  548. Interrupt 2Fh   Multiplex Interrupt
  549.  
  550.  Interrupt 2Fh is the multiplex interrupt. A general interface is defined 
  551. between two processes. It is up to the specific application using interrupt 
  552. 2Fh to define specific functions and parameters.
  553.  This interrupt is becoming more commonly used as the availible interrupt 21 
  554. functions are getting to be in short supply.  Int 2Fh doesn't require any
  555. support from DOS itself for it to be used in application programs. It's not
  556. handled by DOS, but by the programs themselves.
  557.  Every multiplex interrupt handler is assigned a specific multiplex number. 
  558. The multiplex number is specified in the AH register; the AH value tells which
  559. program your request is directed toward. The specific function that the handler
  560. is to perform is placed in the AL register. Other parameters are places in the 
  561. other registers as needed. The handlers are chained into the 2Fh interrupt 
  562. vector and the multiplex number is checked to see if any other application is 
  563. using the same multiplex number. There is no predefined method for assigning a 
  564. multiplex number to a handler. You must just pick one. To avoid a conflict if 
  565. two applications choose the same multiplex number, the multiplex numbers used by
  566. an application should be patchable. In order to check for a previous 
  567. installation of the current application, you can search memory for a unique 
  568. string included in your program. If the value you wanted in AH is taken but 
  569. you don't find the string, then another application has grabbed that location.
  570.  Int 2Fh was not documented under DOS 2.x. There is no reason not to use int 2Fh
  571. as the multiplex interrupt in DOS 2.x. The only problem is that DOS 2.x does not
  572. initialize the int 2Fh vector, so when you try to chain to it like you are 
  573. supposed to, it will crash. If your program checks the vector for being zero
  574. and initializes it itself or doesn't chain in that case, it will work for you 
  575. n 2.x just the same as 3.x. 
  576.  
  577. Function   01h  PRINT.COM
  578.            Register AH identifies which program is to handle the interrupt.
  579.            Values 00h-7Fh are reserved for DOS, not that anyone cares much.
  580.            Values 0C0h-0FFh are reserved for applications.
  581.            Register AL contains the function code if used
  582. entry   AH      01h
  583.                 AL      00h     PRINT  Get Installed State
  584.                         This call must be defined by all int 2Fh handlers. It 
  585.                         is used by the caller of the handler to determine if 
  586.                         the handler is present. On entry, AL=0. On return, AL 
  587.                         contains the installed state as follows:
  588.                 return  AL      0FFh    installed
  589.                                 01h     not installed, not OK to install
  590.                                 00h     not installed, OK to install
  591.  
  592.                         01h     PRINT  Submit File
  593.                         DS:DX   pointer to submit packet 
  594.                                 format  byte    level
  595.                                         dword   pointer to ASCIIZ filename
  596.                 return  CF      set if error
  597.                                 AX      error code
  598.                 note 1) A submit packet contains the level (BYTE) and a pointer
  599.                         to the ASCIIZ string (DWORD in offset:segment form).
  600.                         The ASCIIZ string must contain the drive, path, and
  601.                         filename of the file you want to print. The filename
  602.                         cannot contain global filename characters.
  603.                 return  CF      set if error
  604.                                 AX      error code
  605.  
  606.                         02h     PRINT Cancel File
  607.                         On entry, AL=2 and DS:DX points to the ASCIIZ string for
  608.                         the print file you want to cancel. Global filename 
  609.                         characters are allowed in the filename.
  610.                 DS:DX   pointer to ASCIIZ file name to cancel (wildcards OK)
  611.                 return  CF      set if error
  612.                                 AX      error code
  613.  
  614.                         03h     PRINT remove all files
  615.                 return  CF      set if error
  616.                                 AX      error code
  617.  
  618.                         04h     PRINT hold queue/get status
  619.                         This call holds the jobs in the print queue so that you
  620.                         can scan the queue. Issuing any other code releases the
  621.                         jobs. On entry, AL=4. On return, DX contains the error
  622.                         count. DS:SI points to the print queue. The print queue 
  623.                         consists of a series of filename entries. Each entry is
  624.                         64 bytes long. The first entry in the queue is the file
  625.                         currently being printed. The end of the queue is marked
  626.                         by the entry having a null as the first character.
  627.                return   DX      error count
  628.                         DS:SI   pointer to print queue (null-string terminated
  629.                                 list of 64-byte ASCIIZ filenames)
  630.                         CF      set if error
  631.                                AX       error code
  632.                                         01h     function invalid
  633.                                         02h     file not found
  634.                                         03h     path not found
  635.                                         04h     too many open files
  636.                                         05h     access denied
  637.                                         08h     queue full
  638.                                         09h     spooler busy
  639.                                         0Ch     name too long
  640.                                         0Fh     drive invalid
  641.  
  642.                         05h     PRINT restart queue
  643.                 return  CF      set if error
  644.                                 AX      error code
  645.  
  646.  
  647. Function   05h  DOS 3.x critical error handler
  648. entry   AH      05h
  649.                 AL      00h     installation check
  650.                         return  AL      00h not installed, OK to install
  651.                                         01h not installed, can't install
  652.                                         0FFh installed
  653.                         note    This set of functions allows a user program to
  654.                                 partially or completely override the default
  655.                                 critical error handler in COMMAND.COM
  656.                 AL      01h     handle error - nonzero error code in AL
  657.                         return  CF      clear
  658.                                         ES:DI   pointer to ASCIIZ error message
  659.                                 CF      set     use default error handler
  660.                                 AL      (?)
  661.  
  662.  
  663. Function   06h  ASSIGN 
  664. entry   AH      06h
  665.                         00h     installation check
  666.                         return  AH <> 0 if installed
  667.  
  668.                         01h     get memory segment
  669.                         return  ES      segment of ASSIGN work area
  670.  
  671.  
  672. Function   10h  SHARE
  673. entry   AH      10h
  674.         AL      00h     installation check
  675. return  AL      00h     not installed, OK to install
  676.                 01h     not installed, not OK to install
  677.                 0FFh    installed
  678.  
  679.  
  680. Function   11h  Multiplex - network redirection
  681. entry   AH      11h
  682.         AL      00h     installation check
  683.                         return  AL      00h    not installed, OK to install
  684.                                         01h    not installed, not OK to install
  685.                                         0FFh   installed
  686.                 01h-05h unknown
  687.                 06h     close remote file
  688.                 07h-09h unknown
  689.                 0Ah     unknown
  690.                         stack   word    (?)
  691.                         return  CF      set on error
  692.                 0Bh     unknown
  693.                         stack   word    (?)
  694.                         return  CF      set on error(?)
  695.                 0Ch     unknown
  696.                 0Dh     unknown
  697.                 0Eh     unknown
  698.                         stack   word    (?)
  699.                         return  (?)
  700.                 0Fh-16h unknown
  701.                 17h     unknown
  702.                         stack   word    (?)
  703.                         return  (?)
  704.                 18h     unknown
  705.                         stack   word    (?)
  706.                         return  (?)
  707.                 19h-1Dh unknown
  708.                 1Eh     do redirection
  709.                         stack   word    function to execute
  710.                         return  CF      set on error
  711.                 1Fh     printer setup
  712.                         stack   word    function(?)
  713.                         return  CF      set on error(?)
  714.                 20h-25h unknown
  715.                         stack   word    (?)
  716.                 26h     unknown
  717.  
  718. Function   12h  multiplex, DOS 3.x internal services
  719. entry   AH      12h
  720.         AL      00h     installation check
  721.                         return  AL      0FFh    for compatibility with other
  722.                                                 int 2Fh functions
  723.                 01h     close file (?)
  724.                         stack   word value - unknown
  725.                         return  BX      unknown
  726.                                 CX      unknown
  727.                                 ES:DI   pointer to unknown value
  728.                         note    Can be called only from within DOS
  729.                 02h     get interrupt address
  730.                         stack   word    vector number
  731.                         return  ES:BX pointer to interrupt vector
  732.                                 stack   unchanged
  733.                 03h     get DOS data segment
  734.                         return  DS      segment of IBMDOS.COM file
  735.                 04h     normalize path separator
  736.                         stack   word    character to normalize
  737.                         return  AL      normalized character (forward slash
  738.                                         turned to backslash)
  739.                                 stack   unchanged
  740.                 05h     output character
  741.                         stack   word    character to output
  742.                         return  stack   unchanged
  743.                         note    Can be called only from within DOS
  744.                 06h     invoke critical error
  745.                         return  AL      0-3 for Abort, Retry, Ignore, Fail
  746.                         note    Can be called only from within DOS
  747.                 07h     move disk buffer (?)
  748.                         DS:DI   pointer to disk buffer
  749.                         return  buffer moved to end of buffer list
  750.                         note    Can be called only from within DOS
  751.                 08h     decrement word
  752.                         ES:DI   pointer to word to decrement
  753.                         return  AX      new value of word
  754.                         note    Word pointed to by ES:DI decremented,
  755.                                 skipping zero
  756.                 09h     unknown
  757.                         DS:DI   pointer to disk buffer(?)
  758.                         return  (?)
  759.                         note    Can be called only from within DOS
  760.                 0Ah     unknown
  761.                         note    Can be called only from within DOS
  762.                 0Bh     unknown
  763.                         ES:DI   pointer to system file table entry(?)
  764.                         return  AX      (?)
  765.                         note    Can be called only from within DOS
  766.                 0Ch     unknown
  767.                         note    Can be called only from within DOS
  768.                 0Dh     get date and time
  769.                         return  AX      current date in packed format
  770.                                 DX      current time in packed format
  771.                         note    Can be called only from within DOS
  772.                 0Eh     do something to all disk buffers (?)
  773.                         return  DS:DI   pointer to first disk buffer
  774.                         note    can be called only from within DOS
  775.                 0Fh     unknown
  776.                         DS:DI   pointer to (?)
  777.                         return  DS:DI pointer to (?)
  778.                         note 1) Can be called only from within DOS
  779.                              2) Calls on function 1207h
  780.                 10h     find dirty/clean(?) buffer
  781.                         DS:DI   pointer to first disk buffer
  782.                         return  DS:DI   pointer to first disk buffer which has
  783.                                         (?) flag clear
  784.                                 ZF      clear   if found
  785.                                         set     if not found
  786.                 11h     normalize ASCIIZ filename
  787.                         DS:SI   pointer to ASCIIZ filename to normalize
  788.                         ES:DI   pointer to buffer for normalized filename
  789.                         return  destination buffer filled with uppercase
  790.                                 filename, with slashes turned to backslashes
  791.                 12h     get length of ASCIIZ string
  792.                         ES:DI   pointer to ASCIIZ string
  793.                         return  CX      length of string
  794.                 13h     uppercase character
  795.                         stack   word    character to convert to uppercase
  796.                         return  AL      uppercase character
  797.                                 stack   unchanged
  798.                 14h     compare far pointers
  799.                         DS:SI   first pointer
  800.                         ES:DI   second pointer
  801.                         return  ZF      set if pointers are equal
  802.                                 ZF      clear if not equal
  803.                 15h     unknown
  804.                         DS:DI   pointer to disk buffer
  805.                         stack   word    (?)
  806.                         return  stack unchanged
  807.                         note    Can be called only from within DOS
  808.                 16h     get address of system FCB
  809.                         BX      system file table entry number
  810.                         return  ES:DI pointer to system file table entry
  811.                 17h     set default drive (?)
  812.                         stack   word    drive (0=A:, 1=B:, etc)
  813.                         return  DS:SI   pointer to drive data block for
  814.                                         specified drive
  815.                                 stack   unchanged
  816.                         note    Can be called only from within DOS
  817.                 18h     get something (?)
  818.                         return  DS:SI pointer to (?)
  819.                 19h     unknown
  820.                         stack   word    drive (0=default, 1=A:, etc)
  821.                         return  (?)
  822.                                 stack unchanged
  823.                         note 1) Can be called only from within DOS
  824.                              2) Calls function 1217h
  825.                 1Ah     get file's drive
  826.                         DS:SI   pointer to filename
  827.                         return  AL      drive
  828.                                         (0=default, 1=A:, etc, 0FFh=invalid)
  829.                 1Bh     set something (?)
  830.                         CL      unknown
  831.                         return  AL      (?)
  832.                         note    Can be called only from within DOS
  833.                 1Ch     checksum memory
  834.                         DS:SI   pointer to start of memory to checksum
  835.                         CX      number of bytes
  836.                         DX      initial checksum
  837.                         return  DX      checksum
  838.                         note    Can be called only from within DOS
  839.                 1Dh     unknown
  840.                         DS:SI   pointer to (?)
  841.                         CX      (?)
  842.                         DX      (?)
  843.                         return  AX      (?)
  844.                                 CX      (?)
  845.                                 DX      (?)
  846.  
  847.                 1Eh     compare filenames
  848.                         DS:SI   pointer to first ASCIIZ filename
  849.                         ES:DI   pointer to second ASCIIZ filename
  850.                         return  ZF      set     if filenames equivalent
  851.                                         clear   if not
  852.                 1Fh     build drive info block
  853.                         stack   word    drive letter
  854.                         return  ES:DI pointer to drive info block
  855.                                       (will be overwritten by next call)
  856.                                 stack unchanged
  857.                         note    Can be called only from within DOS
  858.                 20h     get system file table number
  859.                         BX      file handle
  860.                         return  CF      set on error, error code in AL
  861.                                         AL      06h (invalid file handle)
  862.                                 CF      clear if successful
  863.                                         byte ES:[DI] = system file table entry 
  864.                                             number for file handle
  865.                 21h     unknown
  866.                         DS:SI   pointer to (?)
  867.                         return  (?)
  868.                         note    Can be called only from within DOS
  869.                 22h     unknown
  870.                         SS:SI   pointer to (?)
  871.                         return  nothing(?)
  872.                         note    Can be called only from within DOS
  873.                 23h     check if character device (?)
  874.                         return  DS:SI   pointer to device driver with
  875.                                         same name as (?)
  876.                         note    Can be called only from within DOS
  877.                 24h     delay
  878.                         return  after delay of (?) ms
  879.                         note    Can be called only from within DOS
  880.                 25h     get length of ASCIIZ string
  881.                         DS:SI   pointer to ASCIIZ string
  882.                         return  CX      length of string
  883.  
  884.  
  885. Function   43h  Microsoft Extended Memory Specification (XMS)
  886.  
  887.  
  888. Function 5453h TesSeRact Standard for Ram-Resident Program Communication
  889.  
  890.  
  891. Function   64h  SCRNSAV2.COM
  892. entry   AH      64h
  893.         AL      00h     installation check
  894. return  AL      00h     not installed
  895.                 0FFh    installed
  896. note    SCRNSAV2.COM is a screen saver for PS/2's with VGA by Alan Ballard
  897.  
  898.  
  899. Function  7Ah   Novell NetWare
  900. entry   AH      7Ah
  901.         AL      00h     installation check
  902. note 1) Returns address of entry point for IPX and SPX
  903.      2) Parameters are listed under int 21
  904.  
  905.  
  906. Function  087h  APPEND
  907. entry   AH      087h
  908.         AL      00h     APPEND installation check
  909.                 return  AH <> 0 if installed
  910.                 01h     APPEND - unknown
  911.                 02h     APPEND - version check
  912.  
  913. Function  088h  Microsoft Networks
  914. entry   AH      088h 
  915.         AL      00h     network program installation check
  916.                 return  AH <> 0 if installed
  917.                         BX      installed component flags (test in this order!)
  918.                                 bit 6   server
  919.                                 bit 2   messenger
  920.                                 bit 7   receiver
  921.                                 bit 3   redirector
  922.                 01h     unknown
  923.                 02h     unknown
  924.                 03h     get current POST address
  925.                         return  ES:BX   POST address
  926.                 04h     set new POST address
  927.                         ES:BX   new POST address
  928.                 09h     network version check
  929.  
  930.  
  931. Function  0AAh  VIDCLOCK.COM
  932. entry   AH      0AAh
  933.         AL      00h     installation check
  934. return  AL      00h     not installed
  935.                 0FFh    installed
  936. note    VIDCLOCK.COM is a memory-resident clock by Thomas G. Hanlin III
  937.  
  938.  
  939. Function  0BBh  Network Functions
  940. entry   AH      0BBh
  941.         AL      00h     net command installation check
  942.                 01h, 02h unknown
  943.                 03h     get server POST address
  944.                 04h     get server POST address
  945.  
  946.  
  947. Function  0F7h  AUTOPARK.COM  (PD TSR hard disk parking utility)
  948. entry   AH      0F7h
  949.         AL      00h     installation check
  950.                 return  AL      00h     not installed
  951.                                 0FFh    installed
  952.                 note    AUTOPARK is a TSR HD parker by Alan D. Jones
  953.         01h     set parking delay
  954.                 BX:CX   32 bit count of 55ms timer ticks
  955.  
  956.  
  957.  
  958. MSDOS 2Fh functions 01h (PRINT), 02h (ASSIGN), 10h (SHARE):
  959. return  AX      Error
  960.                 Codes       Description
  961.                 01h     invalid function number
  962.                 02h     file not found
  963.                 03h     path not found
  964.                 04h     too many open files
  965.                 05h     access denied
  966.                 06h     invalid handle
  967.                 08h     queue full
  968.                 09h     busy
  969.                 0Ch     name too long
  970.                 0Fh     invalid drive was specified
  971.         CF      clear (0) if OK
  972.                 set (1) if error - error returned in AX
  973. note 1) The multiplex numbers AH=0h through AH=7Fh are reserved for DOS. 
  974.         Applications should use multiplex numbers 80h through 0FFh.
  975.      2) When in the chain for int 2Fh, if your code calls DOS or if you execute
  976.         with interrupts enabled, your code must be reentrant/recursive.
  977.      3) Important! In versions of DOS prior to 3.0, the int 2Fh vector was
  978.         initialized to zero rather than being pointed into the DOS service area.
  979.         You must initialize this vector manually under DOS 2.x.
  980.  
  981.  
  982.  
  983. ┌─────────────────────────────────────────────────────────────────────────────┐
  984. │ Miscellaneous Interrupts - in numerical order                               │
  985. └─────────────────────────────────────────────────────────────────────────────┘
  986.  
  987. Interrupt 30h   (not a vector!) far jump instruction for CP/M-style calls
  988.  
  989.  
  990. Interrupt 31h   Unknown
  991. note    The CALL 5 entry point does a FAR jump to here
  992.  
  993.  
  994. Interrupt 32h   Unknown
  995.  
  996.  
  997. Interrupt 33h   Used by Microsoft Mouse Driver
  998.                 Function Calls
  999.  
  1000. Function Requests
  1001.  
  1002.         00h     Reset Driver and Read Status
  1003.         entry   AH      00h
  1004.         return  AH      status
  1005.                         0  hardware/driver not installed
  1006.                        -1  hardware/driver installed
  1007.                 BX      number of buttons
  1008.                        -1       two buttons
  1009.                         0       other than two
  1010.                         3       Mouse Systems mouse
  1011.  
  1012.         01h     Show Mouse Cursor
  1013.         entry   AH      01h
  1014.         return  unknown
  1015.  
  1016.         02h     Hide Mouse Cursor
  1017.         entry   AH      02h
  1018.         return  unknown
  1019.         note    multiple calls to hide the cursor will require multiple calls
  1020.                 to function 01h to unhide it.
  1021.  
  1022.         03h     Return Position and Button Status
  1023.         entry   AH      03h
  1024.         return  BX      button status
  1025.                         bit 0   left button pressed if 1
  1026.                         bit 1   right button pressed if 1
  1027.                         bit 2   middle button pressed if 1 (Mouse Systems mouse)
  1028.                 CX      column
  1029.                 DX      row
  1030.  
  1031.         04h     Position Mouse Cursor
  1032.         entry   AH      04h
  1033.                 CX      column
  1034.                 DX      row
  1035.                 return  unknown
  1036.  
  1037.         05h     Return Button Press Data
  1038.         entry   AH      05h
  1039.                 BX      button
  1040.                         0 left
  1041.                         1 right
  1042.                         2 middle (Mouse Systems mouse)
  1043.         return  AH      button states
  1044.                         bit 0   left button pressed if 1
  1045.                         bit 1   right button pressed if 1
  1046.                         bit 2   middle button pressed if 1 (Mouse Systems mouse)
  1047.                 BX      no. of times specified button pressed since last call
  1048.                 CX      column at time specified button was last pressed
  1049.                 DX      row at time specified button was last pressed
  1050.  
  1051.         06h     Return Button Release Data
  1052.         entry   AH      06h
  1053.                 BX      button
  1054.                         0       left
  1055.                         1       right
  1056.                         2       middle (Mouse Systems mouse)
  1057.         return  AH      button states
  1058.                         bit 0   left button pressed if 1
  1059.                         bit 1   right button pressed if 1
  1060.                         bit 2   middle button pressed if 1 (Mouse Systems mouse)
  1061.                 BX      no. of times specified button released since last call
  1062.                 CX      column at time specified button was last released
  1063.                 DX      row at time specified button was last released
  1064.  
  1065.         07h     Define Horizontal Cursor Range
  1066.         entry   AH      0007h
  1067.                 CX      minimum column
  1068.                 DX      maximum column
  1069.         return  unknown
  1070.  
  1071.         08h     Define Vertical Cursor Range
  1072.         entry   AH      08h
  1073.                 CX      minimum row
  1074.                 DX      maximum row
  1075.                 return  unknown
  1076.  
  1077.         09h     Define Graphics Cursor
  1078.         entry   AH      09h
  1079.                 BX      column of cursor hot spot in bitmap (-16 to 16)
  1080.                 CX      row of cursor hot spot  (-16 to 16)
  1081.                 ES:DX   pointer to bitmap
  1082.                         16 words screen mask
  1083.                         16 words cursor mask
  1084.                 return  unknown
  1085.                 note    Each word defines the sixteen pixels of a row, low bit
  1086.                         rightmost
  1087.  
  1088.         0Ah     Define Text Cursor
  1089.         entry   AH      0Ah
  1090.                 BX      hardware/software text cursor
  1091.                         00h     software
  1092.                                 CX      screen mask
  1093.                                 DX      cursor mask
  1094.                         01h     hardware
  1095.                                 CX      start scan line
  1096.                                 DX      end scan line
  1097.         return  unknown
  1098.         note    When the software cursor is selected, the char/attribute data
  1099.                 at the current screen position is ANDed with the screen mask
  1100.                 and the with the cursor mask
  1101.  
  1102.         0Bh     Read Motion Counters
  1103.         entry   AH      0Bh
  1104.         return  CX      number of mickeys mouse moved horiz. since last call
  1105.                 DX      number of mickeys mouse moved vertically
  1106.         note 1) A mickey is the smallest increment the mouse can sense.
  1107.                 Positive values indicate up/right
  1108.  
  1109.         0Ch     Define Interrupt Subroutine Parameters
  1110.         entry   AH      0Ch
  1111.                 CX      call mask bit
  1112.                         bit 0   call if mouse moves
  1113.                         bit 1   call if left button pressed
  1114.                         bit 2   call if left button released
  1115.                         bit 3   call if right button pressed
  1116.                         bit 4   call if right button released
  1117.                         bit 5   call if middle button pressed (Mouse Systems)
  1118.                         bit 6   call if middle button released (Mouse Systems)
  1119.                 ES:DX  address of FAR routine
  1120.         return  unknown
  1121.         note    when the subroutine is called, it is passed these values:
  1122.                 AH      condition mask (same bit assignments as call mask)
  1123.                 BX      button state
  1124.                 CX      cursor column
  1125.                 DX      cursor row
  1126.                 DI      horizontal mickey count
  1127.                 SI      vertical mickey count
  1128.  
  1129.         0Dh     Light Pen Emulation On
  1130.         entry   AH      0Dh
  1131.         return  unknown
  1132.  
  1133.         0Eh     Light Pen Emulation Off
  1134.         entry   AH      0Eh
  1135.         return  unknown
  1136.  
  1137.         0Fh     Define Mickey/Pixel Ratio
  1138.         entry   AH      0Fh
  1139.                 CX      number of mickeys per 8 pixels horizontally
  1140.                 DX      number of mickeys per 8 pixels vertically
  1141.         return  unknown
  1142.  
  1143.         10h     Define Screen Region for Updating
  1144.         entry   AH      10h
  1145.                 CX,DX   X,Y coordinates of upper left corner
  1146.                 SI,DI   X,Y coordinates of lower right corner
  1147.         return  unknown
  1148.         note    Mouse cursor is hidden during updating, and needs to be
  1149.                 explicitly turned on again
  1150.  
  1151.         11h     not documented by Microsoft
  1152.  
  1153.         12h     Set Large Graphics Cursor Block
  1154.                 AH      12h
  1155.                 BH      cursor width in words
  1156.                 CH      rows in cursor
  1157.                 BL      horizontal hot spot (-16 to 16)
  1158.                 CL      vertical hot spot (-16 to 16)
  1159.                 ES:DX   pointer to bit map of screen and cursor maps
  1160.         return  AH     -1 if successful
  1161.         note    PC Mouse. Not documented by Microsoft
  1162.  
  1163.         13h     Define Double-Speed Threshold
  1164.         entry   AH      13h
  1165.                 DX      threshold speed in mickeys/second,
  1166.                         0 = default of 64/second
  1167.         return  unknown
  1168.         note    If speed exceeds threshold, the cursor's on-screen motion
  1169.                 is doubled
  1170.  
  1171.         14h     Exchange Interrupt Subroutines
  1172.         entry   AH      14h
  1173.         return  unknown
  1174.  
  1175.         15h     Return Drive Storage Requirements
  1176.         entry   AH      15h
  1177.         return  BX      size of buffer needed to store driver state
  1178.  
  1179.         16h     Save Driver State
  1180.         entry   AH      16h
  1181.                 ES:DX   pointer to buffer
  1182.         return  unknown
  1183.  
  1184.         17h     Restore Driver State
  1185.         entry   AH      17h
  1186.                 ES:DX   pointer to buffer containing saved state
  1187.         return  unknown
  1188.  
  1189.         18h-1Ch not documented by Microsoft; unknown
  1190.  
  1191.         1Dh     Define Display Page Number
  1192.         entry   AH      1Dh
  1193.  
  1194.         1Eh     Return Display Page Number
  1195.         entry   AH      1Eh
  1196.         return  unknown
  1197.  
  1198.         42h     PCMouse - Get MSmouse Storage Requirements
  1199.                 AH      42h
  1200.                 return  AX      0FFFFh successful
  1201.                 BX      buffer size in bytes for functions 50h and 52h
  1202.                         00h     MSmouse not installed
  1203.                         42h     functions 42h, 50h, and 52h not supported
  1204.  
  1205.         52h     PCMouse - Save MSmouse State
  1206.         entry   AH      50h
  1207.                 BX      buffer size
  1208.                 ES:DX   pointer to buffer
  1209.                 return  AX      0FFFFh if successful
  1210.  
  1211.         52h     PCMouse - restore MSmouse state
  1212.         entry   AH      52h
  1213.                 BX      buffer size
  1214.                 ES:DX   pointer to buffer
  1215.                 return  AX      0FFFFh if successful
  1216.  
  1217.  
  1218. Int 33: In addition, the following functions are appended to BIOS int 10h and 
  1219.         implemented as the EGA Register Interface Library:
  1220.  
  1221.         0F0h    read one register
  1222.         0F1h    write one register
  1223.         0F2h    read consecutive register range
  1224.         0F3h    write consecutive register range
  1225.         0F4h    read non-consecutive register set
  1226.         0F5h    write non-consecutive register set
  1227.         0F6h    revert to default register values
  1228.         0F7h    define default register values
  1229.         0FAh    get driver status
  1230.  
  1231.  
  1232.  
  1233. Interrupt 34h   Turbo C/Microsoft languages - Floating Point emulation
  1234.                 This interrupt emulates opcode 0D8h
  1235.  
  1236.  
  1237. Interrupt 35h   Turbo C/Microsoft languages - Floating Point emulation
  1238.                 This interrupt emulates opcode 0D9h
  1239.  
  1240.  
  1241. Interrupt 36h   Turbo C/Microsoft languages - Floating Point emulation
  1242.                 This interrupt emulates opcode 0DAh
  1243.  
  1244.  
  1245. Interrupt 37h   Turbo C/Microsoft languages - Floating Point emulation
  1246.                 This interrupt emulates opcode 0DBh
  1247.  
  1248.  
  1249. Interrupt 38h   Turbo C/Microsoft languages - Floating Point emulation
  1250.                 This interrupt emulates opcode 0DCh
  1251.  
  1252.  
  1253. Interrupt 39h   Turbo C/Microsoft languages - Floating Point emulation
  1254.                 This interrupt emulates opcode 0DDh
  1255.  
  1256.  
  1257. Interrupt 3Ah   Turbo C/Microsoft languages - Floating Point emulation
  1258.                 This interrupt emulates opcode 0DEh
  1259.  
  1260.  
  1261. Interrupt 3Bh   Turbo C/Microsoft languages - Floating Point emulation
  1262.                 This interrupt emulates opcode 0DFh
  1263.  
  1264.  
  1265. Interrupt 3Ch   Turbo C/Microsoft languages - Floating Point emulation
  1266.                 This int emulates instructions with an ES segment override
  1267.  
  1268.  
  1269. Interrupt 3Dh   Turbo C/Microsoft languages - Floating Point emulation
  1270.                 This interrupt emulates a standalone FWAIT instruction
  1271.  
  1272.  
  1273. Interrupt 3Eh   Turbo C/Microsoft languages - Floating Point emulation
  1274.  
  1275.  
  1276. Interrupt 3Fh   Overlay manager interrupt (Microsoft LINK.EXE)
  1277.                 Default overlay interrupt; may be changed with LINK switch
  1278.  
  1279.  
  1280. Interrupt 40h   Hard Disk BIOS
  1281.                 Pointer to disk BIOS entry when a hard disk controller is
  1282.                 installed. The BIOS routines use int 30h to revector the
  1283.                 diskette handler (original int 13h) here so int 40 may be used
  1284.                 for hard disk control
  1285.  
  1286.  
  1287. Interrupt 41h   Hard Disk Parameters  (XT,AT,XT2,XT286,PS except ESDI disks)
  1288.                 Pointer to first Hard Disk Parameter Block, normally located 
  1289.                 in the controller card's ROM. This table may be copied to RAM
  1290.                 and changed, and this pointer revectored to the new table.
  1291. note 1) format of parameter table is:
  1292.         dw      cylinders
  1293.         db      heads
  1294.         dw      starting reduced write current cylinder (XT only, 0 for others)
  1295.         db      maximum ECC burst length
  1296.         db      control byte
  1297.                   bits 0-2 drive option (XT only, 0 for others)
  1298.                   bit 3    set if more than 8 heads
  1299.                   bit 4    always 0
  1300.                   bit 5    set if manufacturer's defect map on max cylinder+1
  1301.                   bit 6    disable ECC retries
  1302.                   bit 7    disable access retries
  1303.         db      standard timeout (XT only, 0 for others)
  1304.         db      formatting timeout (XT only, 0 for others)
  1305.         db      timeout for checking drive (XT only, 0 for others)
  1306.         dw      landing zone    (AT, PS/2)
  1307.         db      sectors/track   (AT, PS/2)
  1308.         db      0
  1309.      2) normally vectored to ROM table when system is initialized.
  1310.  
  1311.  
  1312. Interrupt 42h   Pointer to screen BIOS entry  (EGA, VGA, PS/2)
  1313.                 Relocated (by EGA, etc.) video handler (original int 10h).
  1314.                 Revectors int 10 calls to EGA BIOS.
  1315.  
  1316.  
  1317. Interrupt 43h   Pointer to EGA graphics character table. The POST initializes
  1318.                 this vector pointing to the default table located in the EGA
  1319.                 ROM BIOS. (PC-2 and up). Not initialized if EGA not present.
  1320.                 This vector was referred to (mistakenly) as the Video
  1321.                 Parameters table in the original EGA BIOS listings.
  1322.  
  1323.                                    
  1324. Interrupt 44h   Pointer to graphics character table. This table contains the
  1325. (0:0110h)       dot patterns for the first 128 characters in video modes 4,5,
  1326.                 and 6, and all 256 characters in all additional graphics modes.
  1327.                 Not initialized if EGA not present.
  1328.              2) EGA/VGA/CONV/PS - EGA/PCjr fonts, characters 00h to 7Fh
  1329.              3) Novell NetWare - High-Level Language API
  1330.              4) This interrupt is not used by some EGA cards.
  1331.  
  1332.  
  1333. Interrupt 45h   Reserved by IBM  (not initialized)
  1334.  
  1335.  
  1336. Interrupt 46h   Pointer to second hard disk, parameter block (AT, XT/286, PS/2)
  1337.                 (see int 41h) (except ESDI hard disks) (not initialized unless
  1338.                 specific user software calls for it)
  1339.  
  1340.  
  1341. Interrupt 47h   Reserved by IBM  (not initialized)
  1342.  
  1343.  
  1344. Interrupt 48h   Cordless Keyboard Translation (PCjr, XT [never delivered])
  1345. (0:0120h)       This vector points to code to translate the cordless keyboard
  1346.                 scancodes into normal 83-key values. The translated scancodes
  1347.                 are then passed to int 9. (not initialized on PC or AT)
  1348.  
  1349.  
  1350. Interrupt 49h   Non-keyboard Scan Code Translation Table Address (PCjr)
  1351. (0:0124h)       This interrupt is used for operation of non-keyboard devices
  1352.                 on the PCjr, such as the Keystronic Numeric Keypad.
  1353.                 This interrupt has the address of a table used to translate
  1354.                 non-keyboard scancodes (greater than 85 excepting 255). This
  1355.                 interrupt can be revectored by a user application. IBM
  1356.                 recommends that the default table be stored at the beginning
  1357.                 of an application that required revectoring this interrupt, 
  1358.                 and that the default table be restored when the application
  1359.                 terminates. (not initialized on PC or AT)
  1360.  
  1361.                 The PCjr BIOS can interpret scancodes other than those 
  1362.                 generated by the keyboard to allow for expansion. The keyboard
  1363.                 generates scancodes from 01h to 055h, including 0FFh. Any 
  1364.                 scancodes above 55h (56h through 7Eh for make codes and 0D6h
  1365.                 through 0FEh for break codes) are processed in the following
  1366.                 manner:
  1367.                 1) if the incoming make code falls within the range of the
  1368.                    translate table whose address is pointed to by int 49h, it
  1369.                    is translated into the corresponding scancode. Any incoming
  1370.                    break codes above 0D5h are ignored.
  1371.                 2) if the new translated scancode ius less and 56h, it is
  1372.                    processed by the BIOS as a keyboard scancode and the same
  1373.                    data is placed in the BIOS keyboard buffer.
  1374.                 3) if the translated scancode is higher than 55h or the
  1375.                    incoming scancode is outside the range of the translate
  1376.                    table, 40h is added creating a new extended scancode. The
  1377.                    extended scancode is placed in the BIOS keyboard buffer with 
  1378.                    the character code of 00h (NUL). This utilitizes the range
  1379.                    of 96h through 0BEh for scancodes 56h through 7Eh.
  1380.  
  1381.                 The default translate-table maps scancodes 56h through 6Ah to
  1382.                 existing keyboard values. Codes 6Bh theough 0BEh are mapped (by
  1383.                 adding 40h) to extended codes 0ABh through 0FEh since they are
  1384.                 outside the range of the default translate table.
  1385.  
  1386.                 The format of the translate table is:
  1387.                 0       length - the number of nonkeyboard scancodes that are
  1388.                         mapped within the table (from 1 to n)
  1389.                 1 to n  word  high byte 00h (NUL) byte scancode with low order
  1390.                         byte representing the scancode mapped values relative
  1391.                         to their input values within the range of 56h through
  1392.                         7Eh
  1393.  
  1394.                 With this layout, all keyboard scancodes can be intercepted
  1395.                 through int 9h and and nonkeyboard scancodes can be intercepted
  1396.                 through int 48h.
  1397.  
  1398.  
  1399. Interrupt 4Ah   Real-Time Clock Alarm (Convertible, PS/2)
  1400.                 (not initialized on PC or AT)
  1401.                 Invoked by BIOS when real-time clock alarm occurs
  1402.  
  1403.  
  1404. Interrupt 4Bh   Reserved by IBM  (not initialized)
  1405.  
  1406.  
  1407. Interrupt 4Ch   Reserved by IBM  (not initialized)
  1408.  
  1409.  
  1410. Interrupt 4Dh   Reserved by IBM  (not initialized)
  1411.  
  1412.  
  1413. Interrupt 4Eh   Reserved by IBM  (not initialized)
  1414.                 Used instead of int 13h for disk I/O on TI Professional PC
  1415.  
  1416.  
  1417. Interrupt 4Fh   Reserved by IBM  (not initialized)
  1418.  
  1419.  
  1420. Interrupt 50-57 IRQ0-IRQ7 relocated by DesQview
  1421.                 (normally not initialized)
  1422.  
  1423.  
  1424. Interrupt 58h   Reserved by IBM  (not initialized)
  1425.  
  1426.  
  1427. Interrupt 59h   Reserved by IBM  (not initialized)
  1428.                 GSS Computer Graphics Interface (GSS*CGI)
  1429.                 DS:DX   Pointer to block of 5 array pointers
  1430.                 return  CF      0
  1431.                         AX      return code
  1432.                         CF      1
  1433.                         AX      error code
  1434.                 note 1) Int 59 is the means by which GSS*CGI language bindings
  1435.                         communicate with GSS*CGI device drivers and the GSS*CGI
  1436.                         device driver controller.
  1437.                      2) Also used by the IBM Graphic Development Toolkit
  1438.  
  1439.  
  1440. Interrupt 5Ah   Reserved by IBM  (not initialized)
  1441.  
  1442.  
  1443. Interrupt 5Bh   Reserved by IBM  (not initialized)
  1444.  
  1445.  
  1446. Interrupt 5Ah   Cluster Adapter BIOS entry address
  1447.                 (normally not initialized)
  1448.  
  1449.  
  1450. Interrupt 5Bh   Reserved by IBM  (not initialized) (cluster adapter?)
  1451.  
  1452.  
  1453. Interrupt 5Ch   NETBIOS interface entry port
  1454.                 ES:BX   pointer to network control block
  1455. return  AL      error code (0 if none)
  1456. note 1) When the NETBIOS is installed, interrupts 13 and 17 are interrupted by
  1457.         the NETBIOS; interrupt 18 is moved to int 86 and one of int 2 or 3 is 
  1458.         used by NETBIOS. Also, NETBIOS extends the int 15 function 90 and 91h 
  1459.         functions (scheduler functions)
  1460.      2) Normally not initialized.
  1461.      3) TOPS network card uses DMA 1, 3 or none.
  1462.  
  1463.                   
  1464. Interrupt 5Dh   Reserved by IBM  (not initialized)
  1465.  
  1466.  
  1467. Interrupt 5Eh   Reserved by IBM  (not initialized)
  1468.  
  1469.  
  1470. Interrupt 5Fh   Reserved by IBM  (not initialized)
  1471.  
  1472.  
  1473. Interrupt 60h-67h  User Program Interrupts (availible for general use)
  1474.                    Various major programs make standardized use of this group
  1475.                    of interrupts. Details of common use follows
  1476.  
  1477.  
  1478. Interrupt 60h   10-Net Network
  1479.  
  1480. entry   AH      11h     Lock and Wait
  1481.         AL      drive number or 0
  1482.         DX      number of seconds to wait
  1483.         ES:SI   Ethernet address or 0
  1484.         DS:BX   pointer to 31-byte ASCIIZ semaphore name
  1485. return  AL      status
  1486.                 0       successful
  1487.                 1       timeout
  1488.                 2       server not responding
  1489.                 3       invalid semaphore name
  1490.                 4       semaphore list is full
  1491.                 5       invalid drive ID
  1492.                 6       invalid Ethernet address
  1493.                 7       not logged in
  1494.                 8       write to network failed
  1495.                 9       semaphore already logged for this CPU
  1496.  
  1497. entry   AH      12h     Lock
  1498.         AL      drive number or 0 for default
  1499.         ES:SI   Ethernet address or 0
  1500.         DS:BX   pointer to 31-byte ASCIIZ semaphore name
  1501. return  AL      status (see function 11h)
  1502.                 1       semaphore currently logged
  1503. note    Unlike function 11h, this function returns immediately
  1504.  
  1505. entry   AH      13h     Unlock
  1506.         AL      drive number or 0
  1507.         ES:SI   Ethernet address or 0
  1508.         DS:BX   pointer to 31-byte ASCIIZ semaphore name
  1509. return  AL      status (see function 11h)
  1510.                 1       semaphore not logged
  1511.  
  1512.  
  1513. Interrupt 67h   Used by Lotus-Intel-Microsoft Expanded Memory Specification
  1514.         user    and Ashton-Tate/Quadram/AST Enhanced Expanded Memory
  1515.                 specification (See Chapter 10)
  1516.  
  1517.  
  1518. Interrupt 68h   Not Used  (not initialized)
  1519.  
  1520.  
  1521. Interrupt 69h   Not Used  (not initialized)
  1522.  
  1523.  
  1524. Interrupt 6Ah   Not Used  (not initialized)
  1525.  
  1526.  
  1527. Interrupt 6Bh   Not Used  (not initialized)
  1528.  
  1529.  
  1530. Interrupt 6Ch   System Resume Vector (Convertible) (not initialized on PC)
  1531.                 DOS 3.2 Realtime Clock update
  1532.  
  1533.  
  1534. Interrupt 6Dh   Not Used  (not initialized)
  1535.  
  1536.  
  1537. Interrupt 6Eh   Not Used  (not initialized)
  1538.  
  1539.  
  1540. Interrupt 6Fh   Novell NetWare - PCOX API (3270 PC terminal interface)
  1541. Interrupt 6Fh   10-Net Network API
  1542. entry   AH      00h     Login
  1543.         DS:DX   login record
  1544.               8 bytes user name
  1545.               8 bytes password
  1546.              12 bytes name of super-station
  1547.                 return  CL      security level
  1548.                         AX      status
  1549.                                 0000h   good login
  1550.                                 0FF01h  no response from superstation
  1551.                                 0FF02h  network error
  1552.                                 0FF03h  invalid password
  1553.                                 0FF04h  no local buffer
  1554.                                 0FF05h  superstation not available
  1555.                                 0FF06h  node already logged in
  1556.                                 0FF07h  login not valid from this node
  1557.                                 0FF08h  node ID already in use
  1558.                 01h     Logoff
  1559.                 return  CX      number of files closed
  1560.                         AX      status
  1561.                                 0000h   successful
  1562.                                 0FF08h  superstation ID not already logged in
  1563.                 02h     Status of node
  1564.                 DS:DX   pointer to 512-byte record
  1565.                       8 bytes user name (0 if none)
  1566.                         byte  station type
  1567.                               0  workstation
  1568.                               1  superstation
  1569.                               4  logged into multiple superstations
  1570.                      24 bytes list of superstations logged into more than one
  1571.                         superstation
  1572.                      12 bytes node ID
  1573.                         word  message count for this station (send for user
  1574.                               node, receive for superstations)
  1575.                         for superstations only:
  1576.                         word  drives allocated (bit 0=A:, bit 1=B:,...)
  1577.                         byte  user service flag
  1578.                               bit 4: SUBMIT is on
  1579.                                   3: mail waiting for node
  1580.                                   2: calendar waiting for you
  1581.                                   1: news waiting for you
  1582.                                   0: mail waiting for you
  1583.                         byte    printers allocated (bit 0=LPT1,...)
  1584.                         byte    number of unprinted spool files
  1585.                         byte    number of opened files
  1586.                         byte    number of logged on files
  1587.                         byte    primary drive (1=A:)
  1588.                         byte    reserved
  1589.                       n bytes   list of logged on node IDs (each 12 bytes, max
  1590.                                 38 IDs)
  1591.                 return  CF      set on error
  1592.                                 AX      error code
  1593.                                         0FF01h  no response from node
  1594.                                         0FF02h  network error
  1595.                                         0FF04h  no local buffer
  1596.                                         0FF16h  invalid node ID
  1597.                 03h     Get Address of Configuration Table
  1598.                 return  ES:BX   pointer to record (actually starts at [BX-25])
  1599.                                 word    count of dropped Send6F
  1600.                                 word    buffer start address
  1601.                                 word    comm driver base address
  1602.                                 word    send/receive retry count
  1603.                                 byte    number of 550ms loops
  1604.                                 word    UFH address
  1605.                                 word    CDIR address
  1606.                                 word    LTAB address
  1607.                                 word    SFH address
  1608.                                 word    FTAB address
  1609.                                 word    RLTAB address
  1610.                                 word    SMI address
  1611.                                 word    NTAB address
  1612.                       ES:BX     pointer to word address of first CT_DRV
  1613.                                 byte  number of DRV entries
  1614.                               8 bytes login name
  1615.                              12 bytes node ID
  1616.                               6 bytes node address
  1617.                                 byte  flag
  1618.                                 byte    CT_CFLG
  1619.                                         bit 1: sound bell
  1620.                                         bit 0: CHAT permit
  1621.                                 byte    CT_PSFLG
  1622.                                         bit 5: PRINT permit
  1623.                                         bit 4: KB initiated
  1624.                                         bit 3: CHAT called FOXPTRM
  1625.                                         bit 2: SUBMIT active
  1626.                                         bit 1: SUBMIT received
  1627.                                         bit 0: SUBMIT permit
  1628.                                 byte    reserved
  1629.                                 word    receive message count
  1630.                                 word    send message count
  1631.                                 word    retry count
  1632.                                 word    failed count
  1633.                                 word    driver errors
  1634.                                 word    dropped responses/CHATs
  1635.                               9 bytes   list ID/NTAB address (3 entries-LPT1-3?)
  1636.                               6 bytes   AUX ID/NTAB address (2 entries-COM1-2?)
  1637.                                 byte    active CB channel
  1638.                                 byte    received 6F messages on queue
  1639.                               9 bytes   activity counters for channels 1-9
  1640.                 04h     Send
  1641.                         DS:BX   pointer to record
  1642.                              12 bytes   receiving node's ID
  1643.                                 word    length of data at DX
  1644.                         DS:DX   pointer to data (max 1024 bytes)
  1645.                 return  CF      set on error
  1646.                         AX      error code
  1647.                                 0FF01h  timeout
  1648.                                 0FF02h  network error
  1649.                                 0FF04h  no local buffer
  1650.                                 0FF16h  invalid parameter (bad length)
  1651.                 05h     Receive
  1652.                         CX      number of seconds before timeout
  1653.                         DS:DX   pointer to receive buffer
  1654.                              12 bytes   sending node's ID
  1655.                                 word    length of message
  1656.                               n bytes   message (maximum 1024 bytes)
  1657.                 return CF       set on error
  1658.                                 AX      error code
  1659.                                         0FF01h  timeout
  1660.                                         0FF18h  sent message has been dropped
  1661.                 06h     Unknown
  1662.                 07h     Lock Handle
  1663.                         BX      file handle
  1664.                         CX:DX   starting offset in file
  1665.                         SI      record length
  1666.                 return  CF      set on error
  1667.                                 AX      error code
  1668.                                         0FF01h  timeout
  1669.                                         02h     file not found
  1670.                                         0FF17h  record locked by another user
  1671.                 08h     Unlock Handle
  1672.                         BX      file handle
  1673.                         AL      mode
  1674.                                 0       unlock all
  1675.                                 1       unlock record at CX:DX
  1676.                 return  CF      set on error
  1677.                                 AX      error code
  1678.                                         02h     file not found
  1679.                 0Bh     Lock Semaphore, Return Immediately
  1680.                         AL      drive number or 0
  1681.                         ES:SI   Ethernet address or 0
  1682.                         DS:BX   pointer to 31-byte ASCIIZ semaphore name
  1683.                 return  AL      status
  1684.                                 0       successful
  1685.                                 1       semaphore currently locked
  1686.                                 2       server not responding
  1687.                                 3       invalid semaphore name
  1688.                                 4       semaphore list is full
  1689.                                 5       invalid drive ID
  1690.                                 6       invalid Ethernet address
  1691.                                 7       not logged in
  1692.                                 8       write to network failed
  1693.                                 9       semaphore already logged in this CPU
  1694.                 0Ch     unlock semaphore
  1695.                         AL      drive number or 0
  1696.                         ES:SI   Ethernet address or 0
  1697.                         DS:BX   pointer to 31-byte ASCIIZ semaphore name
  1698.                 return  AL      status (see AH=0Bh)
  1699.                                 1 semaphore not locked
  1700.                 0Dh     Who
  1701.                         CX      length of data
  1702.                         DS:DX   pointer to array of records to be filled
  1703.                              12 bytes   node ID
  1704.                                 byte    flag (1=workstation, 2=superstation)
  1705.                 return  CL      number of records returned (responding stations)
  1706.                 0Eh     spool/print
  1707.                 DS:DX   pointer to record
  1708.                         word    0       initiate spool
  1709.                                 1       abort print
  1710.                                 2       close spool
  1711.                                 3       delete spool
  1712.                                 4       print
  1713.                                 5       get report info
  1714.                      11 bytes file name
  1715.                         byte    notification
  1716.                                 bit 6:  do ID page
  1717.                                 bit 5:  no form feed
  1718.                                 bit 3:  notify at print completion
  1719.                                 bit 2:  notify at print start and reply?
  1720.                                 bit 1:  notify at print start
  1721.                                 bit 0:  no notification
  1722.                         byte    days to keep (0FFh=forever)
  1723.                         byte    device (1=LPT1)
  1724.                         word    length of following data area
  1725.                       n bytes   $SCNT records returned if code in first word
  1726.                                 is 05h
  1727.                 return  CF      set on error
  1728.                                 AX      error code
  1729.                                         0FF16h  invalid parameter
  1730.                                         0FF17h  device not mounted
  1731.                                         0FF18h  already spooling to named device
  1732.                 11h     Lock FCB
  1733.                         AL      mode
  1734.                                 0       sequential
  1735.                                 1       random
  1736.                                 2       random block
  1737.                         DS:DX   pointer to FCB
  1738.                 return  CF      set on error
  1739.                                 AX       02h    file not found
  1740.                                          0FF01h timeout
  1741.                                          0FF17h record locked by another user
  1742.                 12h     Unlock FCB
  1743.                         AL      mode
  1744.                                 0       sequential
  1745.                                 1       random
  1746.                                 2       random block
  1747.                         DS:DX   pointer to FCB
  1748.                 return  CF      set on error
  1749.                                 AX      02h     file not found
  1750.  
  1751.  
  1752. Interrupt 70h   IRQ 8, Real Time Clock Interrupt  (AT, XT/286, PS/2)
  1753.  
  1754.  
  1755. Interrupt 71h   IRQ 9, Redirected to IRQ 8 (AT, XT/286, PS/2)
  1756.                 LAN Adapter 1 (rerouted to int 0Ah [IRQ2] by BIOS)
  1757.  
  1758.  
  1759. Interrupt 72h   IRQ 10  (AT, XT/286, PS/2)  Reserved
  1760.  
  1761.  
  1762. Interrupt 73h   IRQ 11  (AT, XT/286, PS/2)  Reserved
  1763.  
  1764.  
  1765. Interrupt 74h   IRQ 12  Mouse Interrupt (PS/2)
  1766.  
  1767.  
  1768. Interrupt 75h   IRQ 13, Coprocessor Error, BIOS Redirect to int 2 (NMI) (AT)
  1769.  
  1770.  
  1771. Interrupt 76h   IRQ 14, Hard Disk Controller (AT, XT/286, PS/2)
  1772.  
  1773.  
  1774. Interrupt 77h   IRQ 15 (AT, XT/286, PS/2)  Reserved
  1775.  
  1776.  
  1777. Interrupt 78h   Not Used
  1778.  
  1779.  
  1780. Interrupt 79h   Not Used
  1781.  
  1782.  
  1783. Interrupt 7Ah   Novell NetWare - LOW-LEVEL API
  1784.  
  1785.  
  1786. Interrupt 7Bh-7Eh  Not Used
  1787.  
  1788.  
  1789. Interrupt 7Fh   unknown
  1790.                 Used by second copy of COMMAND set with SHELL=
  1791.                 Not used by COMMAND /C at DOS prompt
  1792.  
  1793.  
  1794. Interrupt 80h-85h  Reserved by BASIC
  1795. note    interrupts 80h through ECh are apparently unused and not initialized.
  1796.  
  1797.  
  1798. Interrupt 86h   Relocated by NETBIOS int 18
  1799.  
  1800.  
  1801. Interrupt 86h-0F0h  Used by BASIC when BASIC interpreter is running
  1802.  
  1803.  
  1804. Intrerrupt 0E0h CP/M-86 function calls
  1805.  
  1806.                  
  1807. Interrupt 0E4h  Logitech Modula-2 v2.0   MONITOR
  1808. entry   AX      05h     monitor entry 
  1809.                 06h     monitor exit 
  1810.         BX      priority 
  1811.  
  1812.  
  1813. Interrupt 0F0h  unknown
  1814.                 Used by secondary copy of COMMAND when SHELL= set
  1815.                 Not used by COMMAND /C at DOS prompt
  1816.  
  1817.  
  1818. Interrupts 0F1h-0FFh  (absolute addresses 3C4-3FF)
  1819.                       Location of Interprocess Communications Area
  1820.  
  1821.  
  1822. Interrupt 0F8h  Set Shell Interrupt (OEM) 
  1823.                 Set OEM handler for int 21h calls from 0F9h through 0FFh
  1824. entry   AH      0F8h
  1825.         DS:DX   pointer to handler for Functions 0F9h thru 0FFh       
  1826. note 1) To reset these calls, pass DS and DX with 0FFFFh. DOS is set up to 
  1827.         allow ONE handler for all 7 of these calls. Any call to these handlers
  1828.         will result in the carry bit being set and AX will contain 1 if they are
  1829.         not initialized. The handling routine is passed all registers just as 
  1830.         the user set them. The OEM handler routine should be exited through an 
  1831.         IRET.
  1832.      2) 10 ms interval timer (Tandy?)
  1833.  
  1834.  
  1835. Interrupt 0F9h  First of 8 SHELL service codes, reserved for OEM shell (WINDOW);
  1836.                 use like HP Vectra user interface?
  1837.  
  1838.  
  1839. Interrupt 0FAh  USART ready (RS-232C)
  1840.  
  1841.  
  1842. Interrupt 0FBh  USART RS ready (keyboard)
  1843.  
  1844.  
  1845. Interrupt 0FCh  Unknown
  1846.  
  1847.  
  1848. Interrupt 0FDh  reserved for user interrupt
  1849.  
  1850.  
  1851. Interrupt 0FEh  AT/XT286/PS50+ - destroyed by return from protected mode
  1852.  
  1853.  
  1854. Interrupt 0FFh  AT/XT286/PS50+ - destroyed by return from protected mode
  1855.  
  1856. 
  1857.