Getting Started

8051 Hex Code Visualizer is a very simple application where there is nothing to learn about the app if you are already familiar with INTEL 8051 Microcontroller programming and if you know that your C or Assembly compiler generates Hex Code for uploading to your Microcontroller. So, once you know that, then, this tool is a helping tool that will let you visualize your compiler generated Hex code and therefore let you understand deeply about the 8 bit Instruction Set for the 8051 Microcontroller.

Once you started your application, you will see a sample Hex code already loaded in the window. You can open an existing Hex Code file, or directly copy paste your Hex code to this box.

Main_ Hex Pad 1

You can check your hex code's validity by clicking the Validate button. So, once you have loaded your hex code, you can click the 'Parse' button and this application will parse the hex code and show 2 new Tabs. One tab is called 'Memory Map View' and another tab is called 'Parsed View'.

The Memory Map view is the windows that will give you a complete idea about how the instruction set resides in Code Memory. For example, if you have an instruction in one memory block and then, if you have next instruction after some empty space in memory, then, this window will show you those empty spaces. It will show the memory address in order, so the view will start from the address 0000.

In this memory map view, you will see the instruction code is decompiled to Assembly code and the code is placed in the address box, and also you can understand which part is Instruction Code and Which part is data. If you hover your mouse over the boxes, you will get more information like, which data is 'Special Function Register', which address is Interrupt Vector etc. Not only that, all instruction code has a help icon, if you click that icon, a popup window will show up which is a dictionary of the 8 bit instruction code.


Tool tip on Data box:

tooltip 2

Tool tip on Address block:

tooltip 3

The more you explorer the boxes with mouse over, the more tool-tip you will find helpful. The view is actually a tool-tip oriented learning aid. Finally, the clicking the help icon will invoke the Reference Dictionary Dialog which is another learning tool for you. This assembly reference window will give you all the details about the instruction code. Not only that, you can query for other instruction in that reference dictionary window.


Now let see the Parse View window. The Parsed view window is not very different than the Memory Map View. You will find the same design pattern for instruction code, data, tooltip, reference dictionary things in this view same like the Memory Map view. Only difference is, it wont show the instruction code serially according to the address, rather it will show the table as it encounted in the hex code. So, in your hex code, if you have instruction for a higher memory address at the beginning and lower memory address at the end, the parsed view will show the instruction code for the higher memory address at the begining and the lower memory address at the end. Also the Parsed view wont show you the empty spaces. So, the Parsed view is good for a quick Decompiled Understanding of your hex code where the Memory Map view is good for realizing the complete physical picture of the code memory.


Finally, you can invoke the Instruction Set Reference Window anytime from the Main Window clicking this button:


Oh yes, there is a little tool for converting one number system to another number system (i.e. decimal / binary / hex ), hopefully it will also help you to quickly convert a number you see in this application to the number system that you can grasp easily.

Number_ Converter

Last updated on 14 September 2014, Sunday, 9:06:03 PM
If you have any questions or concerns about this tutorial, Please feel free to share your comment.