Section 6 Tutorial; Introduction - Renesas SH-4A User Manual

Microcomputer development environment system
Hide thumbs Also See for SH-4A:
Table of Contents

Advertisement

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.cpp contains source code for the tutorial program. The file
Tutorial.abs is a compiled load module in the Dwarf2 format.
Notes: 1. Operation of Tutorial.abs is big endian. For little-endian operation,
Tutorial.abs must be recompiled. 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 the additional document, Supplementary Information
on Using the SHxxxx, or the online help.
3.
The operation address of Tutorial.abs attached to each product differs depending
on the product. Replace the address used in this section with upper 16 bits of the
actually loaded address.
Example: Although the PC address is H'0000006c in the manual, enter H'0C00xxxx
when the loaded address of Tutorial.abs is H'0C00006c (upper bit H'0000 is
changed to H'0C00).

Section 6 Tutorial

295

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sh4al-dspE200f

Table of Contents