HP MC68040 User Manual page 686

Emulator, graphical user interface
Table of Contents

Advertisement

Chapter 18: Connecting the Emulator to a Target System
Installing Emulator Features
Running a program from the foreground monitor
Once you are satisfied that the monitor is working and that memory in your target
system can be accessed correctly, you can use the monitor to run your target
program. Use the following procedure:
1
2
3
4
5
6
Assuming that the program ran without the monitor, the stack is most likely the
cause of any problems that you see. The monitor runs the program by creating a
stack in memory at the location indicated by the initial stack pointer. The monitor
then initiates an RTE, which starts the target program running. The following trace
list shows an example of correct operation:
656
Reset into the monitor.
Load a program, if necessary.
Initialize the initial stack pointer and initial program counter.
reg isp=<initial ISP>
reg pc=<starting address of target program>
If you do not know these values, you can find them by taking a trace of the
program running from reset as done in the previous sections.
Take a trace of the program as it is running, using the following commands:
tg addr=<long aligned starting address of target program>
t
The trigger address must be long aligned because the MC68040 always fetches
instructions as long words from long-word boundaries.
Run the program with the command:
r
Verify correct operation of the program.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ec040Lc04064783a64783b

Table of Contents