Writing the Disk Editing Tool
The coding of the disk editing program has been given in the disk included with this book, with the file name “TTEDITOR.C”. You can use this program to analyze the hard disks or floppy disks surface. Even most of the study while writing this book, I have used TTEDITOR to analyze the disk surface or perform the disk modifications.
Some of the important tasks, this editing program can perform are as follows:
- Read per sector information of the surface of hard disks and floppy disks.
- Write the backup of any sector to file.
- Restore the data of the sector from the file.
- Modify the single byte.
- Hexadecimal to Decimal and Binary calculator.
The program uses biosdisk( ) and _bios_disk( ) function to access the disks. If you want to analyze the disk beyond the 8.4 GB, Modify the program with the use of Extensions of INT 13H. The description of the functions, used in the program has been given in the following table:
Function |
Description |
bkground( ) |
creates the back ground and frame of first screen |
clsline( ) |
Used to clear the complete row from the screen specified by row number. |
refresh( ) |
Function to recall all the display functions on the screen |
writetofile( ) |
Function to write the data of a sector to user defined file. |
writetosector( ) |
Function to restore the sector from specified file. |
msgdisp( ) |
Function to display messages on the screen. |
modify( ) |
Function to modify a single byte of any sector, specified by user. |
frame( ) |
Function to draw the frame structure of sector display |
dispmax( ) |
Display maximum CHS number of the disk (Valid Up to 8.4 GB Disk) |
display( ) |
Display the sector and information on the screen. |
hextodec( ) |
Function to Calculate hexadecimal number to corresponding decimal and binary numbers. |
|
page 1 | 2 | 3 | 4 | 5 | 6 |
|
|
|