Section 6 Tutorial; Introduction - Renesas H8 Series User Manual

Microcomputer development environment system
Hide thumbs Also See for H8 Series:
Table of Contents

Advertisement

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.

Section 6 Tutorial

119

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8/300h tiny seriesH8/3664 e6000

Table of Contents