![HP 64700 series User Manual Download Page 28](http://html.mh-extra.com/html/hp/64700-series/64700-series_user-manual_161481028.webp)
Cmdline - as68k -Lh anly.s
Line Address
1 XDEF START,AGAIN
2 XDEF RESULTS,RAND_SEED
3 SECT PROG,,C
4 00000000 2E7C 0000 01FC R START MOVE.L #STACK,A7
5 *********************************************
6 * The next two instructions move the second
7 * previous random number into A1 (offset to
8 * RESULTS area, and the previous random
9 * number into D1.
10 *********************************************
11 00000006 2241 AGAIN MOVE.L D1,A1
12 00000008 2200 MOVE.L D0,D1
13 *********************************************
14 * RAND returns random number in D0.
15 *********************************************
16 0000000A 6100 0044 BSR RAND
17 *********************************************
18 * The following instructions determine which
19 * caller calls WRITE_NUMBER (depends on last
20 * two bits of the previous random number).
21 *********************************************
22 0000000E 0801 0001 BTST #1,D1
23 00000012 6700 0006 BEQ ZERO_ONE
24 00000016 6000 000E BRA TWO_THREE
25 0000001A 0801 0000 ZERO_ONE BTST #0,D1
26 0000001E 6700 0012 BEQ CALLER_0
27 00000022 6000 0014 BRA CALLER_1
28 00000026 0801 0000 TWO_THREE BTST #0,D1
29 0000002A 6700 0012 BEQ CALLER_2
30 0000002E 6000 0014 BRA CALLER_3
31 *********************************************
32 * The WRITE_NUMBER routine is called from
33 * four different places. The program is
34 * repeated after the subroutine return.
35 *********************************************
36 00000032 6100 0016 CALLER_0 BSR WRITE_NUMBER
37 00000036 60CE BRA AGAIN
38 00000038 6100 0010 CALLER_1 BSR WRITE_NUMBER
39 0000003C 60C8 BRA AGAIN
40 0000003E 6100 000A CALLER_2 BSR WRITE_NUMBER
41 00000042 60C2 BRA AGAIN
42 00000044 6100 0004 CALLER_3 BSR WRITE_NUMBER
43 00000048 60BC BRA AGAIN
44 *********************************************
45 * The WRITE_NUMBER routine writes the random
46 * number to the RESULTS area. The second
47 * previous number is the offset in this area.
48 *********************************************
49 0000004A 1340 0000 R WRITE_NUMBER MOVE.B D0,RESULTS(A1)
50 0000004E 4E75 RTS
51 *********************************************
52 * The RAND routine generates a pseudo-random
53 * number from 0-0FFH, and leaves the result
54 * in D0.
55 *********************************************
56 00000050 2039 0000 0100 R RAND MOVE.L RAND_SEED,D0
Figure 2-2. Sample Program Listing
2-4 Getting Started
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 ...