home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PROGRAMS / UTILS / DOS_HELP / INTERCE.ZIP / INTERCEP.TXT < prev    next >
Encoding:
Text File  |  1989-04-18  |  2.2 KB  |  54 lines

  1. Originally-from: Ned Konz <no email address> modified by Russ Nelson
  2. Submitted-by: Russ Nelson <nelson@sun.soe.clarkson.edu>
  3. Archive-name: intercep/part01
  4. Part-count: total=02, first=01, last=02, prefix=part
  5.  
  6. [ The Part-count header is still experimental.  -- R.D. ]
  7.  
  8. [
  9. This is a program to monitor software interrupts invoked by any
  10. program.  After you have invoked the program whose behavior you are
  11. tracing, and it has finished executing, a text file is left behind on
  12. disk that gives you a blow-by-blow account of all software interrupts
  13. that were invoked and what register values were passed, as well as a
  14. brief text description of what each one does.
  15.  
  16. For example, here is what lharc does when it adds a new file to a new
  17. archive:
  18.  
  19.  4FBF:000B  2130   Get DOS version number
  20.  4FBF:0159  2135   Get interrupt 00 vector
  21.  4FBF:016D  2125   Set interrupt 00 vector to 4FBF:014C
  22.  4FBF:00DE  214a   Change size of memory block at 4FAF:0000 to 157B paragraphs
  23.  4FBF:4229  2125   Set interrupt 23 vector to 4FBF:3854
  24.  4FBF:4174  213300      Get control break state
  25.  4FBF:4184  213301 Set control break to 01
  26.  4FBF:5651  2140   Write 0001 bytes from 552A:1222 to file #0002
  27.  ... stuff omitted ...
  28.  4FBF:5651  2140   Write 0001 bytes from 552A:1222 to file #0002
  29.  4FBF:5651  2140   Write 0001 bytes from 552A:FF76 to file #0002
  30.  4FBF:2AFF  213700 Get switch character
  31.  4FBF:478E  213d   Open file (name at 552A:1721) mode 02
  32.  4FBF:3A4F  211a   Set DTA to 552A:FEF6
  33.  4FBF:3A59  214e   Begin file search (name at 552A:FF2E) for files with attr. 00
  34.  4FBF:372E  2148   Allocate 0100 paragraphs of memory
  35.  ... lots omitted ...
  36.  
  37. All software interrupts to be traced are listed in an external data
  38. file.  You can modify this list easily with a text editor.  Russ Nelson
  39. has revised the program so you can easily specify which software
  40. interrupts it should trace without recompiling it.
  41.  
  42. The program seems to work well.
  43.  
  44. Checksums obtained with the 4.3BSD "sum" or System V "sum -r" command.
  45.  
  46. checksum     size (bytes)  file (between BEGIN--cut and END--cut lines)
  47.    58613        30277      part01
  48.    15310        29974      part02
  49.  
  50. checksum     size (bytes)  file
  51.    47978        43710      interc.arc
  52.  
  53. -- R.D.
  54.