Renesas M16C PC4701 Network Card User Manual


 
6 Tutorial
61
6. Tutorial
6.1 Introduction
This section describes the main functions of this debugger by using a tutorial program. The tutorial
programs are installed to the directory ¥WorkSpace¥Tutorial of the drive you installed
High-performance Embedded Workshop. There are workspaces for each targets and each MCUs.
Please select the corresponding one to your system, and open the workspace file (*.hws) from the
menu [Open Workspace...].
The tutorial program is based on the C program that sorts ten random data items in ascending or
descending order.
The tutorial program performs the following actions:
The tutorial function generates random data to be sorted.
The sort function sorts the generated random data in ascending order.
The change function then sorts the data in descending order.
Note
After recompilation, the addresses may differ from those given in this section.
When using the assembler package for 740 family
The tutorial program for the assembler package for 740 family is prepared. If you use the assembler
package for 740 family, please use it.
Please read this tutorial with replacing function names with subroutine name. (e.g. replace
"function sort()" with "subroutine sort")
About the source file name, also please replace it with the corresponding one.
The diagrams in this tutorial are for C program. The displayed diagram for the assembler
program may different from them.
Step9 and Step12 are descriptions of C program.