Freescale Semiconductor Microcontrollers User Manual

Page 812

Advertising
background image

Debugger Engine Commands

Debugger Commands

812

Microcontrollers Debugger Manual

RD

The RD command displays the content of specified registers. The display of a register
includes both the name and hexadecimal representation. If the specified register is not a
CPU register, then it looks for this register in a register file as an I/O register. This file is
called: MCUIxxxx.REG (where xxxx is a number related to the MCU).

NOTE

This command is processor/derivative specific and does not display banked
registers if the processor does not support banking.

Usage

RD { <list> | CPU | * }

where list is a list of registers to be displayed. Registers to be displayed are
separated by a space. When RD CPU is specified, all CPU registers are displayed.
If no CPU is loaded, No CPU loaded is displayed as an error message.

When * is specified, the RD command lists the content of the register file that is
currently loaded. If no register file is loaded, following error message is displayed:
No register file loaded.

When there is no parameter, the previous RD command is processed again. If there
is no previous RD command, all CPU registers are displayed.

If list is omitted, the list and any other parameters of the previous RD command
are used.

For the first RD command of a session, all CPU registers are displayed.

Components

Debugger engine.

Example 1:

in>rd a hx

A=0x14

HX=0x2

Example 2:

in>rd cpu

A=0x0 HX=0x450 SR=0x70 PC=0xF04E SP=0xFF

Advertising