
Renesas E8 Emulator
Introductory Guide for H8/300H Tiny
(3) The [Add Watch] dialog box will appear.
Enter "a" (symbol name) in the [Variable or expression:] edit box and click the [OK] button.
Figure 6.29 Specifying a Symbol Name
REJ06J0008-0100/Rev.1.00 March 2007 Page 35 of 43
When specifying a local variable in C language as a watch symbol, note that the variable has a scope (a valid range).
A local variable is only valid while the program counter (PC) points to a location in the function that declared the
local variable.
The symbol "a" specified in this example is a local variable and cannot be watched when a break occurs in another
function.
(4) The Watch window shows the contents of symbol "a".
Figure 6.30 Contents of the Symbol Specified in the Watch Window
The Type column in the Watch window shows that symbol "a" is a long-type array (long[10]).
On the memory, a[0] is allocated to address H'FF40, a[1] is allocated to address H'FF44, and the last element a[9] is
allocated to address H'FF64.
The [Value] column (the value of each array element) shows that the elements are arranged in descending order as a
result of program execution; that is, the array elements have been created at random (line 38), sorted in ascending
order (line 44), and then sorted in the opposite order (line 45).
Comentarios a estos manuales