
Managing Register Data
7-10
7.5
Managing Register Data
In mixed and assembly modes, the debugger maintains a CPU window that
displays the contents of individual registers. For details, see
CPU window on
page 3-16.
CPU
A0
00006ce8
B0
00000000
A1
00000000
B1
00000000
A2
00000100
B2
00000000
A3
ffffffdd
B3
00000001
A4
00000002
B4
00000100
A5
00000001
B5
00000000
A6
00007754
B6
00000000
A7
00000000
.
Register
name
Register
contents
The debugger provides commands that allow you to display and modify the
contents of specific registers. You can use the data-management commands
or the debugger’s overwrite editing capability to modify the contents of any reg-
ister displayed in the CPU or WATCH window. For more information, refer to
Section 7.3,
Basic Methods for Changing Data Values.
Displaying register contents
The main way to observe register contents is to view the display in the CPU
window. However, you may not be interested in all of the registers; if you’re in-
terested in only a few registers, you might want to make the CPU window small
and use the extra screen space for the DISASSEMBLY or FILE display. In this
type of situation, there are several ways to observe the contents of the selected
registers.
-
If you have only a temporary interest in the contents of a register, you can
use the ? command to display the register’s contents. For example, if you
want to know the contents of A0, you could enter:
? A0
The debugger displays A0’s current contents in the display area of the
COMMAND window.
-
If you want to observe a register over a longer period of time, you can use
the WA command to display the register in a WATCH window. For
example, if you want to observe the status register, you could enter:
wa ST0,Status Register 0
This adds the ST0 to the WATCH window and labels it as
Status Register
0. The register’s contents are continuously updated, just as if you were ob-
serving the register in the CPU window.
When you’re debugging C in auto mode, these methods are also useful be-
cause the debugger doesn’t show the CPU window in the C-only display.
Содержание TMS320C6 Series
Страница 10: ...x ...
Страница 20: ...xx ...
Страница 118: ...4 20 ...
Страница 144: ...6 16 ...
Страница 164: ...7 20 ...
Страница 170: ...8 6 ...
Страница 284: ...B 18 ...
Страница 290: ...C 6 ...