Modify a register content, Modify index or accumulator register content, Modify bit register content – Freescale Semiconductor Microcontrollers User Manual

Page 210

Advertising
background image

How To...

How to Work on the Register

210

Microcontrollers Debugger Manual

Modify a Register Content

The Debugger allows you to change the content of indexes, accumulators or bit registers.

Modify Index or Accumulator Register Content

Double-click a register. The current register content is highlighted and may be edited.

Figure 6.4 Modifying Index or Accumulator Register Content

1. The format of the input value depends on the format selected for the data component.

If the format of the component is Hex, the input value is treated as a Hex value. If the
input value is 10 the variable is set to 0x10 = 16.

2. To validate the input value, either press the Enter or Tab key, or select another

register.

3. Validating an input value using the Tab key automatically highlights the content of the

next register in the component. You can edit this register also.

4. To restore the previous register content, press the Esc key.

Modify Bit Register Content

In a bit register, each bit has a specific meaning: a Status Register (SR) or Condition Code
Register (CCR).

Mnemonic characters for bits that are set to 1 appear in black, whereas mnemonic
characters for bits that are cleared to 0 appear in gray.

You can toggle single bits inside the bit register by double-clicking the corresponding
mnemonic character.

Advertising