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