![HP 64700 series User Manual Download Page 27](http://html.mh-extra.com/html/hp/64700-series/64700-series_user-manual_161481027.webp)
The sample program is not intended to represent a real routine.
The program uses four different callers of the WR ITE_NUMBER
subroutine to simulate situations in real programs where routines
are called from many different places. An example later in this
chapter shows you how to use the analyzer prestore feature to
determine where a routine is called from.
An assembler listing of the sample program is shown in figure 2-2.
It is provided so that you can see the addresses associated with the
program labels. The program area, which contains the instructions
to be executed by the microprocessor, is located at 400H when
linking the program. The R ESU LTS area, to which the random
numbers are written, is located at 500H . The area which contains a
variable used by the R AND subroutine and memory locations for
the stack is located at 600H .
Initialize the stack pointer.
AGAIN: Save the two previous random numbers.
Call the RAND random number generator subroutine.
Test the two least significant bits of the previous random number.
If 00B then goto CALLER_0.
If 01B then goto CALLER_1.
If 10B then goto CALLER_2.
If 11B then goto CALLER_3.
CALLER_0: Call the WRITE_NUMBER subroutine.
Goto AGAIN (repeat program).
CALLER_1: Call the WRITE_NUMBER subroutine.
Goto AGAIN (repeat program).
CALLER_2: Call the WRITE_NUMBER subroutine.
Goto AGAIN (repeat program).
CALLER_3: Call the WRITE_NUMBER subroutine.
Goto AGAIN (repeat program).
WRITE_NUMBER: Write the random number to a 256 byte data area, using the second
previous random number as an offset into that area.
RETURN from subroutine.
RAND: Pseudo-random number generator which returns a random number
from 0-0FFH.
RETURN from subroutine.
Figure 2-1. Pseudo-Code Algorithm of Sample Program
Getting Started 2-3
Summary of Contents for 64700 series
Page 2: ......
Page 19: ...Tables Table 9 1 Summary of Commands 9 4 Table 9 2 Command Assignments 9 5 Contents 11 ...
Page 20: ...1 Notes 12 Contents ...
Page 24: ...1 Notes 1 4 Introduction ...
Page 106: ...1 Notes 4 36 Performance Measurements ...
Page 118: ...Figure 5 8 True Demultiplexing 5 12 Using the External Analyzer ...
Page 128: ...1 Notes 6 6 Timing Introduction ...
Page 134: ...1 Notes 7 6 Timing Getting Started ...
Page 168: ...1 Notes 8 34 Timing Using the Analyzer ...
Page 201: ...1 find This command finds a trigger like event in trace memory Syntax Timing Commands 9 33 ...
Page 219: ...1 mark This command marks specified conditions in trace memory Syntax Timing Commands 9 51 ...
Page 254: ...1 trigger This command specifies trigger conditions Syntax 9 86 Timing Commands ...
Page 262: ...1 Notes 9 94 Timing Commands ...
Page 280: ...1 Notes B 16 Timing Diagrams and Outputs ...
Page 292: ...1 Notes C 12 Timing Messages ...