Sample Program; Internal Ram And Sfr; Loading The Sample Program; Running The Example - HP 7700 Series User Manual

Emulator softkey interface
Table of Contents

Advertisement

Sample Program

Internal RAM and
SFR
Loading the Sample
Program

Running the Example

5-2 Using the Emulator
In the "Getting Started" chapter, we looked at a sample program which
functioned as a primitive command interpreter. In this section, we will
use the same program.
As described in chapter 2 and chapter 4, the emulator breaks into the
monitor when displaying internal RAM or SFR. However, you can
configure the emulator so that write cycles are performed to both
internal RAM (or SFR) and emulation memory. In this case, you can
display the data written to emulation memory without suspending user
program execution. To perform this, you need to map the internal
RAM area and SFR area to emulation memory. Enter memory
mapping screen with "modify configuration" command, and map 100H
through 27FH to emulation RAM.
100h thru 27fh emulation ram <RETURN>
end <RETURN>
The sample program is loaded with the following command.
load cmd_rds <RETURN>
Enter the following command to cause the emulator to run the sample
program.
run from Init <RETURN>
Modify the command input byte to "A" to let the program write the
message to the Destination area.
modify memory fcode i Cmd_Input byte to 41h
<RETURN>
Notice that you need to specify "fcode i" syntax to access internal
RAM. If you specify "fcode none" syntax, the data you entered is
written to emulation memory. In this case, the program will never
write the message, since user program reads data only from internal
RAM.

Advertisement

Table of Contents
loading

This manual is also suitable for:

64146a64146b

Table of Contents