Sample Program
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.
Internal RAM and
SFR
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>
Loading the Sample
Program
The sample program is loaded with the following command.
load cmd_rds <RETURN>
Running the Example
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.
5-2 Using the Emulator
Содержание 64146A
Страница 2: ......
Страница 8: ...Notes ...
Страница 14: ...Notes 6 Contents ...
Страница 16: ...Figure 1 1 HP 64146 Emulator for MELPS 7700 Series 1 2 Introduction ...
Страница 60: ...Notes 3 4 In Circuit Emulation ...
Страница 92: ...Notes 5 10 Using the Emulator ...
Страница 100: ...Notes A 8 Using A Foreground Monitor ...