HP 64746 User Manual page 117

Emulation/analysis
Table of Contents

Advertisement

The monitor program absolute file will be loaded after you have answered all the
configuration questions. Only the memory reserved for the monitor is loaded after
configuration. Therefore, you should not link the foreground monitor to the user
program. If the symbol database must contain both monitor and user program
symbols, create a different absolute file linking the monitor and user program. You
load this file after configuration.
Because the shipped foreground monitor writes to vector table locations (the IPA
bit in the SCR register is cleared), you must either answer "no" the "Break
processor on write to ROM?" debug/trace configuration question or you must map
the vector table locations as RAM. Otherwise, a break to the monitor causes a
break on write to ROM which causes a break to the monitor, and so on.
In order to step through programs when using a foreground monitor, you must
modify the TRACE vector (24H) in the processor's exception vector table. The
TRACE exception vector must point to the TRACE_ENTRY label in the
foreground monitor program.
Examples
The following examples of how to set up and use a foreground monitor program
assume the HP 64870 or HP B1464 68000/08/10/20/302
Assembler/Linker/Librarian is installed on the host computer.
To copy the foreground monitor program source file:
$ cp $HP64000/monitor/Mfmon68302.s . <RETURN>
To edit the monitor program source:
$ chmod 644 Mfmon68302.s <RETURN>
$ vi Mfmon68302.s <RETURN>
The monitor will be loaded at 10000H, so the modify ORG statement near the top
of the file to look like this:
ORG 010000H
Notice that the ORG statement is indented from the left margin; if it is not indented,
the assembler will interpret the ORG as a label and will generate an error when
processing the address portion of the statement.
Selecting the Emulation Monitor Program
* START MONITOR ON 2K BOUNDARY OTHER THAN ZERO
Chapter 4: Configuring the Emulator
117

Advertisement

Table of Contents
loading

This manual is also suitable for:

68302

Table of Contents