home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus Special 6
/
Sonderheft_6-96.iso
/
pd
/
disktools
/
softrack
/
softrack.doc
< prev
next >
Wrap
Text File
|
1996-11-03
|
3KB
|
74 lines
Program name: SofTrack V1.1
Written with: SAS/C 6.5
Machine: Amiga 1200
Author: Kamran Karimi
Source: Included
What it does: Shows the current position of the head of the floppy disks
and what kind of operation (read/write...) is underway.
Program status: This program can be used freely but I retain the copyright
to it.
SofTrack tries to get some information about the commands issued to
disk drives. If a read, write, seek or format operation in encountered,
the program shows it along with the destination track. Note that the
information is extracted before the command is actually executed, so if
for any reason the command fails, the shown information are inconsistent.
SofTrack first allocates a message port. Then checks to see which drives
are present in the system. After that it installs two routines at the DoIO
and SendIO vectors. The main task's priority is raised to 19 so as to
guarantee a fast and consistent display of information. These routines
become active when a program jump to DoIO or SendIO. The routines first
check to see whether the device responsible for the command is
trackdisk.device and then see if it is a read, write, format... operation.
After that the track is computed assuming that a track has 11 sectors and
a sector has 512 Bytes. Then the routines send a message to the main task
giving the necessary information: which disk drive unit, what operation and
at which track. The two routines then call the original DoIO or SendIO
routines. The main task displays the information on the screen, only
if the it is different from that previously shown.
NOTE: if disk caching is used, no information may be displayed. The system
should actually refer to disk drive, not a buffer.
I had some difficulty in finding out which drive the system wants to
address because I could not find where the system keeps this information.
This information is not documented by Commodore. After looking at a
disassembly of the ByteBandit virus I saw that it was writing something in
a register responsible for the drive selection. I used that methode to find
the appropriate drive and It seems to works.
Important note:after executing SofTrack some virus killer programs may say
that a virus is in memory.This ofcourse is not the case. Do not try to
remove Softrack by a virus killer, it will crash the system. Note that this
program diverts the DoIO and SendIO vectors, so if you use a program like
NoChange (which has the ability to restore vectore values), then it will
warn you of the change, in this case always choose 'accept changes' and
never restore them or SofTrack won't work!.
The program has been tested on an A500 with OS1.3 as well as A1200 with
OS3.0 .
My Address
Mail (More Reliable):
Kamran Karimi
89-Nastaran/Ghandehari
Khosh Shomali str.
14578 - Tehran
IRAN
Internet: karimik@sun.iust.ac.ir