home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
hed.zip
/
HeD.doc
< prev
next >
Wrap
Text File
|
1995-09-29
|
9KB
|
292 lines
HeD/2 v1.0
Hex Editor for OS/2
■ What is HeD/2
---------------
HeD/2 is yet another hex editor for OS/2.
Anyway, HeD/2 has some very powerful features not
easily found in other binary editors, including
(but [as usual] not limited to) :
- Unlimited editing in memory.
- Support for multiple files.
- Unlimited size of block copying & pasting.
- Internal evaluator.
- Wildcards in search strings.
■ Disclaimer license etc etc
----------------------------
HeD/2 is free. No registration is needed, and there
are no crippled features. This is a full functioning
version.
HeD/2 comes with no warranty. The author is not responsible
for any damage caused directly or indirectly by the program.
■ Command line syntax
---------------------
HeD/2 has no command line parameters. Everything you
type in the command line is treated as a filename to be
opened. Wildcards are allowed and there can be more than
one file specifications e.g.
HeD test* read*.do? \autoexec.bat ..\temp\3\foo.bar.2
If a filename contains spaces use double quotes :
HeD "Read Me.Tx?" readme.txt
If a filename is in the form of "drive:" HeD/2 will
try to edit the entire logical disk. If HeD/2 fails
to lock the device the disk will still be opened
but only for reading.
If you are not absolutely sure you know what you are
doing DO NOT edit disk volumes !
If no wildcards are specified HeD/2 will prompt you
to select a file from a list box.
■ Moving around
---------------
HeD/2 displays files in two panels. The one on the
left holds the alphanumeric representation and the one
on the right the hexadecimal.
A blue attribute cursor shows the current position in
both panels. If a file can be written (that is, if it
is not read-only and not blocked by the system) the
standard blinking cursor will be displayed as well in
the panel that has the focus.
The moving keys are
Up Cursor up
Down Cursor down
Left Cursor left
Right Cursor right
PgUp Previous screen
PgDwn Next screen
Alt-G Go to position.
Tab Switch panels. The panel with the focus (double line
border) receives the data.
■ General commands
------------------
Alt-N Go to next opened file.
Alt-P Go to previous opened file.
Alt-O Open or create a new file.
Alt-Q Quit file. If changes have been made you will be
prompted for saving. If the last file is quitted HeD/2
will exit.
Alt-F Toggle text filter.
Alt-D Toggle between hexadecimal and decimal offsets display.
Ctrl-F4 Evaluate expression.
F11 Show Ascii table.
F9 Shell to command processor.
Alt-F9 Execute program.
Esc Quit HeD/2.
■ Changing Data
---------------
Data is entered directly into the panel that has
the focus (use Tab to change the focus).
Bytes with changed values will be displayed
intensified.
HeD/2 allows you to enter data past the end of
file. Just press the left arrow while in the
bottom of the file and continue editing.
Be careful when pasting data near the end of
file. HeD/2 will not truncate the pasted part,
instead it will increase the file size to make
more space. Make sure you don't end up with
a file larger than you want ...
Changing commands are:
Alt-Enter Enter a number at the cursor location.
F11 While in the ascii dialog box you can press Enter
to insert the selected character in the file.
Del Undo changes at current location.
Backspace Go back one character then undo at current location.
Ctrl-Del Unto all changes in marked block (use shift and
movement keys for marking).
Alt-PgDwn Go to next changed data.
Alt-PgUp Go to previous changed data.
F2 Save changes
F3 Abort changes
■ Copying & Pasting
-------------------
Mark data by holding down the Shift key, and then
any of the moving keys (e.g. arrows PgUp PgDown etc)
Ctrl-Ins Copy Data to clipboard
Shift-Ins Paste Data from clipboard
NOTE: HeD/2 has a private internal clipboard. Data you
copy into it will not be available to other
sessions.
■ Searching
-----------
F5 Case insensitive search for text
Alt-F5 Case insensitive search for text & replace
F6 Search for text (case sensitive)
Alt-F6 Search for text & replace (case sensitive)
F7 Hexadecimal search
Alt-F7 Hexadecimal search & replace
F8 Search for number
Alt-F9 Search for number & replace
Shift-F7 Redo last search.
NOTE: In the search prompt press Alt-? for a wildcard.
The wildcard is displayed as an intensified
question mark.
When searching, a wildcard will match any data.
For example a search for '22 ?? EE' will match
both '22 31 EE' and '22 04 EE'.
When replacing, a wildcard is treated as a "do not
change" flag. If for example you are replacing using
'?? 12 34' , only the second and third byte of the
matching data will be replaced.
Wildcards are allowed only in text and hex
search.
■ Evaluation
------------
HeD/2 contains an internal evaluator. Whenever you are
prompted for a number you can type an expression using
the following mathematical functions :
~ Boolean NOT
* Multiply
/ Division
% Remainder
+ Add
- Subtract
<< Rotation left
>> Rotation right
& Boolean AND
^ Boolean XOR
| Boolean OR
WARNING : HeD/2 uses the C precedence of the symbols.
That means for example that 4+4&8 yields 8 and not 4 !
To be on the safe side always use parenthesis.
Numbers are treated as decimal by default. Use a
trailing h or b to denote hexadecimal or binary.
For example :
1000 + ( (1440&200h) << 11b )
■ The infamous codepage patch
-----------------------------
For reasons that are not yet clear to me (!!) I have decided to
design a complicated (!) patch to allow codepage switching while
HeD/2 is running (did I ?).
In order to change the HeD's codepage you should hex edit the file
hed.exe (!!?) search for the string "CODEPAGE:000" and change the
number to the desired codepage (!).
NOTE: Don't use "hed hed" (!) to hex edit hed. Try a renamed version
of hed.
■ End notes
-----------
HeD/2 is not available for any platform other than OS/2. I
may write a DOS version, but then again I may not.
HeD/2 has been tested by a small number of beta testers.
Nevertheless if you find any bugs, spelling errors, or if
you have any suggestion about future improvements, or if
you just want to send a message of support here is where you
can reach me:
fidonet: Dimitris Kotsonis @ 2:410/301.7
OS2net: Dimitris Kotsonis @ 81:430/2.1
internet: jnk@opti.patra.hol.gr
jnk@patra.hol.gr (try both)
■ Acknowledgements
------------------
I would like to thank the following people for their help and
support:
Nikos Lazos
John Mantzouranis
John Millas
Panagiotis Malakoudis
Alex Spanidis
Nick Mylonas
Costas Papadopoulos
thank you all
jnk