
Displaying Your Source Programs (or Other Text Files)
6-4
6.2
Displaying Your Source Programs (or Other Text Files)
The debugger displays two types of code:
-
It displays
assembly language code in the DISASSEMBLY window in auto,
assembly, or mixed mode.
-
It displays
C code in the FILE window in auto and mixed modes.
The DISASSEMBLY and FILE windows are primarily intended for displaying
code that the program counter (PC) points to. By default, the FILE window dis-
plays the C source for the current function (if any), and the DISASSEMBLY
window shows the current disassembly.
Sometimes it’s useful to display other files or different parts of the same file;
for example, you may want to set a breakpoint at an undisplayed line. The
DISASSEMBLY and FILE windows are not large enough to show the entire
contents of most assembly language and C files, but you can scroll through
the windows. You can also tell the debugger to display specific portions of the
disassembly or C source.
Displaying assembly language code
The assembly language code in the DISASSEMBLY window is the reverse
assembly of program-memory contents. (This code doesn’t come from any of
your text files or from the intermediate assembly files produced by the
compiler.)
MEMORY [PROG]
00007ce0
07d5142a
00007ce4
0780606a
00007ce8
0007fe2a
00007cec
0000006a
00007cf0
07bc01e2
00007cf4
07bf07a2
00007ce0
07d5142a
c_int00
MVK,S2
0xfffaa28,B15
00007ce4
0780606a
MVKH,S2
0xc00000,B15
00007ce8
0007fe2a
MVK,S2
0x0ffc,B0
00007cec
0000006a
MVKH,S2
0x0000,B0
00007cf0
07bc01e2
ADD,S2
B0,B15,B15
00007cf4
07bf07a2
AND,S2
0xfffffff8,B15,B15
DISASSEMBLY
Addresses
Contents of memory
(object code)
Disassembly of object
code in memory
Содержание TMS320C6 Series
Страница 10: ...x ...
Страница 20: ...xx ...
Страница 118: ...4 20 ...
Страница 144: ...6 16 ...
Страница 164: ...7 20 ...
Страница 170: ...8 6 ...
Страница 284: ...B 18 ...
Страница 290: ...C 6 ...