An Example Using
the Foreground
Monitor
In the following example, we will illustrate how to use a foreground
monitor with the sample program from the "Getting Started" chapter.
By using the emulation analyzer, we will also show how the emulator
switches from state to state using a foreground monitor.
For this example, we will locate the monitor at b800 hex; the sample
program will be located at f000 hex with the data table at 400 hex.
$ cp /usr/hp64000/monitor/fm7750.a77 .
<RETURN>
Assemble and Link
the Monitor
You can assemble, link and convert the foreground monitor program
with the following commands.
$ rasm77 -s fm7750.a77 <RETURN>
$ link77 fm7750 <RETURN>
Enter -s as command parameter.
$ m77cnvhp fm7750 <RETURN>
If you haven’t already compiled the sample program, do that now.
Refer to the "Getting Started" chapter for instructions on assembling,
linking, and converting the sample program.
Modifying Location
Declaration
Statement
You may need to modify the foreground monitor program to adjust it to
your needs.
Monitor Address
You can load the monitor "fm7750.a77" at any base address on a 2K
byte boundary except internal RAM and SFR area. To relocate the
monitor, you must modify the "LOCATE_ADRS" label statement near
the top of the monitor listing to point the base address where the
monitor will be loaded. You will see the statement in the monitor
listing as follows:
LOCATE_ADRS .EQU 0B000H ;start monitor on 2k boundary in bank 0
;rather than sfr/iram area
PROCMODEREG .EQU 0005EH ;processor mode register’s address
Using A Foreground Monitor A-3
Summary of Contents for 64147A
Page 2: ......
Page 8: ...Notes ...
Page 14: ...Notes 6 Contents ...
Page 16: ...Figure 1 1 HP 64147 Emulator for MELPS 7750 51 Series 1 2 Introduction ...
Page 84: ...Notes 4 24 Configuring the Emulator ...
Page 92: ...Notes A 8 Using A Foreground Monitor ...
Page 105: ...Notes Index 11 ...