User`s manual
SuperH Family E10A-USB Emulator for Multi-core Microcomputers Section 7 Tutorial SH-4A
R20UT0363EJ0500 Rev. 5.00 Page 209 of 296
Aug 10, 2012
Section 7 Tutorial SH-4A
7.1 Introduction
This section describes the main functions of the emulator by using a tutorial program.
Explanations where something else is not stated apply to operations of the High-performance
Embedded Workshop for CPU0. The tutorial program is written in C++ and runs through the High-
performance Embedded Workshops for CPU0 and CPU1 to sort ten random data items into
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 Elf/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).
4. The displayed addresses and data may differ from those given in this section depending
on the MCU to be used.










