PROCESS_COMM
Compares the input byte (now something other than a null) to the
possible command bytes of "A" (ASCII 41 hex) and "B" (ASCII 42
hex), then jumps to the appropriate set up routine for the command
message. If the input byte does not match either of these values, a
branch to a set up routine for an error message is executed.
COMMAND_A, COMMAND_B, UNRECOGNIZED
These routines set up the proper parameters for writing the output
message: the number of bytes in the message is moved to accumulator
A and the base address of the message in the data area is moved to
index register X.
OUTPUT
First, the base address of the output area is moved to index
register Y. Finally, the proper message is written to the output area by
the MVN instruction. When done, OUTPUT jumps back to
CLEAR_INPUT and the command monitoring process begins again.
Using the various features of the emulator, we will show you how to
load this program into emulation memory, execute it, monitor the
program’s operation with the analyzer, and simulate entry of different
commands utilizing the memory access commands provided by the HP
64700 command set.
51 00C03B A90F UNRECOGNIZED: LDA A,#0FH
52 00C03D A222D0 L LDX #INVALID_INPUT
53 00C040 A00002 L OUTPUT: LDY #OUTPUT_POINTER
54 00C043 540000 MVN 0,0
55 00C046 80BD L BRA CLEAR_INPUT
56
57 .END
Figure 2-2. Sample Program Listing
Getting Started 2-5
Содержание 7750
Страница 2: ......
Страница 12: ...Figure 1 1 HP 64147 Emulator for MELPS 7750 51 Series 1 2 Introduction ...
Страница 50: ...Notes 2 32 Getting Started ...
Страница 56: ...3 6 In Circuit Emulation ...
Страница 86: ...CONFIG_ITEMS Summary 7750 51 Series emulator configuration items Syntax B 2 Specific Command Syntax ...
Страница 94: ...Notes B 10 Specific Command Syntax ...