home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / doc / dosref22 / chapter.005 < prev    next >
Text File  |  1992-01-11  |  85KB  |  1,858 lines

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