Table 4-32.
HP 8340B/41B HP-lB Operation Verification Programming Listing (For Use with HP 8SF)
10
I
HP 8340B/41B HP-LB OPERATION VERIFICATION
20
I
VERIFICATIONTEST
30
I
40
15MARCH86
50
60
I1=~719
70
OUTPUT Ii ;“IPS2TSTS”
eo
90
ON KEY# 1 ,“SYNTAX” GOSUB 370
100
ONKEY#4,DATABITGOSUB400
110
LOCAL7
120
OUTPUT Ii ;“OS”
130
DJSP “HP 8340B/41B STATUS BYTE lAND 2”
140
DISP
150
DISP “BYTE
BIT
160
DISP”#765432
1 OVALUE”
170
DISP
“
180
DISP
190
ENTER Ii USING”#,B”
;
E7F
200
FORI=1T02
210
DISP I;
220
IF 1=1 THEN N=E
230
IF 1=2 THEN N=F
240
FORJ=7TOOSTEP—1
250
A=BIT(N,J)
260
DISPA;
270
NEXT J
280
DISPN
290
DISP
300
NEXT I
310
DISPUSING”4/,A”
;
“
320
KEY LABEL
330
GOTO 120
340
350
I
Syntax Te5t
360
370
OUTPUT Ii
;
“XYZ”
380
RETURN
390
400
!
Te!tDataBit5
410
420
CLEAR
430
DSP USNG”/,K”
; “TESTDATA BITS”
440
FORC=0T07
4S0
B=2AC
460
OUTPUT Ii USING
“K,B”
,
“TI” ,B
470
WAIT 100
480
ENTER
11 USING’#,B”
,
D
490
IFB#DTHENDISP
“
DATA BIP’;C;”NOT
WORKING”
500
NEXT C
SlO
DISP”ALLDATABITSIaJORKING”
S20
DISP “PRESS CONT”
530
PAUSE
540
RETURN
ESO
END
KP 8340B/41B
Performance Tests
4-87