This menu option opens or closes the ‘Code’ display. This will display the assembly codes for the function currently being executed.
If you click in this window with the right mouse button, a contextual menu will appear that allows you to mix C code with assembly instructions (the ‘Source annotation’ menu option) or display the code bytes, i.e., the exact instructions without decoding by the disassembler. When this window is open, you can reset the program counter to any desired location within this window. Choose the ‘Set next instruction’ menu item from the contextual menu. This menu appears when you click anywhere in this window with the right mouse button.
|
|
The name of the currently active function is shown in the title, its corresponding file, and the machine address where execution has stopped. Next there is a three-column display with the machine codes to the left, followed by the assembler mnemonics in lcc assembler syntax. |
|
|
The C source lines are mixed with the assembly display. The line numbers are in square brackets to the left. |
If you are interested in the exact code bytes that are stored and not just their mnemonics, you can view the hexadecimal numbers shown at the left of the assembler mnemonics.
When the ‘Code’ window is open, the debugger will single step through each assembler instruction instead of single stepping through each line of the source program.