Command Post Home Page : F2 |
The Hex Editor menu item allows you to control the editor in a variety of
ways. Many options are available to help you debug your applications and related
variables.
|
|
The Jump submenu allows you to jump to and view many different important locations in the calculator's memory.
The Jump To Dialog displayed by this option allows you to jump to any unsigned long absolute address, an offset from the current address (relative address), or handle on your calculator.
The Jump To dialog displayed by this option allows you to directly access and/or monitor a wide variety of AMS global variables. After selecting the AMS global variable, and any relevant information, you will be taken to the requested memory location. The DIAMOND UP key combination will take you to the beginning of the variable, and the DIAMOND DOWN key combination will take you to the end of the variable if Command Post is able to determine the length of the variable.
There are several cases that need special attention:
TIP: You can use this dialog to jump to the EV_errorCode global variable. Next, bring up the Edit dialog box, and choose WORD, change the mask to NONE, and type a number into the New Value box. When you press enter, the AMS will throw the error number you chose! This is a great way to find out what different error numbers mean.
The other addresses dialog allows you to jump to addresses that do not fit well under the Jump To AMS Global Variables dialog.
Description of the Options:
Choosing this option is the same as bringing up the var-link screen with the 2nd - VarLink combination. Choose a variable, and press ENTER. You will be presented with a choice: Data or SymEntry. Selecting Data will take you to the data that the variable holds; the DIAMOND + UP / DOWN key combinations will be updated to reflect the beginning and end of the variable's data respectively. Selecting Sym Entry will take you to the SYM_ENTRY structure of the variable.
One possible use of this is to change the size of a variable's handle. By jumping to the SYM_ENTRY structure, and then to the last WORD in the structure, you can locate the handle that is associated with the variable.
The Find tool-set is a very powerful feature. It allows you to search Forewords and Backwards for Byte, Word, Long, and String values. The search begins at the current cursor address, and continues until a match is found, or address which you specify as End Address is reached. The ON key may be used at any time to cancel a search. You may search Forewords and Backwards through memory.
Note: When you are searching for values, sometimes, the find feature will stop at an address, and the hex editor will not display the value that you were searching for. This is because there are some locations in memory that are highly volatile - they change frequently. The find feature found the value that you were looking for, but the hex editor did not display it because it had changed in the short amount of time that it takes to switch from Find Mode to the Hex Edit Mode.
Note: Because the find feature is not limited, if you search for a specific string, it will be found at least once because Command Post keeps the string in a buffer of its own - you may have found the buffer that Command Post uses!
The Bookmarks sub-menu give you access to Command Post's internal bookmarks. Whenever you jump to a variable with the var-link or the Jump menu item, Command Post updates Bookmarks 1 and 2 so that they point to the beginning and end of the data structure being edited. You may manually set these bookmarks using the Set Bookmark functions. Bookmark1 has a shortcut: Bookmark2 has a shortcut: NOTE: For best results when using bookmarks, please ensure that Bookmark1 points to a lower address than Bookmark2. |
![]() |
The Edit dialog is an integral and powerful feature of Command Post. It combines the ability to edit Byte, Word, Long, and String values with the expression evaluation power of the AMS, and the ability to apply bit masks such as AND, OR, and XOR.
When editing numerical values (Byte, Word, Long), Command Post will parse the input to produce a result, and then it will round the result (if necessary) down to the nearest whole number (Example: 1.7 is rounded to 1). Expressions such as 3+x are valid when x is defined! You can even use Command Post's peek and poke TI-Basic extensions in this (and every other dialog in Command Post that accepts numerical input) dialog.
![]() |
![]() |
Pressing ENTER will place the value 0h18 (24) at the current cursor location. Pressing ESC will cancel the operation. | Pressing ENTER will place the ASCIIZ formatted string "RedPillNeo" at the current cursor location. Pressing ESC will cancel the operation. |
TIP: In the hex editor, press the ENTER key to use the edit dialog.
The Resize Handle dialog is an especially powerful tool that requires extreme caution with its use. Given any handle number, and size, it resizes the handle so that it uses the amount of space requested. If an error condition is encountered, you will be notified with an error dialog.
One of the primary uses of the Resize Handle feature is to make variables larger.
The last word in the SYM_ENTRY structure for a variable is its handle.
Refresh (also available via F5) completely redraws the hex editor display. The editor will redisplay each byte value on the screen. This feature is useful when you are viewing a volatile memory area, and need the current values, or are unsure if the memory that you are viewing has changed.
The Disassembly View displays ASM equivalent of the data pointed to by the Hex Editor cursor. For more information about the disassembler, please visit the Disassembler Special Topics page.
Note: The disassembly will be clipped when the calculator is running in LEFT-RIGHT split screen mode. For best results, always use the FULL or TOP-BOTTOM screen modes.