Modify content of memory address, How to consult – Freescale Semiconductor Microcontrollers User Manual

Page 212

Advertising
background image

How To...

Modify Content of Memory Address

212

Microcontrollers Debugger Manual

Modify Content of Memory Address

The Debugger allows you to change the content of a memory address. Double-click the
memory address you want to modify. Content from the current memory location is
highlighted and can be edited.

1. The format for the input value depends on the format selected for the Memory

component. If the format for the component is Hex, the input value is treated as a Hex
value. An input value of 10 sets the memory address to 0x10 = 16.

2. Once a value has been allocated to a memory word, it is validated and the next

memory address is automatically selected and can be edited.

3. To stop editing and validate the last input value, you can either press the Enter or Tab

key, or select another variable.

4. To stop editing and restore the previous memory value, press the Esc key.

How to Consult Assembler Instructions
Generated by a Source Statement

The Debugger provides an on-line disassembly facility, which allows you to disassemble
the hexadecimal code directly from the Debugger code area. Online disassembly can be
performed in one of the following ways:

Using Drag and Drop

1. In the Source component, select the section you want to disassemble.

2. Drag the highlighted block to the Assembly component.

Holding down the left mouse button and pressing the R
key

1. In the Source component window, point to the instruction you want to disassemble.

2. Hold down the left mouse button and press the R key.

The disassembled code associated with the selected source instruction is grayed in the
Assembly component.

Advertising