|★ APPLICATIONS ★ DISQUE ★ DEDIT ★|
|Dedit|Computing With the Amstrad)||Applications Disque|
DEDIT is a disc editor which will enable you to edit any sector on any track of a disc. If you're careful you'll be able to recover programs that have been accidentally deleted.
To use it to full advantage, we have to consider how the Amstrad disc system works. There are three standard disc formats:
The formats have two things in common: each has 40 tracks per disc and all of the sectors are 512 bytes in length. The main differences between each format are the number of sectors on a track and the sector numbers.
Here's a list of the sector information for each format:
You don't need to worry about the format of the disc being edited because Dedit will work it out for you. Anyway, let's see how to use it.
Type in Program I and save it. On running the program the Amstrad will change to Mode 2 and draw a large box in the centre of the screen.
You will be asked for the drive is being displayed - 0 if it's the first 256 bytes of the sector and 1 if it's the last 256 bytes. To the left of the page number is the track and sector number of the sector held in memory.
You now have several options open to you. You can either edit the sector in memory, read another section of the disc or write the sector back to the disc.
Table 1 lists all of the commands and control keys. There's a very useful Help page which lists all of the commands. You can display it by pressing 0 on the numeric pad (f0 on the CPC664).
New track/sector options:
SHIFT (cursor right) next sector
Other coammnd keys: (Numeric pad on the CPC 464)
If at any time a disc error occurs the error message will be printed at the bottom of the screen along with "Retry, Ignore or Cancel".
It's always worth re-trying (R) in case the Amstrad's had a little hiccup. This has occurred several times in the development of Dedit and its cause is still a mystery.
First of all the disc drive must be selected. In most cases 0 will be entered, indicating that drive A is being used. Next the track and sector numbers are needed. Suppose we enter 2 for the track and 65 for the sector.
The sector will now be loaded and displayed on the screen.
If, however, the sector you selected isn't the one you want to edit you can move to another section of the disc by pressing the appropriate cursor arrow keys while holding down Shift - see Table I for a command summary.
For example, if we pressed (Shift+cursor right) the next sector would be loaded. In our case this would be sector 66 from track 2.
Once the desired sector has been located we can start editing. There are two editing modes, hex and Ascii. Toggle is selected by pressing 3 on the numeric pad (f3 on CPC664).
In hex mode the contents of the sector are altered by entering hexadecimal digits (0-9 and A-F). Note that the numeric pad on the CPC464 should not be used to enter the digits 0-9. Instead use the numeric keys above "QWERTY".
The byte being edited can be changed by moving the editing cursor to the desired byte within the sector. This is achieved by pressing the appropriate cursor arrow keys.
The other edit option allows you to enter Ascii characters into the sector. For example, if you typed ABCD the bytes &41 ,&42,&43 and &44 would be entered starting from the editing cursor's previous position.
You can tell which editing mode you are in by looking at the editing cursor's position. If it is over the hexadecimal bytes you are in the hex mode, otherwise you're in Ascii mode.
Once you are satisfied that the sector has been successfully changed you must write the sector back to the disc. This is done by pressing 4 on the keypad (f4 on the CPC664), after which you will be prompted with "Are you sure Y/N?"
If you want to write the sector back to disc press Y. Pressing N aborts the operation and returns you to the editing mode.
Now it's time for you to discover how your Amstrad stores information on the disc. Happy hunting!