User`s guide
Example 6-2 shows an
EXAMINE
and DEPOSIT to the location
that
contains the
HALT
instruction.
»)E/P/B
9300
P
00009300
00
»)D/P/B9300
01
»)C
Examines
location
9300.
Deposits
01
in
the
byte
at.
location
9300.
Continue.
The
program
should
loop
on
error.
Example 6-2 Level 4 Diagnostic Program Set
Up
to Loop on Hard Error
However, if the error
is
intermittent, the program may progress out
of
the loop on the first success. In
order for the program to loop every time, the user must find the instruction which checks for success or
failure and replace it with a
NOP
instruction (see Example 6-3).
92C1
12591
T12_S55:
92C1
12592
MOVL
# X55,SUBNUM
92CC
12593
5$:
MOVW
#1,TEMPO
92D5
12594
BISPSW
#15
92D7
12595
TSTW
TEMPO
92DD
12596
MOVPSL
R1
92DF
12597
BICL
#NZVC,R1
92E6
12598
MOVL
#8,RO
92E9
12599
XORL3
RO,R1,R2
Compare
expected
and
received
data.
92ED
12600
BEQL
10$
;
Test
for
success.
92EF
12601
MOVAB
B
1045$,
X44(R11)
92F4
12602
MOVW
# 1 ,
X40(R11)
92F8
12603
TSTL
(R11)
92FA
12604
BEQL
1045$
92FC
12605
JSB
(R12)
92FE
12606
BRB
10$
Branch
to
next
test.
9300
12607
1045$:
HALT
Halt.
9301
12608
BRB
5$
Loop
PC
printed.
9303
12609
10$
:
CLRL
R3
Next
part
of
test.
Example 6-3
Level 4
Program Listing Sample EVKAA, Test 12, Subtest 55
In
this case, the BELQ 10$ instruction
at
line 12600 checks for success
of
the test operation. Also, the
BRB
10$ instruction
at
line 12606 branches to the next test after completion
of
another operation. Two
bytes correspond to each instruction. Both the instruction and displacement
in
the instructions are replaced
with two
NOP
instructions (0101) as shown
in
Example 6-4.
»)E/P/W
92ED
Examine
the
two
bytes
at
92ED.
P
000092ED
1413
»)D/P/W
92ED
0101
Deposit
two
NOP
codes
at
92ED.
»)E/P/W
92FE
Examine
the
two
bytes
at
92FE.
P
000092FE
0311
»)D/P/W
92FE
0101
Deposit
two
NOP
codes
at
92FE.
»)E/P/B
9300
Examine
the
HALT
location.
P
00009300
00
»)D/P/B
9300
00
Replace
the
HALT
with
a NOP.
»)C
Continue.
The
program
should
loop
on
the
error.
Example 6-4 Setting Up a Loop on an Intermittent Error
6-4










