home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PROGRAMS / UTILS / DOS_HELP / INTERCE.ZIP / INTERPRE.DAT < prev    next >
Encoding:
Text File  |  1989-04-11  |  7.7 KB  |  185 lines

  1. #    INTERPRE.DAT -- template file for INTERPRE.EXE
  2. #    by Ned Konz 08/02/87
  3. #    Note that any line can be continued by ending it with a backslash.
  4. #    Comment lines may be started with any non-hex character.
  5. #    Format of each line: NN[AH][AL] rest-of-line, i.e.:
  6. #    2,4, or 6 hex characters followed by the rest of the line.
  7. #    First 2 characters (required) are the interrupt number
  8. #    Next 2 (optional) are the contents of AH
  9. #    Next 2 (optional) are the contents of AL
  10. #    within the body of a template, the following strings are replaced
  11. #    with the contents of the appropriate registers:
  12. #
  13. #    AX AH AL BX BH BL CX CH CL DX DH DL BP DI SI DS ES CS IP
  14. #
  15. #    Added functionality by Russell Nelson.  If an interrupt is mentioned
  16. #    in INTERPRE.DAT, then it is traced, otherwise not.  No need to
  17. #    recompile to change the interrupts.  However, because of cheesy
  18. #    programming, all interrupts belonging to a single vector (first two
  19. #    digits identical) MUST be kept together.  I.e. all the interrupt 10s,
  20. #    then all the interrupt 21s, etc.
  21.  
  22. 05    Print screen
  23. 1000    Set video mode to AL
  24. 1001    Set cursor to CH-CL
  25. 1002    Set cursor position to row DH col DL page BH
  26. 1003    Read cursor position (page BH)
  27. 1004    Read light-pen position
  28. 1005    Set active display page to AL
  29. 100580    Get display page register
  30. 100581    Set CPU display page register to BL
  31. 100582    Set CRT display page register to BH
  32. 100583    Set CPU display page register to BL, CRT display page register to BH
  33. 1006    Scroll window (CH,CL DH,DL) up by AL lines (fill with BH)
  34. 100600    Clear window (CH,CL DH,DL) (fill with BH)
  35. 1007    Scroll window (CH,CL DH,DL) down by AL lines (fill with BH)
  36. 100700    Clear window (CH,CL DH,DL) (fill with BH)
  37. 1008    Read character and attribute from page BH
  38. 1009    Write character (AL) CX times to page BH with attr. BL
  39. 100a    Write character (AL) CX times to page BH (color BL if graphics mode)
  40. 100b    Set color BH to (physical color) BL
  41. 100c    Write pixel dot (color AL) to col. CX, row DL
  42. 100d    Read pixel dot from col. CX, row DL
  43. 100e    Write character (AL) as TTY (color BL if in graphics mode)
  44. 100f    Get current video mode
  45. 101130    Get EGA font pointer for font BL (3:8x8, 5:9x14)    
  46. 11    ???
  47. 12    ???
  48. 13    ???
  49. 14    ???
  50. 15    ???
  51. 1600    Read next keyboard character
  52. 1601    Report whether character ready
  53. 1602    Get shift status
  54. 1700    Send byte (AL) to printer
  55. 1701    Initialize printer
  56. 1702    Get printer status
  57. 1800    Jump to BASIC
  58. 1900    Reboot computer
  59. 1a00    Read the current clock count
  60. 1a01    Set the current clock count to CXDX ticks
  61. 1a02    Read AT real-time clock
  62. 1a03    Set AT real time clock to CH:CL:DH (DST if DL==1)
  63. 1a04    Read date from AT real-time clock
  64. 1a05    Set date of AT real-time clock to DH/DL/CHCL
  65. 1a06    Set AT alarm to CH:CL.DH
  66. 1a07    Reset AT alarm
  67. 20    Program terminate
  68. 2100    Terminate program (DOS 1 type)
  69. 2101    Keyboard input with echo
  70. 2106    Direct Kbd/Display I/O (get char if DL=ff) (output char DL otherwise)
  71. 2107    Direct keyboard input without echo
  72. 2108    Keyboard input without echo
  73. 2109    Display string (from DS:DX)
  74. 210a    Buffered keyboard input (to DS:DX)
  75. 210b    Check keyboard input status
  76. 210c01    Clear keyboard and do keyboard input with echo
  77. 210c06    Clear keyboard and do direct Kbd/Display I/O (get char if DL=ff) \
  78.         (output char DL otherwise)
  79. 210c07    Clear keyboard and do direct keyboard input without echo
  80. 210c08    Clear keyboard and do keyboard input without echo
  81. 210c0a    Clear keyboard and do buffered keyboard input (to DS:DX)
  82. 210d    Reset Disk
  83. 210e    Select DL as current drive
  84. 210f    Open file using FCB at DS:DX
  85. 2110    Close file (FCB at DS:DX)
  86. 2111    Search for first file matching FCB at DS:DX
  87. 2112    Search for next matching file
  88. 2113    Delete file using FCB at DS:DX
  89. 2114    Read sequential file record (FCB at DS:DX)
  90. 2115    Write sequential file record (FCB at DS:DX)
  91. 2116    Create file (FCB at DS:DX)
  92. 2117    Rename file (modified FCB at DS:DX)
  93. 2118    Internal DOS function 24
  94. 2119    Report current drive
  95. 211a    Set DTA to DS:DX
  96. 211b    Get FAT information, current drive
  97. 211c    Get FAT information, drive DL
  98. 211d    Internal DOS function 1d
  99. 211e    Internal DOS function 1e
  100. 211f    Internal DOS function 1f
  101. 2120    Internal DOS function 20
  102. 2121    Read random file record (FCB at DS:DX)
  103. 2122    Write random file record (FCB at DS:DX)
  104. 2123    Get file size (FCB at DS:DX)
  105. 2124    Set random record field (FCB at DS:DX)
  106. 2125    Set interrupt AL vector to DS:DX
  107. 2126    Create PSP at segment DX
  108. 2126    Create program segment at DX
  109. 2127    Read CX random file records (FCB at DS:DX)
  110. 2128    Write CX random file records (FCB at DS:DX)
  111. 2129    Parse filename (string at DS:SI) (make FCB at ES:DI)
  112. 212a    Get date
  113. 212b    Set date to DH/DL/CH (weekday AL)
  114. 212c    Get Time
  115. 212d    Set Time to CH:CL:DH.DL
  116. 212e    Called by command.com to reset transient portion of PSP (?) if DL!=00
  117. 212e00    Set verification off (if Dl(DL)==00), else undocumented
  118. 212e01    Set verification on (if Dl(DL)==00), else undocumented
  119. 212f    Get DTA address
  120. 2130    Get DOS version number
  121. 2131    Terminate (ret. code AL) and stay resident (free from DX)
  122. 2131    Terminate and stay resident (return code AL) (return from DX:0000 on)
  123. 213300    Get control break    
  124. 213300     Get control break state
  125. 213301    Set control break to DL
  126. 213301     Set control break state (to DL)
  127. 2135    Get interrupt AL vector
  128. 2136    Get disk DL free space
  129. 213700    Get switch character
  130. 213701    Set switch character to DL
  131. 2138    Get country-dependent info (for country AL) to DS:DX
  132. 2139    Make directory (name at DS:DX)
  133. 213a    Remove directory (name at DS:DX)
  134. 213b    Change current directory (name at DS:DX)
  135. 213c    Create file (name at DS:DX) with attribute CL
  136. 213d    Open file (name at DS:DX) mode AL
  137. 213e    Close file handle #BX
  138. 213f    Read CX bytes from file #BX to DS:DX
  139. 2140    Write CX bytes from DS:DX to file #BX 
  140. 2141    Delete file (name at DS:DX)
  141. 2142    Move file #BX pointer by CX:DX (whence=AL)
  142. 214300    Get mode of file (name at DS:DX)
  143. 214301    Set mode of file (name at DS:DX) to CL
  144. 214400    IOCTL: get device info for file #BX
  145. 214401    IOCTL: set device info for file #BX to DX
  146. 214402    IOCTL: read CX bytes from control channel of file #BX (to DS:DX)
  147. 214403    IOCTL: write CX bytes (from DS:DX) to control channel of file #BX
  148. 214404    IOCTL: read CX bytes from control channel of drive #BL (to DS:DX)
  149. 214405    IOCTL: write CX bytes (from DS:DX) to control channel of drive #BL
  150. 214406    IOCTL: report input status of file #BL
  151. 214407    IOCTL: report output status of file #BL
  152. 214408    IOCTL: report whether removable media in disk #BL
  153. 21440b    IOCTL: set retries for disk #BL to DX (retry time CX)
  154. 2145    Duplicate file handle #BX (DUP)
  155. 2146    Duplicate file handle #BX onto #CX (CDUP)
  156. 2147    Get current directory for drive #DL
  157. 2148    Allocate BX paragraphs of memory
  158. 2149    Free memory at ES:0000
  159. 214a    Change size of memory block at ES:0000 to BX paragraphs
  160. 214b00    Load and execute (make PSP) (program name @DS:DX)
  161. 214b01    Load program (program name @DS:DX)
  162. 214c    Terminate process (return code AL)
  163. 214d    Get return code of subprogram
  164. 214e    Begin file search (name at DS:DX) for files with attr. CL
  165. 214f    Continue file search
  166. 2151    Get PSP address (undocumented, like 2162)
  167. 2152    Set PSP address to BX (undocumented, inverse of 2162)
  168. 2154    Get verify state
  169. 2156    Rename file (old name at DS:DX to new name at ES:DI)
  170. 215700    Get File #BX date/time
  171. 215701    Set File #BX date/time to DX:CX
  172. 2159    Get Extended error code (DOS version code:BX)
  173. 215a    Create temp file (attr. CL), pathname at DS:DX
  174. 215b    Create new file (name at DS:DX, attr. CL)
  175. 215c00    Lock file access for file #BX starting at offs. CXDX for SIDI bytes
  176. 215c01    Unlock file access for file #BX starting at offs. CXDX for SIDI bytes
  177. 2162    Get PSP address
  178. 25        Abs. disk read (DOS) of drive AL: CX sectors from sec. DX to DS:BX
  179. 26        Abs. disk write (DOS) CX sectors from sec. DX to drive AL: from DS:BX 
  180. 27    Terminate and stay resident (return past CS:DX to DOS)
  181. 28    Idle loop
  182. 29    ???
  183. 2a    ???
  184. 2f    Print spool control (function AL) (Ds:Dx=DS:DX)
  185.