<pclass="rvps2"><spanclass="rvts6">The Hex Editor is a very powerful memory viewing/editing tool, it obsoletes the Memory Viewer tool from the FCE Ultra and FCEU Rerecording branches.</span></p>
<pclass="rvps2"><spanclass="rvts6">It can do a wide range of things. It allows you to view the entire RAM & ROM contents in a resizable dialog window. It makes it easy to edit the game's RAM, PPU memory, and even its currently-loaded ROM data by simply typing in values in the editor. You can also "freeze" parts of RAM (to prevent the game from modifying the data there), search for data (Ctrl+F), and even copy and paste data to/from the clipboard. Furthermore, table files are supported, so you can edit a game's text in real-time and see the result immediately.</span></p>
<pclass="rvps2"><spanclass="rvts49">1. NES MEMORY</span></p>
<pclass="rvps2"><spanclass="rvts6">This allows you to directly edit all of the NES address space (System Bus - $0000-$FFFF). While you can easily modify RAM, or write directly to registers by typing in data, you cannot modify ROM data ($8000-$FFFF) itself. This is because most mappers have registers which are located in this space; so writing there can trigger mapper operations that may cause the game to crash or glitch if you don't know what you're doing. If you want to edit the ROM itself, right-click on the offset and select "Go here in ROM file"; that will take you directly to where you need to be so you can start editing. You can also freeze RAM by clicking on it with the middle mouse button, or by using the right-click menu. This works by adding it directly to the Cheat List, which you can see from the </span><aclass="rvts81"href="CheatSearch.html">Cheat Console</a><spanclass="rvts6">. Finally, the right-click menu can be used to quickly add a read or write breakpoint to the debugger. When adding a breakpoint to the range of ROM addresses ($8000-$FFFF), the Hex Editor also takes into account the number of the bank in which the byte is located.</span></p>
<pclass="rvps2"><spanclass="rvts6">This allows you to edit the ROM file in real time, i.e. while the game is running. If you make a mistake, press Ctrl+Z or Edit->Undo to undo your change (then load a save-state if the game crashed).</span></p>
<pclass="rvps2"><spanclass="rvts6">The Hex Editor also has support for table files (*.tbl) to map bytes to text. Each line consists of four characters of the form "xx=y", where "xx" is the hex value, and "y" is the character that that value represents. I have also added an extension to represent the Return key: xx=ret whereby pressing the Return key will enter that value into the ROM. You can copy/paste data or text by selecting it and using Ctrl+C (to copy) and Ctrl+V (to paste). Plus, there is an Edit->Find feature that you can use to search for data. This feature should be fairly intuitive, so I won't bother to explain it.</span></p>
<pclass="rvps2"><spanclass="rvts6">When you're done editing, remember to save the ROM file (File->Save) or your changes will be lost when you close the ROM.</span></p>
<pclass="rvps2"><spanclass="rvts6">NES memory from $8000-$FFFF is where the game's PRG-ROM code is mapped. Whenever you type in a value in the NES memory editor, it effectively writes that value to that address. Many games use mappers, which are usually accessed by writing to $8000-$FFFF (which is read-only)... and if *you* were to do so, it may trigger a bankswitch, which could easily make the game crash. In any event, doing so will not modify the ROM itself. What you *can* do, though, is edit the PRG-ROM itself by right-clicking on the offset you wish to edit, and selecting "Go here in the ROM file", which should take you to that spot in the ROM instead, where you can change the data at instead.</span></p>
<pclass="rvps2"><spanclass="rvts6">Bookmarked RAM addresses are highlighted by </span><spanclass="rvts83">green color</span><spanclass="rvts6">.</span></p>
<pclass="rvps2"><spanclass="rvts6">Freezed RAM addresses are highlighted by </span><spanclass="rvts82">blue color</span><spanclass="rvts6">.</span></p>
<pclass="rvps2"><spanclass="rvts6">Modified ROM bytes are highlighted by </span><spanclass="rvts84">red color</span><spanclass="rvts6">.</span></p>
<pclass="rvps2"><spanclass="rvts6">If you have the </span><aclass="rvts81"href="CodeDataLogger.html">Code/Data Logger</a><spanclass="rvts6"> running, bytes that were logged will be colored:</span></p>
<pclass="rvps2"><spanclass="rvts6">This feature of the Hex Editor can draw your attention to bytes that changed their value since the last frame, or since the last update of Hex Editor window (if "Fade when paused" option is enabled).</span></p>
<pclass="rvps2"><spanclass="rvts6">If you don't need this feature, you can switch it off in the "Highlighting" submenu.</span></p>
<pclass="rvps2"><spanclass="rvts6">You can customize this feature by changing "fading period".</span></p>
<pclass="rvps2"><spanclass="rvts6">IMPORTANT NOTE: this feature does not track the actual changes of RAM. It works by simply comparing current values to previously displayed values of the same addresses. That's why the feature works with RAM/PPU/OAM/ROM as well.</span></p>
<pclass="rvps4"style="clear: both;"><spanclass="rvts18">Created with the Personal Edition of HelpNDoc: </span><aclass="rvts19"href="https://www.helpndoc.com">Easy EBook and documentation generator</a></p>