0% found this document useful (0 votes)
19 views34 pages

Hexpert-4 0

This document describes the HEXpert for Windows binary editor software. It provides information on starting the program, the main program window and its components, the program menus and their functions, editing the data, searching/replacing data, exporting binary to ASCII, printing, and a keyboard reference. The main program window displays the file in hex and ASCII formats along with 8 other numeric formats. The menus allow file open/save, editing, options configuration, searching/replacing, and help.

Uploaded by

mail
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views34 pages

Hexpert-4 0

This document describes the HEXpert for Windows binary editor software. It provides information on starting the program, the main program window and its components, the program menus and their functions, editing the data, searching/replacing data, exporting binary to ASCII, printing, and a keyboard reference. The main program window displays the file in hex and ASCII formats along with 8 other numeric formats. The menus allow file open/save, editing, options configuration, searching/replacing, and help.

Uploaded by

mail
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 34

HEXpert for Windows

Version 4.0

Copyright  2002-2014, Hexpert Systems

HEXpert for Windows, Copyright  2002-2014, Hexpert Systems


page 1
HEXpert for Windows, Copyright  2002-2014, Hexpert Systems
page 2
HEXpert for Windows
Windows multi-format binary editor.
Copyright 2002-2014, HEXpert Systems

Hexpert Systems
PO Box 2894
Grass Valley, CA 95945

[email protected]
http://www.hexpertsystems.com

------------------------------------------------------------------------------------
LICENSE
------------------------------------------------------------------------------------

This software is protected by both United States copyright law and


international copyright treaty provisions. Therefore, you must treat this
software just like a book, except that you may copy it onto a computer
to be used and you may make archival copies of the software for the
sole purpose of backing up the software and protecting your investment
from loss.

By saying "just like a book," I mean that this software may be used by
any number of people, and may be freely moved from one computer
location to another, so long as there is NO POSSIBILITY of it being
used at one location while it is being used at another or on a computer
network by more than one user at one location. Just as a book can't be
read by two different people in two different places at the same time,
neither can the software be used by two different people in two
different places at the same time.

HEXpert for Windows, Copyright  2002-2014, Hexpert Systems


page 3
Contents
1. FIGURES 5
2. INTRODUCTION 6
3. STARTING THE HEXPERT PROGRAM 7
4. MAIN PROGRAM WINDOW 8
4.1 TITLE BAR. 8
4.2 MENU BAR. 9
4.3 EDIT AREA. 9
4.4 FORMAT WINDOWS. 9
4.5 STATUS LINE. 9
5. MENUS 10
5.1 FILE MENU. 10
5.2 EDIT MENU. 11
5.3 OPTIONS MENU. 14
5.4 SEARCH MENU. 17
5.5 TOOLS MENU. 18
5.6 HELP MENU. 19
6. EDIT AREA 20
7. FORMAT WINDOWS 22
8. STATUS LINE 24
9. SEARCHING AND REPLACING DATA 25
9.1 SEARCHING FOR DATA. 25
9.2 SEARCH & REPLACE. 26
10. EXPORTING BINARY AS ASCII 29
11. PRINTING 32
12. KEYBOARD REFERENCE 33

HEXpert for Windows, Copyright  2002-2014, Hexpert Systems


page 4
1. Figures
FIGURE 1. MAIN PROGRAM WINDOW 8
FIGURE 2. BLOCK FILL DIALOG BOX. 12
FIGURE 3. BLOCK DELETE DIALOG BOX. 13
FIGURE 4. SET DISPLAY WIDTH DIALOG BOX 16
FIGURE 5. COLOR CONFIGURATION DIALOG 17
FIGURE 6. GOTO OFFSET DIALOG 18
FIGURE 7. EXAMPLE CHECKSUM RESULTS 19
FIGURE 8. MAIN EDIT AREA 20
FIGURE 9. FORMAT WINDOWS. 22
FIGURE 10. STATUS LINE. 24
FIGURE 11. SEARCH DIALOG. 25
FIGURE 12. SEARCH & REPLACE DIALOG. 27
FIGURE 13. EXPORT BINARY AS ASCII DIALOG. 29
FIGURE 14. EXPORT FILE EXISTS DIALOG. 31
FIGURE 15. PRINT DIALOG 32

HEXpert for Windows, Copyright  2002-2014, Hexpert Systems


page 5
2. Introduction
HEXpert is a powerful tool that allows the user to view and edit binary
data in both hex (or octal, binary, or decimal) and ASCII formats, as
well as eight different numeric formats, including signed and unsigned
integers and floating point. Instead of looking for the hex equivalent of
a floating point number, the user can simply view the data in all
formats simultaneously. HEXpert allows editing, searching, or
replacing of the data in any of these formats. Additionally, HEXpert
can insert and delete data. Files size is limited only by system RAM
and harddrive space. HEXpert runs under 32-bit Microsoft Windows
operating systems (Win95, Win98, Win2000, WinNT).

HEXpert for Windows, Copyright  2002-2014, Hexpert Systems


page 6
3. Starting the HEXpert program
The executable file for HEXpert for Windows is Hxpert32.exe. To run
the program from Windows, open the file manager, switch to the
directory containing the executable file, select the file, and choose Run
under the File menu. A dialog box is displayed with the program name
in an edit window. You can append the name of the file you wish to
edit after the program name, and click OK to start the program editing
that file. If no file is specified, HEXpert will display a dialog box
allowing you to select the path and name of the file to edit.

An alternative method is to drag and drop the name of the file you wish
to edit onto the HEXpert executable file name. This is the equivalent
of specifying the edit file on the HEXpert command line.

HEXpert for Windows, Copyright  2002-2014, Hexpert Systems


page 7
4. Main Program Window
Figure 1. shows the main window for HEXpert. Most editing work is
performed in this window. The window can be minimized, maximized,
or resized; however, when maximized or resized, the window will
automatically maintain a constant width based on the font size and
display mode. The height will also be adjusted to keep an integral
number of text lines visible. The window consists of several areas.

Figure 1. Main Program Window

4.1 Title Bar.


At the top of the Main Program Window is the title bar. The title bar
contains the program name (HEXpert) and the path and name of the file
being edited. When HEXpert is iconized, only the name of the file is
displayed below the icon.

HEXpert for Windows, Copyright  2002-2014, Hexpert Systems


page 8
4.2 Menu Bar.
Below the title bar is the menu bar. Section 5 details the selections
available in the menus.

4.3 Edit Area.


Below the menu is the main edit area. This is where the actual display
and editing of the data occurs. Section 6 describes the edit area.

4.4 Format Windows.


Below the edit area are the eight format windows. These are used to
display the numeric equivalents of the data pointed to by the cursor.
See Section 7 for more information about the format windows.

4.5 Status Line.


The bottom section of the program window is the status line. Here, the
current status of the program is displayed. Section 8 describes the
status line in more detail.

HEXpert for Windows, Copyright  2002-2014, Hexpert Systems


page 9
5. Menus
The menu bar contains five pull down menus. These are:

File - Commands pertaining to loading or saving files.

Edit - Commands for editing the file.

Options - Switches controlling operation of the program.

Search - Commands for searching for and replacing data.

Tools – Miscellaneous commands.

Help - Commands for further information about the program.

5.1 File Menu.


The File menu contains the following selections:

New – Creates a new instance of the HEXpert window.

Open - Opens a new file. If you are currently editing a file which has
not been saved, HEXpert will ask if you wish to save the current file
before loading the new one.

Open with New Window – Creates a new instance of the HEXpert


window and prompts you to select a file to open.

Save - Saves the current file using the same file name.

Save As - Displays a dialog box allowing you to specify a new


directory and/or file name. The current file is then saved using this
new name. Selecting Cancel on the dialog box will cancel the save and
revert to the old file name.

Save Selection As – Displays a dialog box allowing you to specify a


file to save the currently highlighted section of text to.

Export Binary to ASCII - Displays a dialog box with options for


exporting arrays of data to an ASCII file. See Section 10 for a detailed
explanation on how to use this function.

HEXpert for Windows, Copyright  2002-2014, Hexpert Systems


page 10
Print - Allows the user to print the file or a portion of the file.
Selecting this item will display the Print Dialog, allowing the user to
specifiy which portion of the file to print. See Section 11 for a detailed
explanation on using the print dialog.

Print to File – Allows the user to print the file or a portion of the file to
another file in the hex dump format. Selecting this item will display
the Print to File Dialog, allowing the user to specify which portion of
the file to print.

Exit - Exits the program. If the current edit file has been modified, the
program will give you the option of saving the file before exiting.
Choosing OK will save the file and exit. Choosing Cancel will abort
the exit and return to editing.

5.2 Edit Menu.


The Edit menu contains the following selections:

Insert Byte - Selecting this option, or pressing the Insert key (INS) will
insert a character (00 hex) at the current cursor location. Note that this
will not work if the program is in the FIXED mode, which does not
allow the file size to change. If this is the case, a message will be
displayed informing you of this.

Delete Byte - Selecting this option, or pressing the Delete key (DEL)
will delete the character at the current cursor location. Note that this
will not work if the program is in the FIXED mode, which does not
allow the file size to change. If this is the case, a message will be
displayed informing you of this.

Toggle Edit Mode - This option changes the current edit mode. The
two modes are ASCII, and HEXadecimal (or OCTal, BINary, or
DECimal). If the mode is ASCII, typing any ASCII characters on the
keyboard will overwrite the characters at the current cursor location
with the typed characters. Note that this is affected by the Text Display
Format (i.e. if using EBCDIC instead of ASCII, EBCDIC values will
be used when entering characters). The other modes will overwrite the
data with the numeric values input. For example: in HEX mode,
typing any of the numeric characters (0-9), or any of the characters A-
F, will modify the data with the new value.

HEXpert for Windows, Copyright  2002-2014, Hexpert Systems


page 11
Mark Selection Start – This command will mark the current cursor
position as the start of the currently selected text. Text will be
highlighted starting at this position and ending at the Selection End.
Note that if the selected end of text precedes or is equal to the start, no
text will be highlighted. The Selection Start can also be designated by
positioning the mouse cursor over the location and Ctrl-Left clicking.

Mark Selection End – This command will mark the current cursor
position as the end of the currently selected text. Text will be
highlighted starting at the Selection Start and ending at this location.
Note that if the selected end of text precedes or is equal to the selected
start, no text will be highlighted. The Selection End can also be
designated by positioning the mouse cursor over the location and Ctrl-
Right clicking.

Block Fill - This command will display a dialog box allowing the user
to fill a given region of the file with specified data, as shown in Figure
2.

Figure 2. Block Fill Dialog Box.

Enter the starting offset in the Offset field. When the box is displayed,
it will already contain the offset of the current cursor position. Also
select the numeric format for the offset. Enter the number of items to

HEXpert for Windows, Copyright  2002-2014, Hexpert Systems


page 12
fill with in the Count field. Note that this does not necessarily indicate
bytes. If the selected format is FP64, then a count of 10 decimal would
indicate 80 bytes (FP64 = 8 bytes each). If you wish to specify an
ending location instead of a count, precede the count value with the
“@” symbol. HEXpert will take the count value as a second offset and
compute the proper count for you. Select the numeric format for the
count. Specify the text you wish to fill with in the Fill Text field.
Finally, select the data format for the fill text in the Format options
box. Press the OK button to perform the fill, or Cancel to cancel the
operation.

Block Delete - This command will display a dialog box allowing the
user to delete a specified number of bytes of data, as shown in Figure 3.

Figure 3. Block Delete Dialog Box.

Enter the starting offset in the Offset field. When the box is displayed,
it will already contain the offset of the current cursor position. Also
select the numeric format for the offset. Enter the number of bytes to
delete in the Count field. If you wish to specify an ending location
instead of a count, precede the count value with the “@” symbol.
HEXpert will take the count value as a second offset and compute the
proper count for you. Select the numeric format for the count. Press
the OK button to perform the deletion, or Cancel to cancel the
operation.

Block Cut to Clipboard – This command will delete the selected text
from the editor and place it in the Windows clipboard. Note that if the
current text mode is HEX format, it will be stored in the clipboard in a
HEXpert proprietary format, whereas if the current text mode is ASCII
format, it will be stored in the clipboard as standard text, and can be
pasted into other text applications.

HEXpert for Windows, Copyright  2002-2014, Hexpert Systems


page 13
Block Copy to Clipboard – This command will copy the selected text
from the editor and place it in the Windows clipboard. Note that if the
current text mode is HEX format, it will be stored in the clipboard in a
HEXpert proprietary format, whereas if the current text mode is ASCII
format, it will be stored in the clipboard as standard text, and can be
pasted into other text applications.

Block Paste from Clipboard – This command will insert text from the
Windows clipboard into the editor at the current cursor location.

Block Paste Over from Clipboard – This command will insert text
from the Windows clipboard into the editor at the current cursor
location, overwriting existing text.

5.3 Options Menu.


The Options menu contains selections for changing the way the
program operates. The menu selections are:

Data Display Format – This command displays a menu of data


formats that are used for data display and input. The selections are:

Hexadecimal - This will select hexadecimal (HEX) as the


numeric base for input and display of the data. Accepted input
characters are 0-9, and A-F. Data must be entered in pairs for
each byte of data modified. When hexadecimal is the numeric
base, this menu item will be checked. Hexadecimal is the default
numeric base.

Octal - This will select octal (OCT) as the numeric base for input
and display of the data. Accepted input characters are 0-7. Data
must be entered in sets of three for each byte of data modified.
When octal is the numeric base, this menu item will be checked.

Binary - This will select binary (BIN) as the numeric base for
input and display of the data. Accepted input characters are 0 and
1. Data must be entered in sets of eight for each byte of data
modified. When binary is the numeric base, this menu item will
be checked.

Decimal - This will select decimal (DEC) as the numeric base for
input and display of the data. Accepted input characters are 0-9.
Data must be entered in sets of three for each byte of data

HEXpert for Windows, Copyright  2002-2014, Hexpert Systems


page 14
modified. Values will be limited to a range from 0 to 255. When
decimal is the numeric base, this menu item will be checked.

Text Display Format – This command displays a menu of formats for


text display. This also affects text when input with the mode set for
ASCII. The selections are:

ASCII – Displays characters as ASCII format.

EBCDIC – Displays characters as EBCDIC format.

Offset Display Format – This command displays a menu of formats


for display of the offset column. The selections are:
Decimal Offset Display - Selecting this option will toggle the
display of file offsets in decimal or HEX (or OCT, BIN, or DEC).
The left column of the edit and the cursor position display will be
affected. When decimal offsets are selected, this menu item will
be checked.

Line Number Display – Selecting this option will enable display


of line numbers in the left column. Note that the cursor position
display will continue to show decimal or HEX (or OCT, BIN, or
DEC) offsets.

Display Font – This command displays a menu of fonts to choose


from. The selections are:

OEM Font - This option selects the OEM font for display. The
OEM font will display the upper 128 characters as line draw
characters, boxes, Greek characters, etc. When the OEM font is
being used, this menu item will be checked. The OEM font is the
default font.

ANSI Font - This option selects the ANSI font for display. The
ANSI font will display the upper 128 characters as the special
characters used for many non-English languages. When the ANSI
font is being used, this menu item will be checked.

Fixed Length - This option toggles the FIXED mode on or off.


FIXED mode means that the file size may not be changed. This is
important when editing executable files and data files which depend on
their data being at exact offsets. When FIXED mode is on, this menu
item will be checked. The default is FIXED mode on.

HEXpert for Windows, Copyright  2002-2014, Hexpert Systems


page 15
Bytes Swapped - Selecting this options toggles the use of “byte
swapping”. In byte swapping mode, the least significant byte of a
multi-byte number is stored is the lower numbered address, and the
most significant byte is stored in the higher numbered address. For
example: the number 41394, which is A1B2 in hex, would be stored as
B2 A1 in a byte swapped system. In a system which is not byte
swapped, the number would be stored as A1 B2. The Intel 80x86
processors are byte swapped, so byte swapping is the default mode.
When byte swapping is selected, this menu item will be checked.

Set Display Width – This command will allow you to numerically set
the width of the displayed data in bytes. The dialog box shown in
Figure 4 is displayed:

Figure 4. Set Display Width Dialog Box

Configure Colors – This command will display a dialog box as shown


in Figure 5 allowing you to customize the colors of the various regions
of the editor window. The list on the left displays the region names.
Clicking one of the names in the list will display that item’s current
color in the large button. To change the color of the item, click the
large button. This will display the Windows standard color dialog,
allowing you to specify the new color.

HEXpert for Windows, Copyright  2002-2014, Hexpert Systems


page 16
Figure 5. Color Configuration Dialog

5.4 Search Menu.


The Search menu contains selections for searching for and replacing
data. The choices are:

Search - Select this item to start a search for data that you specify. The
program will display a dialog box allowing you to specify the data and
the format of that data to be found. See Section 9 for more information
on using the Search command.

Search & Replace - Select this item to start searching for data that you
wish to replace with new data. The program will display a dialog box
allowing you to specify the data and the format of the data to be
searched for and replaced. See Section 9 for more information on using
the Search & Replace command.

Search Next - This selection will repeat the last Search or Search &
Replace command from the current cursor position.

Goto Offset - Choosing this selection will display a dialog prompting


you for the new offset to go to. You can also select whether the entered
offset is in decimal or HEX (or OCT, BIN, or DEC). The offset can

HEXpert for Windows, Copyright  2002-2014, Hexpert Systems


page 17
originate from the beginning of the file (Absolute) or from the current
cursor position (Relative), depending on which option you select. Press
OK to move the cursor to the specified position. Figure 6 shows the
Goto Offset dialog.

Figure 6. Goto Offset Dialog

Goto Beginning of File – This command will move the current cursor
position to the beginning of the file.

Goto End of File – This command will move the current cursor
position to the end of the file.

5.5 Tools Menu.


The Tools menu contains miscellaneous commands used in HEXpert.
The available selections are:

Calculate Checksum on Selection – This command will calculate a


checksum on the selected data. The results are displayed with a dialog
box as shown in Figure 7.

HEXpert for Windows, Copyright  2002-2014, Hexpert Systems


page 18
Figure 7. Example Checksum Results

5.6 Help Menu.


The Help menu gives you further information about HEXpert on-line.
The available selections are:

Contents - This opens the HEXpert help file.

About - This displays a dialog showing the version number of the


HEXpert program, and how to get technical support.

HEXpert for Windows, Copyright  2002-2014, Hexpert Systems


page 19
6. Edit Area
Figure 8 shows the HEXpert Edit area. The edit area consists of three
columns. The left column is the offset of the data in the file. In
hexadecimal display mode, the offset is in hex. In octal mode, the
offset is in octal. In binary mode, the offset is in hex. In decimal
mode, the offset is in hex. Alternatively, the offset can be displayed in
decimal for all modes.

The center column displays the data in the current display mode, either
hexadecimal (HEX), octal (OCT), binary (BIN), or decimal (DEC).
Note that the coloring of the text indicates byte divisions, by alternating
blue and black columns.

The third column displays the data’s ASCII equivalent. The characters
displayed will depend on which font is selected. The OEM font will
display the standard ASCII set plus the extended characters containing
the line draw characters, boxes, Greek characters, etc. The ANSI font
will display the standard ASCII set plus the extended characters
containing special characters used in many non-English languages.
Note that any characters which have a blank display are represented by
a single “.” characters. In the OEM font, these are characters 00, 20,
and ff hex. In the ANSI font, these are 00 and 20 hex.

Figure 8. Main Edit Area

HEXpert for Windows, Copyright  2002-2014, Hexpert Systems


page 20
The edit area contains two cursors, represented by a red-background
box, pointing to the current editing location in either the data or its
ASCII equivalent. In the center column, the cursor will cover all of the
characters necessary to represent a single byte. In the ASCII area, the
cursor covers a single character. Clicking the mouse on either the data
or the ASCII equivalents will move the cursor to location pointed to by
the mouse.

To the right of the edit area is a scroll bar. Clicking the mouse on the
up-arrow will scroll the edit area down by one line. Clicking the down-
arrow will scroll the edit area up by one line. Clicking above or below
the thumb (the square block between the two arrows) will move page
by page through the file. To use the keyboard to move through the file,
use the cursor (arrow) keys and the PgUp and PgDn keys. To go to the
beginning of the file, move the thumb all the way to the top of the
scroll bar, or press Ctrl+PgUp or Ctrl+Home. To go to the end of the
file, move the thumb all the way to the bottom of the scroll bar, or press
Ctrl+PgDn or Ctrl+End.

HEXpert for Windows, Copyright  2002-2014, Hexpert Systems


page 21
7. Format Windows
The Format Windows are one of the more unique features of HEXpert.
These windows display at all times the current numeric equivalents of
the data currently pointed to by the cursor. This makes it very easy to
search and edit a data file using integers or floating point rather than
having to think in hex (or octal, binary, or decimal). Whenever the
cursor position changes, the format windows are updated with the
numeric equivalents of the new data pointed to by the cursor. Figure 9
shows the format windows with sample numbers.

Figure 9. Format Windows.

To edit the data using the numeric formats, press the TAB key to
switch the focus to the format windows. Repeatedly pressing TAB will
jump the cursor from window to window until eventually returning
focus to the main edit window. You can also click the mouse in the
window of the format you wish to edit. Then, simply edit the number
in the window and press Enter. The data bytes in the main edit window
will be updated to reflect the change in the numeric value you made.
No more using a hex calculator to find the hex equivalent of a number,
search for the hex value, calculating the hex value of the new number,
and editing the hex data. You can even do the Search or Search &
Replace commands (See Section 9) using these numeric formats instead
of hex (or octal, binary, decimal). When editing the numeric formats,
press ESCape at any time to return to the main edit window without
modifying the number.

Each of the formats is labeled, with S meaning Signed integer, U


meaning Unsigned integer, FP meaning Floating Point, and the
numbers meaning how many bits make up that number. Table 7-1
show details on each of the numeric formats.

HEXpert for Windows, Copyright  2002-2014, Hexpert Systems


page 22
Table 7-1. Numeric Formats

Format Description Range

S8 Signed 8-bit integer -128 to 127

U8 Unsigned 8-bit integer 0 to 255

S16 Signed 16-bit integer -32,768 to 32,767

U16 Unsigned 16-bit integer 0 to 65,535

S32 Signed 32-bit integer -2,147,483,648 to


2,147,483,647

U32 Unsigned 32-bit integer 0 to 4,294,967,295

FP32 32-bit floating point 3.4e-38 to 3.4e38

FP64 64-bit floating point 1.7e-308 to 1.7e308

HEXpert for Windows, Copyright  2002-2014, Hexpert Systems


page 23
8. Status Line
The Status Line shows the current conditions of the program. Figure
10 is an example of what the status line looks like.

Figure 10. Status Line.

The status line displays the following information (in order):

Cursor Position - This indicates the offset into the file that the cursor
currently points to. If the Decimal Offset Display option is selected in
the Options menu, this will be displayed as a decimal value; otherwise,
it will be displayed per the current numeric base (HEX, OCT, BIN, or
DEC).

Mode - This shows what the current Edit mode is. It will show either
ASC for ASCII mode, or HEX, OCT, BIN, or DEC for hexadecimal,
octal, binary, or decimal, respectively.

[ ] - The brackets indicate digits in the numeric base that have been
entered so far. For example: if you are in binary mode (Mode : BIN),
and you are entering the number 10110111, as you enter the digits, they
will be displayed between the brackets. When you enter the last digit,
the data will be updated in the main edit window, and the brackets will
be cleared, ready for the next byte. You can correct entry by using the
backspace key at any time prior to entering the last digit.

Mod - If the data has been modified, this will be displayed, reminding
you that changes have been made.

Size - This indicates the file size. If you insert or delete data, the size
will be updated to reflect the changes.

FIXED - If the FIXED mode is on, indicating that the file size cannot
be changed, the word FIXED will be displayed. If it is off, nothing will
be displayed.

HEXpert for Windows, Copyright  2002-2014, Hexpert Systems


page 24
9. Searching and Replacing Data
This section describes how to Search or Search & Replace data using
HEXpert.

9.1 Searching for Data.


To start a search, select the Search menu and select the Search item.
HEXpert will display the dialog box shown in Figure 11.

Figure 11. Search Dialog.

Enter the text to be searched for in the Text to Find field. If you are
doing an ASCII search, simply type in the text. For a numeric search,
enter the number to find. For a Hex, Octal, Binary, or Decimal search,
enter the data as it would be displayed in the main edit window (spaces

HEXpert for Windows, Copyright  2002-2014, Hexpert Systems


page 25
are ignored). Select the Direction to search (Forward or Backward),
and the starting point of the search (Origin). In the Format window,
choose the format of the data you are searching for. For ASCII
searches, click the ASCII Case Sensitive box to do a case sensitive
search. Click OK to begin the search. HEXpert will stop at each
occurrence of the found text, moving the cursor to that point. To
continue searching for additional occurrences, select Search Next from
the Search menu.

9.2 Search & Replace.


To start a search & replace, select the Search menu and select the
Search & Replace item. HEXpert will display the dialog shown in
Figure 12.

HEXpert for Windows, Copyright  2002-2014, Hexpert Systems


page 26
Figure 12. Search & Replace Dialog.

Enter the text to be searched for in the Text to Replace field. If you
are doing an ASCII search & replace, simply type in the text. For a
numeric search & replace, enter the number to find. For a Hex, Octal,
Binary, or Decimal search & replace, enter the data as it would be
displayed in the main edit window (spaces are ignored). Similarly,
enter the new text to replace with. Select the Direction to search
(Forward or Backward), and the starting point of the search (Origin).
In the Format window, choose the format of the data you are searching
for and replacing with. For ASCII searches, click the ASCII Case
Sensitive box to do a case sensitive search. To have the program
prompt you for each change, select the Prompt to Replace box. Click
OK to begin the search & replace. HEXpert will replace each

HEXpert for Windows, Copyright  2002-2014, Hexpert Systems


page 27
occurrence of the found text, with the replacement text, prompting you
for acknowledgment if selected.

HEXpert for Windows, Copyright  2002-2014, Hexpert Systems


page 28
10. Exporting Binary as ASCII
The Export Binary as ASCII function is used when you need to export
arrays of numeric data and save them as an ASCII file. The data is
exported as a vertical column of ASCII formatted numbers. When you
select the Export Binary as ASCII menu item from the File menu, the
dialog box shown in Figure 13 is displayed.

Figure 13. Export Binary as ASCII Dialog.

HEXpert for Windows, Copyright  2002-2014, Hexpert Systems


page 29
The Offset field is used to specify the starting location of the data
array. The Count field is the number of data items to export. If you
wish to specify the ending offset instead of the count, precede the count
value with the “@” symbol. HEXpert will take the count value as a
second offset, and compute the count for you. The Skip field specifies
how many bytes to skip between data items. Each of these fields can
be specified in either decimal or the current base mode (HEX, OCT,
BIN, or DEC). The Format options are used to select the numeric
format of the data to be exported. If you check the Export index box,
HEXpert will place an index, starting with zero, in a column preceding
the data. This is useful if you are exporting the data to a file so that it
can be plotted. The index can be used as domain data. Additionally,
the file offset can be added to the index by checking the Add offset to
index box. Check the Export As Hex box to export the data as HEX
(or OCT, BIN, or DEC) instead of decimal. You can swap the bytes
using the Swap Bytes checkbox. You can prefix a “0x” to each value,
which is useful for exporting data to be used as C language constants,
by checking the Hex use 0x prefix checkbox. For further flexibility,
you can enter text into the Prefix and Suffix boxes and the text will be
prepended or appended to each value. To output the data in multiple
columns, change the Columns value to a number greater than 1.

You can choose one of three delimiters. The delimiter is used between
columns of data when the data array is being appended side-by-side to
an existing file. Click OK to continue. A dialog box will be displayed,
allowing you to select the path and name of the exported file. If the
selected file exists, the dialog box in Figure 14 is displayed. This gives
you several options as to how to handle the positioning of the newly
exported data.

The Append side-by-side option allows you to append the data in a


column next to the existing data in the file. This is the case where the
delimiter will be used to separate the columns.

The Append below option will add the column to the bottom of the
existing data in the file.

The Replace option will replace the existing data in the file,
overwriting the old data with the newly exported data.

Alternatively, you can cancel the operation.

HEXpert for Windows, Copyright  2002-2014, Hexpert Systems


page 30
Figure 14. Export File Exists Dialog.

HEXpert for Windows, Copyright  2002-2014, Hexpert Systems


page 31
11. Printing
Once the Print menu item is selected, the following dialog box in
Figure 15 will be displayed:

Figure 15. Print Dialog

Entire File - When this check box is selected, the entire file will be
printed. This disables the Offset and Count options.
The Offset specifies the starting point for the print. When the dialog
box appears, the offset will contain the current cursor position. You
can also select the numeric format for the offset.
The Count specifies the length to print (bytes). You can also select the
numeric format for the count. Note: if you would rather specify a
second offset instead of a count, precede the count with the "@"
symbol. HEXpert will take the value as a second offset and calculate
the count for you.
After completing the Print Dialog, press the OK button. The windows
print dialog will then be displayed, allowing the user to select a printer,
page orientation, etc. Once OK is selected from the windows print
dialog, the printing will proceed.

HEXpert for Windows, Copyright  2002-2014, Hexpert Systems


page 32
12. Keyboard Reference
File
New F4
Open F3
Open with New Window Alt+F3
Save F2
Print Alt+P
Exit Alt+X

Edit
Insert Byte INS
Delete Byte DEL
Toggle Edit Mode Alt+M
Mark Selection Start Ctrl+LeftClick
Mark Selection End Ctrl+RightClick
Block Fill Alt+K
Block Delete Alt+DEL
Block Cut to Clipboard Ctrl+X
Block Copy to Clipboard Ctrl+C
Block Paste from Clipboard Ctrl+V
Block Paste Over from Clipboard Ctrl+O

Options
Hexadecimal Alt+H
Octal Alt+O
Binary Alt+B
Decimal Alt+D
Decimal Offset Display Alt+0
Line Number Display Alt+#
Fixed Length Alt+L
Bytes Swapped Alt+W
OEM Font Alt+1
ANSI Font Alt+2
Set Display Width Alt—

Search
Search Alt+S
Search Replace Alt+R
Search Next Alt+N
Goto Offset Alt+G

HEXpert for Windows, Copyright  2002-2014, Hexpert Systems


page 33
Goto Beginning of File Ctrl+PgUp, Ctrl+Home
Goto End of File Ctrl+PgDn, Ctrl+End

Main Edit Window


Right 
Left 
Up 
Down 
Tab Tab
Backspace 
Page Up PgUp
Page Down PgDn
Begin File Ctrl+PgUp or Ctrl+Home
End File Ctrl+PgDn or Ctrl+End

Format Windows
Right 
Left 
Tab Tab
Backspace 
Enter 
Escape ESC

HEXpert for Windows, Copyright  2002-2014, Hexpert Systems


page 34

You might also like