![HP 64700 series Скачать руководство пользователя страница 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
Содержание 64700 series
Страница 2: ......
Страница 19: ...Tables Table 9 1 Summary of Commands 9 4 Table 9 2 Command Assignments 9 5 Contents 11 ...
Страница 20: ...1 Notes 12 Contents ...
Страница 24: ...1 Notes 1 4 Introduction ...
Страница 106: ...1 Notes 4 36 Performance Measurements ...
Страница 118: ...Figure 5 8 True Demultiplexing 5 12 Using the External Analyzer ...
Страница 128: ...1 Notes 6 6 Timing Introduction ...
Страница 134: ...1 Notes 7 6 Timing Getting Started ...
Страница 168: ...1 Notes 8 34 Timing Using the Analyzer ...
Страница 176: ...1 compare This command specifies a post processing compare definition Syntax 9 8 Timing Commands ...
Страница 182: ...1 copy This command copies specifications displays or measurement data to selected output Syntax 9 14 Timing Commands ...
Страница 191: ...define DATA xbits 8 width 8 RETURN Related Commands delete rename threshold Timing Commands 9 23 ...
Страница 200: ...Examples execute repetitively RETURN Related Commands halt halt_repetitive_execution 9 32 Timing Commands ...
Страница 201: ...1 find This command finds a trigger like event in trace memory Syntax Timing Commands 9 33 ...
Страница 219: ...1 mark This command marks specified conditions in trace memory Syntax Timing Commands 9 51 ...
Страница 236: ...1 process_for_data This command limits the trace list display to specified samples Syntax 9 68 Timing Commands ...
Страница 254: ...1 trigger This command specifies trigger conditions Syntax 9 86 Timing Commands ...
Страница 261: ...Examples display timing_diagram RETURN waveform_size medium RETURN Related Commands present Timing Commands 9 93 ...
Страница 262: ...1 Notes 9 94 Timing Commands ...
Страница 280: ...1 Notes B 16 Timing Diagrams and Outputs ...
Страница 292: ...1 Notes C 12 Timing Messages ...