119
Section 6 Tutorial
6.1 Introduction
The following 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 repeatedly calls the
tutorial
function to repeat sorting.
•
The
tutorial
function generates random data to be sorted and calls the
sort
and
tutorial
functions
in order.
•
The
sort
function enters the array where the random data generated by the
tutorial
function are stored,
and sorts them in ascending order.
•
The
change
function then sorts the array, which was sorted in ascending order by the
sort
function, in
descending order.
The file
tutorial.cpp
contains source code for the tutorial program. The file
Tutorial.abs
is a
compiled load module in the Dwarf2 format.
Notes: 1. After recompilation, the addresses may differ from those given in this section.
2.
This section describes general usage examples for the emulator. For the specifications of particular
products, refer to section 8, Software Specifications Specific to This Product, or the online help.
3.
The operation address of
Tutorial.abs
attached to each product differs according to products.
Replace the address used in this section with the relevant address in each product after checking that
it is placed on the corresponding line of the source program.
4.
In this tutorial, the H8S/2646 E6000 emulator is taken as an example. File paths or the appearance of
figures differs according to products.
Содержание H8 Series
Страница 4: ......
Страница 6: ......
Страница 19: ...vii D 1 System Set Up for Test Program Execution 241 D 2 Diagnostic Test Procedure Using Test Program 242...
Страница 20: ...viii...
Страница 21: ...Emulator Debugger Part...
Страница 22: ......
Страница 26: ...4...
Страница 40: ...18...
Страница 46: ...24...
Страница 148: ...126 Figure 6 8 Editor Window Break Status...
Страница 202: ...180...
Страница 250: ...228...
Страница 262: ...240...
Страница 271: ......
Страница 272: ...1753 Shimonumabe Nakahara ku Kawasaki shi Kanagawa 211 8668 Japan H8 3664 E6000 Emulator REJ10J1133 0600 User s Manual...