Section 6 Tutorial
6.1 Introduction
This section describes the main functions of the emulator by using a tutorial program.
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 main 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.
The file tutorial.c contains source code for the tutorial program. The file Tutorial.x30
is a compiled load module in the IEEE695 format.
Notes:
1. After recompilation, the addresses may differ from those given in this section.
2. The file Tutorial.cpp contains source code for the tutorial program of the H8 family
devices. The file Tutorial.abs is a compiled load module in the Elf/Dwarf2 format.
93