home *** CD-ROM | disk | FTP | other *** search
/ Share Gallery 1 / share_gal_1.zip / share_gal_1 / LA / LA023.ZIP / DOSREF17.ZIP / CHAPTER.005 < prev    next >
Text File  |  1990-03-21  |  85KB  |  1,853 lines

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