HP MC68040 User Manual page 673

Emulator, graphical user interface
Table of Contents

Advertisement

Chapter 18: Connecting the Emulator to a Target System
This message indicates that the stack memory was not writeable. Check to make
sure that the stack is placed in RAM.
If the target program appears to start at the wrong address, or if there is some other
problem, the stack can be decoded to see if the correct information is present there.
The stack above is interpreted as follows: The initial stack pointer is defined to
point to the next available stack location. Therefore the exit stack starts four words
below the initial stack pointer.
ISP-8 -> Status register =
ISP-6 -> Program Counter = 0000000a
ISP-2 -> Vector Offset
The monitor is always exited using the FOUR WORD STACK frame, and the
monitor always uses 07C as the vector offset. When running a program from the
monitor after entering from reset, the powerup status word of 2700 is used.
Therefore, the only difference you will see in this stack frame will be because of
different initial program counter values.
The procedure of setting the initial stack pointer and initial program counter can be
automated by using the initial vectors configuration question to define these values.
cf rv=<initial ISP>,<initial PC>
Once this configuration has been set up, the following reset sequence may be useful
on systems that remap memory to provide reset vectors similar to the example in
the "Evaluating the Reset Facility" section.
rst -m
r
Installing Emulator Features
2700
=
007C
643

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ec040Lc04064783a64783b

Table of Contents