S5U1C17001C ManUal
EPSOn
3-41
(C COMPilEr PaCkagE fOr S1C17 faMily) (Ver. 1.5.0)
3 SOfTWarE DEVElOPMEnT PrOCEDUrES
3
SoftDev
If the [Local Variables] window is still open, you can verify that the variable '
j
' increments each time the pro-
gram breaks. Similarly, you can verify that the variable '
i
' displayed in the [Watch Expressions] window incre-
ments every other time the program is run, indicating that the program operates exactly as expected.
Step 67
: Click the [Breakpoints] button.
Examine the [Breakpoints] window. The information on the breakpoint we set above is displayed in it, although
no information was displayed there earlier. The check mark shown at the beginning of the information means
that the breakpoint is currently active. When the check box is unselected, the breakpoint is temporarily dis-
abled: The next time the program is run, it will no longer halt at the position at which it halted earlier. Selecting
the check box reenables the breakpoint.
Step 68
: Click on the
n
mark that is displayed in the [Source] window to turn it off.
This clears the breakpoint.
When the
n
mark disappears, the line is marked with "-" back again. This "-" mark means that the line can be
set to be a breakpoint. The lines lacking this mark are source lines not converted to actual executable instruc-
tions when the source was compiled and assembled. No breakpoints can be set in these lines.
In addition, other break facilities are available, including a temporary break effective only once the program is
run. Discussions of these break facilities are omitted here. For detailed information on break facilities, refer to
Section 10.6.6, "Break Functions".
If any problem in program behavior is detected, the program operation should be verified with greater care.
As the last step of the tutorial, we will proceed through the program by executing one source line at a time.
To proceed through the program step-by-step
Step 69
: Click the [Step] button in the toolbar.
The source line highlighted in green in the [Source] window (the line at which the current PC address exists) is
executed, and the highlighting moves to the next source line to be executed.
By repeating Step 69, we can execute the program one step or one source line at a time. If the program has no
problems, you will see that the displayed register values, etc. change correctly at each step.
The [Step] button executes the program one source line at a time. To execute the program one instruction (mne-
monic) at a time, use the [Step Asm Inst] button.
[Step Asm Inst] button
Step 70
: Click the [Next] button in the toolbar.
Repeat Step 70 to verify differences between this and the [Step] button in the [Source] window.
When the program is run with the [Next] button, you will see that although the function
sub()
was skipped,
the value of the variable '
i
' is updated, indicating that the instructions in the function have all been executed.
The [Next] button operates in basically the same way as the [Step] button, except that the [Next] button skips
functions and subroutines (i.e., executes a function or subroutine as one step, without stopping at every instruc-
tion). If you do not need to debug the subroutines instruction by instruction, use the [Next] button instead.
Содержание S5U1C17001C
Страница 6: ......
Страница 17: ...1 General S5U1C17001C Manual 1 General ...
Страница 18: ......
Страница 21: ...1 2 Install S5U1C17001C Manual 2 Installation ...
Страница 22: ......
Страница 29: ...3 SoftDev S5U1C17001C Manual 3 Software Development Procedures ...
Страница 30: ......
Страница 103: ...4 SrcFiles S5U1C17001C Manual 4 Source files ...
Страница 104: ......
Страница 121: ...5 IDE S5U1C17001C Manual 5 gnU17 iDE ...
Страница 122: ......
Страница 365: ...6 Compiler S5U1C17001C Manual 6 C Compiler ...
Страница 366: ......
Страница 385: ...7 Library S5U1C17001C Manual 7 library ...
Страница 386: ......
Страница 404: ...7 18 EPSON S5U1C17001C Manual C Compiler Package for S1C17 Family Ver 1 5 0 7 liBrary THIS PAGE IS BLANK ...
Страница 405: ...8 Assemblr S5U1C17001C Manual 8 assembler ...
Страница 406: ......
Страница 438: ...8 32 EPSON S5U1C17001C Manual C Compiler Package for S1C17 Family Ver 1 5 0 8 aSSEMBlEr THIS PAGE IS BLANK ...
Страница 439: ...9 Linker S5U1C17001C Manual 9 linker ...
Страница 440: ......
Страница 448: ...9 8 EPSON S5U1C17001C Manual C Compiler Package for S1C17 Family Ver 1 5 0 9 linkEr THIS PAGE IS BLANK ...
Страница 449: ...10 Debugger S5U1C17001C Manual 10 Debugger ...
Страница 450: ......
Страница 625: ...10 174 EPSON S5U1C17001C Manual C Compiler Package for S1C17 Family Ver 1 5 0 10 DEBUggEr THIS PAGE IS BLANK ...
Страница 626: ...11 Tools S5U1C17001C Manual 11 Other Tools ...
Страница 627: ......
Страница 695: ...11 68 EPSON S5U1C17001C Manual C Compiler Package for S1C17 Family Ver 1 5 0 11 OTHEr TOOlS THIS PAGE IS BLANK ...
Страница 696: ...S1C17 Family C Compiler Package Quick Reference Reference ...