home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 2
/
FFMCD02.bin
/
new
/
disk
/
moni
/
ded
/
ded.doc
< prev
next >
Wrap
Text File
|
1993-12-21
|
19KB
|
680 lines
Disk-Editor, Version 1.1, User documentation
Edition 3-Nov-1993
Copyright 1992,3 Misoftware Computing
1. I'm sorry for my bad English.
--------------------------------
2. Requirements
---------------
Hardware:
An AMIGA, Version 1.2 or higher (tested on 1.3, 2.0 and 3.0, next version
will be 2.0+ only), NTSC or PAL, cca 100KB of memory free, 5 bytes per sector
for bitmap (for standard floppy format it's about 8800 bytes), 512 bytes for
sector data, some memory for CD, drive, disk...
Software:
Arp library, Req or Reqtools library. If you want nicer design, you need
Reqtools library. If DED is unable to open it, it will use Req, but the design
has been made for Reqtools.
3. Design
---------
On the screen title, there is the program version and number of sectors in
memory displayed. In the bottom of the screen, there is a status line
containing type of current sector, position in it, its number, its flags and
total free memory.
3.1 Type
Program recognises 21 types of sectors: BOOT, ROOT, USERDIR, FHEADER, EXT.,
DATA, BITMAP, DIRCACHE, LDIR, LFILE, LSEG, FSHD, PART., BAD BLK, RIGID, BMAP
EXT,???, SUSPECT, BITMAP?, FREE, DATA?
BOOT - Bootblock
ROOT - Rootblock
USERDIR - User directory
FHEADER - File header
EXT. - Extension of file header
DATA - Data block
BITMAP - Bitmap block
DIRCACHE - Directory cache block (introduced in OS V39, DED may handle them
under any OS version including 1.2)
LDIR - Linked directory (introduced in OS V36, DED may handle them under
any OS version including 1.2)
LFILE - Linked fileheader (introduced in OS V36, DED may handle them under
any OS version including 1.2)
LSEG - Load segment block
FSHD - Filesystem header block
PART. - Partition block
BAD BLK - Replacement of bad block
RIGID - Disk rigid block
BMAP EXT - Bitmap extension block
??? - Unknown type, but may be free (use "Load root & bitmap" for correct
identification)
SUSPECT - Unknown type, but allocated or something very suspicious
BITMAP? - Sector can be a bitmap
FREE - Free block
DATA? - May be a FFS data block (use "Load root & bitmap" for correct
identification)
3.2 Position in block
Format of numbers: there are six numbers, separated by slashes: pos in
bytes in dec/pos in words in dec/pos in longs in dec space pos in bytes in
hex/pos in words in hex/pos in longs in hex.
If you edit bitmap block in DOS edit mode, the number of the sector, pointed
to by mouse, is displayed here, instead.
3.3 Block
Number of block, pointed to by the cursor.
3.4 Sector flags
1st character: Sector is changed *=changed, #=not changed
2nd character: Sector is selected +=selected, #=not selected
3rd character: Checksum G=good, B=bad, Nothing=has no checksum
4th character: Status B=Busy
3.5 Free memory
Current amount of total free memory.
4. Control
----------
DED can be controlled using:
- menus
- cursor keys - move the cursor by one position in some way
- up and down arrows with shift - move the cursor by one screen
- up and down arrows with alt - move the cursor by 12 lines
- left and right arrows with alt - move the cursor by one byte
- TAB key - switches between ASCII and number edit modes
- CTRL and up/down/left/right - hotkeys for
Parent/Descendant/Previous object/Next object menu functions
- F-key functions - If you press CTRL + one of the F-keys, you may set your
own ASCII-code of this F-key. But this code is valid only in the edit mode.
CTRL + SHIFT + one of the F-keys => you will have to enter sector number. If
you press SHIFT and this F-key, DED will jump on sector you defined before.
You can clear the sector number by entering empty string or -1.
In number gadgets, you can enter an expression. Expressions can contain
numbers, operators (see the table below), variables (a-z), $ followed by
hexadecimal number, < (means: minimal allowed value), > (maximal allowed
value). If you want to set a variable, you must use the calculator function
to do it.
Operators: (sorted by priority)
*,/ multiplication, division
+,- addition, subtraction
& logical AND
^,| logical XOR and OR
Control in DOS edit mode:
- CTRL and up/down/left/right - hotkeys for
Parent/Descendant/Previous object/Next object menu functions
- up or left - same as menuitem "Previous sector"
- down or right - same as menuitem "Next sector"
- menuitem "Jump to byte ..." is changed to "Jump to bitmap flag of sector
..."
- You may change any information (including sector type) by clicking on it.
You cannot change BOOT, BITMAP, FREE and DATA? sector types and the ROOT
type can be switched only between ROOT and SUSPECT types.
- SHIFT + F-key functions (see above)
- up and down arrows with shift - scroll the display
5. Testing
----------
This version has been written on AMIGA 500 with 2MB of RAM, one external
disk drive and system 1.3.
Tested on:
My AMIGA
AMIGA 500+ with 6 MB of RAM, 50MB hard disk and kickstart 2.0
AMIGA 500 with 1MB of chip and 1MB of fast RAM, one external drive
and a 45 MB hard-disk.
AMIGA 1200 with 2 MB of CHIP-RAM, 80MB hard disk
6. Miscellaneous
----------------
This program is freely distributable, but the copyright remains with the
author at all times. It's provided "as is"; no warranties are made. All use
Is at your own risk, and no liability or responsibility is assumed.
This is a first public released version. Here are still some unknown bugs,
but I don't know where. If you know some, please write to:
Internet E-mail:
lemming@k332.feld.cvut.cz
or Michal Kara
Krosenska 543
Praha 8-Troja
181 00
Czech republic
If you call DED from CLI, you can also specify mounted device by giving it
as an argument - for example "ded df0:".
7. Thanks
---------
Thanks to Martin Mares of MJSoft System Software for testing, critics and
some information about AMIGA system,
Pavel Troller of SinSoft for language censoring,
Honza Kratochvil ("LACE") for testing and some ideas
and Petr Cisar (PCSoft) & "mr. Zub" for risking integrity of their hards.
No thanks to PC for its existency.
8. History
----------
History is stored in the ded.history file.
9. Plans for future
-------------------
- Check and repair disk (The Re-hash function in this version has some
repairing effects...)
- Recover actions
- User selectable screen mode
- Wildcards in search
- Optimize the code
- Dynamic bitmap of sectors (less than 5 bytes for every sector)
- Variable length of block
- The next release will be probably 2.0+ only (some 2.0+ features will be
added)
- Use only reqtools.library, no req
10. Appendixes
--------------
APPENDIX A
DOS STRUCTURES
(Thanks to Martin Mares for most of these structures)
Here are dos structures for the Old File System (OFS), offsets are in
longs:
ROOT BLOCK:
This block is in the middle of the medium. It's the root directory.
0 T.SHORT (=2)
1 0
2 0
3 HASH TABLE SIZE
4 0
5 CHECKSUM
6 HASH TABLE
...
SIZE-50 BITMAP FLAG (TRUE=BITMAP IS VALID)
SIZE-49 BITMAPBLOCKS
...
SIZE-24 BITMAP EXTENSION BLOCK
SIZE-23 DAYS LAST ACCESS
SIZE-22 MINS LAST ACCESS
SIZE-21 TICKS LAST ACCESS
SIZE-20 DISK NAME
...
SIZE-7 CREATE DAYS
SIZE-6 CREATE MINS
SIZE-5 CREATE TICKS
SIZE-4 0
SIZE-3 0
SIZE-2 FIRST DIRECTORY CACHE BLOCK
SIZE-1 ST.ROOT (=1)
USER DIR:
0 T.SHORT (=2)
1 POINTER TO SELF
2 0
3 0
4 0
5 CHECKSUM
6 HASH TABLE
...
SIZE-50 NOT USED
SIZE-48 PROTECTION BITS
SIZE-47 0
SIZE-46 COMMENT
...
SIZE-23 DAYS LAST ACCES
SIZE-22 MINS LAST ACCES
SIZE-21 TICKS LAST ACCES
SIZE-20 DIRECTORY NAME
...
SIZE-11 PREVIOUS BLOCK IN LINK-LIST - This value is always NULL.
SIZE-10 NEXT BLOCK IN