CALIFORNIA STATE UNIVERSITY, NORTHRIDGE
MICROPROCESSOR-BASED
AUTOMATIC TEST SYSTEM
A project submitted in partial satisfaction of the
requirements for the degree of Master of Science in
Engineering
by
Marshall E. Lester
May,
1985
The Project of Marshall Lester is approved:
Professor
Ich~ro
Hashimoto ,Chair
Professor Edw~J. Hriber
California State University, Northridge
ii
Table of Contents
1.0 Introduction
1.1 Statement of the Problem . . . . . . . . . . . . . . . . . . . . .
2
1.2 Proposed Solution . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3
1.3 Economic Justification
4
2.0 Development System
2. 1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5
2.2 Microprocessing Unit . . . . . . . . . . . . . . . . . . . . . . . . .
8
2.3 User Input/Output System . . . . . . . . . . . . . . . . . . . . .
9
2. 4 Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.5 User Instructions
15
3.0 Test System
17
3.1 Introduction
3.2 Test Board Specifications . . . . . . . . . . . . . . . . . . . . 19
3.3 Test System Hardware
29
3.4 Test System Software
31
4.0 Test System User Instructions
4.1 Operating Instructions
. . . . . . . . . . . . . . . . • . . . . . . 41
4. 2 Test Options . . . . . . . . . . . . . . . . . . . . . . . . . . . .
~..
. . 41
'
4.3 Error Code Interpretations . . . . . . . . . . . . . . . . . . . 43
4. 4 Failure Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
References
45
Appendices
A. Software
46
B. Schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
C. Disassembler
109
iii
LIST OF FIGURES
Page No.
..............
System Memory Map .............................
Test System Block Diagram . ....................
Test 1.1 Timing Diagram . ......................
Test 1.2 Timing Dic:wram . ......................
Test 1.3 Timing Diagram . ......................
Test 1.4 Timing Diagram .......................
Test 1.5 Timing Diagram . ......................
1. Development System Block Diagram
2.
3.
4.
5.
\_\
6.
1.
8.
1
11
18
20
22
24
26
28
9. Timer No. 1 Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
iv
LIST OF TABLES
Page No.
1. System Programs
12
2. User Development Functions
16
3. Test Options
42
4. Error Codes
43
5. Failure Codes
44
v
ABSTRACT
MICROPROCESSOR-BASED
AUTO~ATIC
TEST SYSTEM
by
Marshall Lester
Master of Science in Engineering
This graduate project demonstrates the application of
microprocessors to the automatic testing of production
electronic equipment.
Specifically,
test
a microprocessor-based development and
system was designed,
primary
function
circuit
board
constructed and tested.
is to test
a
digital/analog
that is part of the control system
hospital respirator.
vi
It's
printed
in
a
CALIFORNIA STATE UNIVERSITY, NORTHRIDGE
MICROPROCESSOR-BASED
AUTOMATIC TEST SYSTEM
by
Marshall E. Lester
APRIL 1985
1
INTRODUCTION
1.1 Statement of the Problem
The
problem
addressed
by this project
came
about
through part-time employment I have had for approximately
two years.
The work involves the maintenance and
repair
of hospital respirators. If a problem is suspected in the
electronics
of
a machine,
the standard solution is
replace each printed circuit board,
until
the
problem is corrected.
PCB,
with a new one
The old
PCB
is
returned
to the manufacturer to be repaired which
involves
considerable time and money.
most
to
then
often
The problem is in
cases the malfunction of a very inexpensive
campo-
nent such as a capacitor or integrated circuit.
Although
locate
the process of switching circuit boards
the defective circuit board is fairly
troubleshooting
the
efficient,
defective board while it is
operating respirator is very cumbersome.
to
First,
in
an
due
to
the surrounding components in the respirator, it is difficult to find specific locations on the PCB.
the
to
the
'
In addition,
controls of the machine must be constantly
adjusted
produce the desired inputs to the specific portion of
PCB
being tested.
On each PCB
there
are
several
functions implemented which are often functionally intertwined.
2
3
1.2 Proposed Solution
The
object
of this project was to build
a
working
test system that would perform two basic functions.
First,
there
would be an automatic test mode
the
PCB
in question would be inserted into the
and
all of it's functions would be tested.
where
machine
If
it
com-
pletes all tests successfully, a "pass" indication should
be
displayed.
If it fails one or more tests,
a
"fail"
indication would be displayed along with failure codes to
indicate
mode
which of the tests had been failed.
should
test
any
non-
be
very
be simple enough to perform that
technical
person
time
cost effective if there are large
and
This
could operate it.
This
wo~ld
numbers
of
boards to be tested.
Secondly,
where
there would be a respirator emulation mode
a specific part of the PCB would
be
continuously
exercised in a way that a technician with an oscilloscope
could
quickly isolate the exact problem.
component
would
subsequently
The
defective
be replaced and
the 'PCB
retested.
A microprocessor-based system is appropriate for
tester
This
due
is
to the complexity of the PCB to
because most of the functions tested
be
the
tested.
are
time
dependent and not static. The test system was intended to
have the capability of testing all seven of the PCB's
the respirator if a effort of this magnitude,
in
along with
4
the
appropriate financial backing,
is ever justified in
the future.
1.3 Economic Justification
The
boards
manufacturers
price
for the
is in the $100 to $150 range.
exchange
With
the
circuit
tester,
each faulty board will be able to be tested, repaired and
.retested
ment
within one half hour.
parts is negligible.
$50.00
an
The cost of the replace-
At a technician cost of
hour it is easy to see the advantages
even
of
an
automatic PCB tester, given some minimum volume of failed
boards.
stocking
nates
lays.
In addition,
and
this does away with the expense of
shipping replacement boards and it
costly machine-down time due to
elimi-
replacement
de-
DEVELOPMENT SYSTEM
2.1 Introduction
the time this project was started there were
At
basic
approaches
that could have been
requirements
primary
taken
of the tester were
once
decided
most obvious approach would have been to
The
two
the
upon.
design
the tester using a series of off the shelf microprocessor
system
circuit boards that are available from a
variety
of manufacturers. In terms of development time this would
have
been
more efficient but in terms of
design of microprocessor-based systems it
learning
the
have been
wo~ld
very inefficient.
Because one of the goals of this project was to learn
the
basics of Microprocessor System design I decided
design the system from the ground up,
that is,
to
from the
IC level. Because there had to be some way of programming
the
test
design
system
and
System.
and testing these programs
I
build what is commonly called a
had
to
Development
This meant also designing and writing the actual
operating system.
A development system in its simplest form is a microprocessor
system that is capable of having
enter programs,
working
It
an
operator
display programs and run the programs. A
PCB tester need have none of these capabilities.
must only be able to perform the
5
required
tests.
A
6
development
shown
in
system
can be divided into two sections
figure 1,
the actual
central
as
microprocessor
system and the user input/output section.
The central microprocessing unit, MPU, would be necessary
in any microprocessor based device but the
/output
necessary
system,
only
I/0,
of
the type described
in a development
schematics see the appendix.
system.
For
input-
below
is
detailed
DE V E L o P JVI
BLOCK
~~-s
5
·1r-- - - ,
I
.
[.-
J
I
1 ,.-•
~I__J
.,l_
•
PI5PLAY
<?)
r l.s-·no I
'..
l
.-~
CID
.,
:·
·:r.)
(;'"
F
GNu
.,.
coNTROL
\Vi p
I'
•-
ADDf\FSS
L001 C
u
1--
ROM
~K
lL.
~
INTE:R,r::-AC.t
'],-- ~ l ·: 1;;;
Lj
f---1
....,.
.,.
1•:-:;[].--=-;lt:),H
f- -
PIAGRAM
SUPPLY
I
1---[
n~ P
cL--eo
rn
5'/STEM
poWER,
rr-
CT~.~-:K
[~~-~~~-c
eNT
RAM
2K
>I
1<-EYBDiifl.D
iNTERFAC.EO
f-?
<---------'
Fl G u R S
:L
-...1
8
2.2 Microprocessing Unit
The central MPU in my project is based on an RCA 1802
microprocessor, 4K of type 2716 EPROM and 2K of type 6116
RAM.
The control systems include power-on reset,
manual
reset, run and single-step functions.
The
sons.
with
RCA 1802 microprocessor was chosen for two
Initially,
it
in
I had some limited experience
the early seventies
I
wanted a microprocessor that had very little
or
working
experimenting
Popular Electronics computer called the Elf I.
rea-
with
a
Secondly,
software
development tools available so that I would be forced
to create the development system myself. The RCA 1802 met
these requirments.
I
chose
the 2716 EPROM because I knew
capabilities of programming it at CSUN.
chosen
because
we
had
The 6116 RAM was
it is similar in format to the 2716
has a low power mode that when used with battery
allows
a
the
and
back-up
memory retention for approximately two years with
small battery capable of being mounted on the
circuit
board. I would not have needed such a large amount of RAM
(2K)
for the tester if I was not also using the
store
programs under development.
developed
they
RAM
to
As programs are being
need to be continuously
modified
which
would be very difficult if they were kept in an EPROM.
I
chose
structure
to
use
the
STD BUS
format
for
because it is specifically designed for
my
bus
small
( 4 11
X 6 11
)
PCB
cards ur:>ed Jn smal J. M/P
control
systems.
See the appendix for bus details.
2.3 User Input/Output
The
and
input
output
to
availble
the
user
is
functionally as shown in figure 1.
At the time I was developing this part of the system,
there
was
front panel and all controls
no
present on the I/O circuit board.
had
to
Physically, all of the
I/O shown in figure 2 are accessed under the front
cover
"computer
labeled
opened
access
access''.
This never
by the test operator because all
changes
or
additions
to
the
test
need
be
test
This
panel.
system
if
would
be
programmer
or
strictly for use as a development
is
panel
necessary
are located directly on the front
controls
be
system
necessary later.
The
basic
developer
points
output
available to
the
is a six digit hex {0-F) display with
and one separate red LED.
The input is a
switch keypad with 16 hex keys and 4 control keys.
are
also
controls.
switches for the reset,
run
and
decimal
twenty
There
single-step
10
2.4 Software
All
of the operating system or monitor
software
is
located in the first 2K EPROM from addresses 0800 to OFFF
hex.
See figure 2, the memory map, and table 1, the list
of programs, for details.
The
following is a brief description of each program
and what it does.
First there are the two initialization
routines.
START:
Performs
initialization of microprocessor regis-
ters,
calls secondary initialization routine,
scans
input
flags for front panel or
Calls one of the function programs,
FILLMEM,
keyboard
INIT, and
inputs.
RUN, EXMEM, CHNGMEM,
VOUTTEST, TRANMEM, or test programs SETBOARD or
MAINTEST.
INIT:
This
secondary
several functions.
It
initializes
portion
of
initialization
performs
It sets all four D/A's to 0.00 volts.
all
RAM
routine
three PIA's I/0 ports and
with
zeros for use
by
the
fills
FAIL
a
and
PASSFAIL routines.
Secondly,
there
are the I/O routines that
interact
directly with the I/O hardware (IN, IN2D, I/040, OUT, and
FULLOUT.)
These routines either recieve characters
the keyboard or send them to the display.
from
11
lVI EM o 1-=\ Y
M A P
.) 3 ') 0
DEVELo,oMENT
ROM
S '/ STE M
~
PRO GR? 1'..1'\ <;;
JOOO
TES
ROM
C \'C I C
-~·
/
__ .>
'
·-
T
f'/1
PROGRHm<:;:
l)SEF\
~
1
'f S:Tt: M
I/o
2(, I 2.
FH\EA
!) .5
MEM
E'
Mf"'P
2613
2
SYSTEI'-'7
'J FF
RE
'~,1 ~TERS
'2-1- 0:)
I
S 'IS T Ef'/1
STF\CK...
12
LISTING OF PROGRAMS
NAME
START
BIN/BCD
SETBOARD
RUN
EXMEM
CHNGMEM
FILLMEM
IN
DELAY
INIT
IN2D
I/04D
SETC
OUT
PREDELAY
FULLOUT
SET INT
TRANMEM
END INT
STEPS TOP
OUTTSTNO
VOUT
OUTPUT
INPUT
VOUTTEST
ERROR
FAIL
SETTIME
ADJUST
TEST1/5
SELFTEST
MAINTEST
COUNT
TEST1/3
TESTl/1
TEST1/2
PASSFAIL
TEST1/4
START ADDRESS END AODRESS
08FD
0800
0910
0979
09C3
0993
OAOO
OA1F
OA93
OA80
OBOO
OB1F
OBCO
OB80
ODOO
OD1B
OD31
OD20
OD7D
OD40
OD93
OD80
ODBO
ODAO
ODDO
ODCO
OE22
OEOO
OE7F
OE30
OE94
OE80
OEF1
OEAO
OF47
OFOO
OF5E
OF 50
OF96
OF80
OFD8
OFDO
1174
10F6
11A7
1180
11C9
11BO
1232
1200
1285
1270
12AE
1290
12E3
12BO
12FD
12E4
1300
135C
1380
13E1
1400
147C
1480
14D9
1500
15FE
1600
1635
1640
1698
16AO
16B1
17B9
1700
13
IN:
Loops
until a key is pressed then returns with
hex
value in register 7, (R7), low four bits. Bit 6 is set to
1 if a control key was pressed.
IN2D: Returns with two hex digits in R7, first digit most
significant.
OUT:
Outputs two hex digits in R7 to display with
tion
in display and presence of decimal point
posi~
dependant
on byte following call, (one argument byte).
FULLOUT:
Address
and
Output
six
hex digits to display as
in R8.1 and R8.0 to address portion
follows.
of
display
memory contents of that address to the data
portion
of the display.
I/04D:
Inputs
stack,
R7,
four hex digits,
high
byte first,
stores them on the user
and outputs them
to
the
address part of the display.
Following
are
the monitor user
function
routines.
These are used to enter, examine and run programs.
EXMEM:
Called
by the key sequence CNTRL 0.
four digit hex address.
displayed.
STEP
User enters
Address and memory contents
are
advances address one location and
STOP
returns to scanning routine.
CHNGMEM:
EXMEM
Called
except
by
the key sequence CNTRL 1.
after examining contents
CHANGE and enter new contents.
to next location.
user
Same
may
as
press
Display will then advance
14
FILLMEM:
CNTRL 3.
User enters beginning and ending four
hex digit addresses followed by desired ''fill" data byte.
STEP
causes fill to be executed and STOP causes
command
to be aborted.
RUN:
CNTRL 2. User enters four digit address of start of
program
to be run.
STEP starts execution,
STOP
aborts
command.
TRANMEM:
CNTRL
6.
User
four
address,
four
starting
address of block of memory to
STEP
causes
Initial
and
digit
enters
execution
digit
starting
ending address and new four
and
STOP
be
aborts
digit
transferred.
the
command.
final blocks of memory should not
overlap.
Action does not destroy initial locations.
VOUTTEST: CNTRL 7. Program to test D/A's. User inputs D/A
number,
value
are
from 01 to 04 followed by four digit of
from 0.000 volts to 4.095 volts.
voltage
D/A 1 and D/A
2
within .002 volts and D/A 3 and D/A 4 are within .04
volts.
User
may continue entering the sequence of
voltage digits followed by STEP to change the voltage
four
on
the previously selected D/A.
Last
there are several general purpose routines that
perform specific functions as follows.
BIN/BCD:
This routine converts the number stored on
stack in two bytes,
high byte first,
the
from binary to BCD
format. The result is stored in the same locations on the
15
stack (R7 and R7-l).
The number must have been from 0000
to 9999 (decimal).
BCD/BIN: This does the opposite of the above routine.
DELAY:
This is a software delay loop that causes a delay
porportional
to
the one required argument,
number from 01 to FF.
a one
byte
FF causes a delay of approximately
from .01 to 2 seconds.
PREDELAY:
This
argument bytes,
is a precision delay that
in BCD format,
requires
two
from 0000 to 9999, which
causes a delay of exactly 00.00 + .025 seconds to 99.99 +
.025 seconds.
The .025 seconds is due to the calling and
returning routines.
CALL: This is a phantom routine that is used every time a
subroutine
is called,
see the RCA "User Manual for
the
CDP1802 COSMAC Microprocessor" for details.
RTN: This is the returning routine for subroutines.
2.5 User Instructions
Table
ctions.
2
is a summary of the user
development
fun-
To use the unit as a development system the user
must be aware that he may only use the area of RAM designated
cribed
USER
AREA.
He may call any of the programs
in the above section using the Standard Call
Return Technique (SCRT) decribed in reference 1,
users manual.
desand
the RCA
16
USER DEVELOPMENT FUNCTIONS
Function
Control Key
EXMEM
CHNGMEM
FILLMEM
RUN
TRANMEM
VOUTTEST
CNTRL 0
CNTRL 1
CNTRL 3
C~TRL 2
CNTRL 6
CNTRL 7
Arguments
4
4
6
4
12
6
Table 2
Action
Examine Memory
Change Memory
Fill Memory
Run a Program
Transfer Memory
Set D/A Voltage
TEST SYSTEM
3.1 Introduction
The
block
figure
3.
Detailed
diagram
of the test system is
For details on the MPU system see
schematics
of
shown
in
figure
1.
both systems are given
the
in
appendix.
The test system can be devided into two major
parts,
the user interface and the test board interface. The user
interface
input
consists
of three momentary switches
as
the
devices and six hex digit displays and one LED
output
devices.
With this simple I/O all the
as
necessary
test functions can be performed by an unskiled operator.
The
lines
test board interface consists of 36 various
and associated circuitry that connect directly
the board being tested.
digital inputs,
to
looking
4 D/A outputs that can range from
closely
respirator,
at
0.000
output.
all the PCB 1 s to be tested
After
in
the
(there are seven PCB 1 s in all), it was deter-
that this number of I/0 1 s would be
Also
to
There are 16 digital outputs, 15
4.095 volts and one specialized timer
mined
I/O
sufficient.
included in the test board interface is a power
supply {+6V,
-6V,
+5v,
+3V and -3V) that is the actual
supply used in the Bear I respirator.
17
18
0 3 _L S 3 _l
8
':)
~)
N I 3 fJ
d
...0
1-
"'
·r
'-)
'>
I
'
'-.
I
;.u
c
......
~ ......
\./)
\,.,)
> ~VI :::.1
::=
Q_
rJ
4.:
a_
(/
~
"
'
:1.
0
1- "''-'
Vl
\---
1-
(Y)
lu
C(
::>
0
LL
..J
lu CD
cc
Ul"'
~
-:::::,
2_
llJ
a_
f-.
~
Vj
--/
V/
__,
c -I'
19
3.2 Test Board Specifications
To
understand
thoroughly
the test system design we must
first
understand the operation of the PCB to
being
tested. The one I chose to test performs five independent
functions that require five different tests.
notation for the tests will be 1.1,
1.2,
My labeling
1.3,
1.4
and
1.5. The first digit indicates the PCB number (because my
system
is set up to test all seven PCB's in the respira-
tor) and the second digit indicates the test number. Test
number
1.0 includes all five of the
Medical
Systems Inc.
above
tests.
Bear
calls this PCB "Rate Readout Board
Assembly", part number 51000-03032.
3.2.1 Function 1.1
This
and
five
first test is by far the simplest to understand
to implement.
The circuit to be tested consists
independent
schematics.
diagram
My
signals
non-inverting buffers as shown in
conventions
for
labeling
will be to list each of the
the
of
the
timing
I/O
lines
with their Bear Medical Systems name, their corresponding
PCB
test
tails
card edge connector position and my test system
connection label in parenthesis.
on
the
PCB
circuits see the
''Rate/Readout PCB" in the appendix.
ram of test 1.1 see figure 4.
For specific
schematic
of
I/O
dethe
For the timing diag-
20
>
>
-.._.!)
I
-x">
i
_/_
----·-
-z.c
---) r
lll;f~
•
lL
l ~-------,r-
-
/"
($)
''-o
-~
_,---,.
(J;l
1J
G
.__
.--.
('f)
1-
0
-} r-
-
'/'J
i--;
:)
Q,
zl
-I
~
-::;:
-~-
r·
(Q
.-::
1-
<:::.
"''
..
·-
~
z.
;~J
X
·-·-~
.._;
c
}-
L:
0
~
::r-
r:;-
()
---
.:.
'-'
·-1
...:::
--.:
·-
---
~
1..[\
~I
~~
----·
)-,
----...·'
--
::--- ·-
~-
~~
t1~
--
,)
'\
'
c
'-'--1
}-l
-:-Ji
·-
-"!...
r"i
C.
1.-
-
.,
._,
L-)1
_)
~-··
/0 ll'</::1
/'>
~
'-../
l.u
-
-
~
.J
t-·
\-·
'
.-
-~
--
:
21
3.2.2 Function 1.2
This
circuit
respirator.
pulse
the
performs the "apnea" function
is input on the START INSP SAMPLE line
by
each
time
If each breath is not
fol-
another within 19.0 seconds the
APNEA and APNEA TO LAMP DRIVER will go high.
is
the
The circuit is shown in figure 5. A positive
patient takes a breath.
lowed
in
output
lines
This action
inhibited by the input line STANDBY/STOPPED being set
high.
The purpose of this circuit is to produce an alarm
if the patient stops breathing.
The accuracy of the 19.0
seconds is plus/minus 2.5 seconds.
22
I
r
I
/i
I 1
I
l
I
I
z
_.J._
i
i
i
i-
Ii
~
:f;
l
.
Ll.J
~
I
I
!
r,'
•./)
I
_j
~
I
l
I
>i--
r. - -:.C
.-. ·...J'
,_:j
l
!
i
i
I
i
i
I
I
Ii
I
I
I
l
I
I
I
I
I
I
I
I
0
L
.,·:
L1
\•'
._J
23
3.2.3 Function 1.3
This
circuit
controls
breath to the patient.
active
when
the delivery of
See figure 6.
a
positive
The INSP input is
the patient is being delivered
a
positive
breath. The output INSP + PLATEAU controls the exhalation
valve on the patient circuit. Normally the INSP + PLATEAU
signal
would
be
active only when the
INSP
signal
is
active. The two other inputs can affect this action.
The
stop
PRESSURE LIMIT REACHED signal
the
INSP
will
+ PLATEAU signal in spite
prematurely
of
the
INSP
signal.
The
signal
INSP PAUSE,
will
prolongation
INSP
1.5
signal.
cause
which is a 0.00 to 3.00 volt analog
a porprtional 0.00
to
2.00
second
of the INSP + PLATEAU after the end of
For example,
the
i f the INSP PAUSE line is at
volts and the INSP input is active for
.5
seconds,
the INSP + PLATEAU will be active for .5 + 1.0 seconds.
24
----r
l -
,,
! I
) /
~f._j
1
"
,__
r
-- c:·
------
~I.,...
1 :
'; ·: _j
---~
:I
~-,
>
-
(Y)
---t
I
t<.../)
LU
\-
_-
~ r~
I
jo 1"/j
]-s"
I
I
I~
1--i!
~~--
'
\~-
'J__j
,,.,J
25
3.2.4 Function 1.4
This circuit controls an alarm triggered by a pressure
limit being reached.
LIMIT,
are
PRESSURE
self
SAMPLE
The outputs,
ALARM
PRESSURE
LIMIT (TO LAMP DRIVER) and ALARM
explanatory.
Either
of the
inputs
RESET
PRESSURE
or.STOPPED/STANDBY causes the ALARM RESET
output
to go active and immediately terminate a positive
output
on
the ALARM PRESSURE LIMIT and PRESSURE LIMIT (TO
LAMP
DRIVER) lines should they be active.
The
ONE
two inputs PRESSURE LIMIT REACHED and
SHOT always occur at the same time,
being
the
PRESSURE LIMIT REACHED is of
where
the
2 SECOND ONE SHOT lasts for 2
these
inputs
go
active they
the
2
difference
short
immediately
SECOND
duration
seconds.
cause
When
ALARM
PRESSURE LIMIT and PRESSURE LIMIT (TO LAMP DRIVER) to
active.
At
the
end of the 2 SECOND ONE SHOT pulse
ALARM PRESSURE LIMIT and PRESSURE LIMIT (TO LAMP
outputs
the
DRIVER)
are terminated and ALARM RESET is activated
approximately .001 seconds. See figure 7.
go
for
26
:· i -' :.'j
__,_-
-71 11!:/j
'"
~
~
51 Wf_j
Vl
LLJ
~
""
;;::
~"'
-...-:::.
I
-+--
t['-
71 d.:J
.p
I
j___
- z
27
3.2.5 Function 1.5
This circuit produces the necessary LATCH,
CLOCK
outputs
breath
The
to run a BCD display that
SAMPLE occurs once each
patient is given a breath.
seconds
indicates
rate of the patient in BPM (breaths per
input START EXH.
the rate is 60 BPM,
the rate is 6 BPM,
CLEAR and
the
minute).
time
the
If this occurs once every 1.0
i f once every 10.0
seconds
that is,
the CLEAR and LATCH outputs
occur every .80 seconds (ie.
the display is updated every
.80
seconds.
Between the CLEAR and LATCH pulses are the
CLOCK pulses which are square pulses of .002 seconds
per
period.
numeric
BPM
ONE SHOT output is produced for
.32
reading.
There
are
The
RATE
as many of them as the
seconds at the beginning of each START EXH. SAMPLE input.
See figure 8 for details.
TEST
I
-
_ __
~"fmsT
.
_:_;T/,(;i E:xH. SA"'~LE"
J.~
TIMING
ID>e~
-
-i--------·--------
25"'I
S<' '-'
_I
- -
(o ull.)
c
J·;7Tt:
8
QrJ&
SHol
(INl.)
~
CU:::A K
1-_:.
(11'--)
3)
-~------
LF\TC ll
(If I '1 )
I:)
r2·V»)1
ClD(_i:._
N
(i/.J -L \
Ff11 L Z. L
F A IL
1- F. ( [_
·z --~
- 'i
--uuu·---tf :>BPY11 > 8
-_, '8' >(! >" •• / 3 2
)-g 131'1">1 > b 'L
>
f<-
TO I P\ L
Pth.. S~<.:
f·Jum !Jt:Yi..
-::::- 1:::; RtAIH
(, [3 P"'!
3o
bPI"\
0 (J
('I •i\
FlGL>RE
,--
~-~~n1
u
o F
RP.TE
~
9
1\.)
03
29
3.3 Test System Hardware
Refer
to figure 3 for the block diagram of the
system hardware and to the appendix for the full
test
schema-
tics.
The
shown
user
on
\simply
the
the
left side of figure 3.
6 digit hex display,
development
and
(operator) portion of the test
as
The
system
outputs
described
system section (it is used in both
the red PASS/FAIL LED on the front panel,
taken
directly
processor.
in
off
the "Q" output of the
is
are
the
systems)
which
1802
is
micro-
This special output has M/P instructions that
directly sets and resets
~t.
The "test PCB" portion of the test system is shown on
the right side of figure 3.
IC's
The first line of
adjacent to the MPU system are the
compatible
PIA's
(type 8253A).
(type
8522A)
and
interface
microprocessor
INTERVAL
TIMERS
These devices connect directly to the
MPU
address and data busses and appear exactly like memory to
the MPU hardware and software.
Both types of devices are
programmable. PIA's 1,2 and 3 have a total of 72 programmable
I/O
outputs,
pins.
These are used to produce the 16
16 · test inputs,
and 40 outputs
necessary
test
to
drive the two 12 bit D/A's and two 8 bit D/A's.
Timer A is a special output that is used to
generate
complex pulse patterns of exact timing independent of MPU
control
once initialized.
For the test on PCB 1.0
this
30
timer simulat·es the breathing pattern of the patient.
Timer
rupt
two is used to generate a time delayed
that
stopping
is used by the test software as a
method
of
a scan subroutine that is in a loop looking for
some event,
assume
inter-
where that event never occurs.
some
test was searching for a
For example,
start
pulse
but
\couldn't predict exactly when that pulse would occur.
it
is
known that the pulse should happen at least
every 4 seconds,
If
once
the interrupt timer could be set for
5
seconds and the scan loop started. If, after 5 seconds no
pulse
was
failure.
detected
Thus,
timer
we would assume there was
a
board
gives us a method of . ending
the
scanning loop.
The
D/A's
all
next
level
of interface devices
and the level shifting circuitry.
static
devices in that their output
digital input with no clocking,
The
includes
the
The D/A's
are
follows
their
latching or MPU control.
12 bit D/A's are type 1220 and the 8 bit's are
801.
All
output
are
which
set up to deliver 0.000
to
4.095
is adequate because the PCB analog
type
volts
inputs
require from 0.000 to 3.000 volts.
Level shifting is necessary on the digital inputs and
outputs
because
the
test
system
is
completely
a
+5V/ground system and the logic on the test PCB's is + or
- 6V.
test
The inputs to the test system,
PCB,
the outputs of the
are protected from the -6V by in-line
resis-
31
tors.
The outputs from the test system use op-amp compa-
rator
circuits to develop the + and - 6V from the OV
5V
output.
See the schematics for details.
The
to
output
level shifting is also necessary on the digital output of
TIMER A.
The
~s
final stage of interfacing as shown in figure
5
J2 (jumper 2) which is actually a 50 conductor color-
coded bus,
switch
and SWITCH 1 which is a 48 pole,
seven throw
which is capable of switching all 44
connections
of the test PCB's at once. This switch would be necessary
if all seven PCB's in the respirator were to be tested.
3.4 Test System Software
Most
last
of the test system programs are located in
2K of EPROM memory,
there
are
the
from 1000 to
administrative
programs
17FF hex.
that
the
First
interact
directly with the test operator.
SETBOARD:
Allows the operator to choose the test or sub-
test to be performed using the SET CONTROLLER TYPE switch
on
RAM
the front panel.
The coded information is stored
and used by the program MAINTEST to determine
in
which
test or tests to branch to.
OUTTSTNO:
This
outputs the number following the call to
the center position of the display. This is called at the
beginning
of each test so the operator will
know
which
test is currently being performed.
FAIL: Called when a board failure is encountered. Outputs
"FFFFxx"
to
the
failure code,
'.call.
The
display where the xx is
the
specific
which is the byte following the subroutine
failure codes are sequentially stored in
RAM
for later use by the program PASS/FAIL.
PASS/FAIL:
program.
tests,
This
If
no
is
called at the end of
failures
the
were encounterd on
MAINTEST
all
five
the pass/fail LED blinks. If failures. were found,
the display steps through all the failure codes at approximately
one
second intervals in the FFFFxx format
and
the PASS/FAIL LED stays on continuously.
MAINTEST:
calls
all
This controls the main flow of testing,
the
subtests, if the complete test
is
which
being
performed or only one of the subtests if only an individual test is being performed.
SELFTEST: This tests all the system inputs and outputs by
means of a special test PCB that must be plugged into the
test
connector.
It toggles the 6utputs on and
off
and
checks that the inputs have been toggled. If any input or
output
fails it will be detected and a failure code will
be displayed.
33
ERROR:
Outputs
"EEEExx" to the display where xx is
byte following the subroutine call and is intended to
the
error
code.
This routine is intended
operating errors.
test
number
to
the
be
indicate
For example, if the operator chooses a
for which no test exists,
he will
get
an
error message.
ADJUST:
This
operator
is a special program that allows the
test
to make any PCB necessary adjustments with
propriate
feedback being displayed.
ap-
On PCB 1.0 there is
only one potentiometer adjustment that can be made, which
is the calibration of the BPM reading in test number 1.5.
If this program,
duces
ADJUST,
is called the test system pro-
an exact input breath rate of 30.0 BPM while
playing the indicated breath rate.
dis-
The operator may then
adjust the rate to 30 BPM.
The
directly
next series of programs are those that
with
the
hardware dependent
PCB
being
tested.
These
interact
are
programs that are used in the
the
actual
tests.
VOUT: This program sets the output on one of the four D/A
units.
where
The
program
is followed by five
bytes
"vvvvn"
v.vvv represents the voltage which can range
from
34
0.000
to
4.095
volts and n represents the
D/A
number
which can be 1 - 4.
INPUT:
Returns with R(7), the user stack, containing the
contents of the input port,
output of the test
call.
digital
There are two bytes following the
The first is the port number, 01 =PIA 2, PCO-PC7,
IN 1 - IN 8,
second
PCB~
which is the actual
or 00 =PIA 4,
PBO-PB7,
IN 9 - IN 16. The
byte is the data mask where 1 will give the input
state and 0 will mask the input, forcing a zero bit.
OUTPUT:
lowed
Controls the output lines to the test PCB.
by three argument bytes.
The first being
a
which determines which output bits are to be changed,
= change,
01
= no
the output bits,
be
zeros.
mask
00
change. The second is the new value of
if bits are not to be changed they must
The third byte controls which output port
being accessed,
Fol-
00 =PIA 4,
PA 0 - PA 7,
is
OUT 1 -OUT 7
and 01 =PIA 4, PC 0- PC7, OUT 9- OUT 15.
SETTIM: This program controls the output of Timer 1 which
is
a
special output to the test PCB that is capable
producing complex pulse patterns.
of
For test PCB 1.0 it is
used to produce the breathing pattern of the patient. See
figure
first
9. It is followed by two bytes T1T2 and T3T4. The
two bytes determine the period of the waveform and
35
the
second two bytes determine the low pulse
bytes
are
seconds.
in
BCD format and the times
are
time.
in
The
milli-
Therefore the range of periods is from 0.000 to
9.999 seconds.
T2.
Tl~
___.II._____
~-...--1
______.I
Figure 9
SETINT: This program starts a delayed interrupt that will
occur after a programmed time period if it is not stopped
by
the
scanning
program
ENDINT.
the
when
there
is
a
routine in one of the test programs looking for
some event to occur.
that
It is used
event
If the PCB has failed in such a way
never
occurs some
method
had
to
be
developed to terminate the scan. When SETINT is called it
is
followed by four bytes Tl T2 Al A2.
determine
The
to
the time until the p:rq_cessor
The bytes Tl
is
interrupted.
number is in BCD format and the range is from
99.99 seconds.
T2
00.00
The two bytes Al and A2 determine the
Q
•
36
program return address if the interrupt times out without
ENDINT being called.
lure
This address will always be a
message call because not finding an expected
faievent
can only happen due to a failure.
ENDINT:
ram
If this program is called after a scanning prog-
has sucessfully found an event it will wait for
SETINT
program to time out,
the
then return to the location
immediately following the ENDINT call.
The last set of programs are the five test
These
will be subdivided into test steps that correspond
to the different failure points that may be
Each
programs.
encountered.
test has an accompaning timing diagram.
diagrams
of
For
each circuit to be tested see Section
block
3.2,
"Test Board Specifications".
TEST 1.1:
buffers
This test simply toggles the input to the five
(which
buffers,
OUT 8),
inverting
cycle
is
the same input
line
for
all
five
and checks that the output of the non-
buffers has changed to the correct state.
times shown are for the continuous test mode
The
(see
Test System User Instructions).
FAILURE 01:
does
Occurs if any of the five buffer outputs
not come to a logic "1" state when the
set to "1".
inputs
are
37
FAILURE
02:
Occurs if any output doesn't track
input as it is set to a
TEST 1.2:
non
state.
This test checks that the Apnea line goes high
there is no breath for more than 19.0 plus/minus
it
the
2.5
seconds, unless terminated by the standby stopped input.
FAILURE
driver)
03:
Occurs
if the Apnea or Apnea {to
lamp
lines have prematurely {less than 16.5
seconds)
or if they haven't triggered by 21.5
seconds.
triggered
See timing diagram.
FAILURE
04:
Occurs if the set apnea lines
are
not
reset by the Standby/Stopped line going high.
TEST
In this test the INSP +PLATEAU {I+P)
1.3:
output
follows the INSP input except that it is prolonged up
2.0
seconds
INSP
PAUSE
input. This is an analog signal that can vary from
0.000
volts
any
depending
on the value of the
to
{no delay) to 3.000 volts (2.00 second delay).
At
time the INSP + PLATEAU output can be terminated
by
the PLATEAU STOP input.
FAILURE
the
INSP
05:
input
Occurs i t the I+P output does not track
when neither of the
other
inputs
are
present.
FAILURE 06: Occurs if there is not an immediate delay
in
the
1. 500
I+P output when the INSP PAUSE input is
vel ts.
set
to
38
FAILURE 07:
Occurs if the I+P has deactivated prema-
turely (less than .90 seconds).
FAILURE 08:
Occurs if the I+P has not deactivated by
1.1 seconds.
FAILURE 09:
Occurs if the I+P is not retriggered
by
the third INSP pulse . .
FAILURE
seconds
10:
(as
Occurs if I+P is delayed less than
the INSP PAUSE line has been set
1.8
to
3.000
volts).
FAILURE
11:
Occurs
if the delay was more than
12:
Occurs if the retriggered delay
2.2
seconds.
FAILURE
(still
set for 2.0 seconds) is not immediately terminated by the
active PLATEAU STOP input.
TEST
1.4:
triggering
This
and
program
controls
the
pressure
alarm
reseting.
Because
both
outputs
ALARM
PRESSURE LIMIT and PRESSURE LIMIT (TO LAMP DRIVER) always
output
at the same time only the first will be
referred
to, even though both are checked. See timing diagram.
FAILURE 13:
not
Occurs only if the ALARM RESET output is
equal to the PRESSURE SAMPLE input as it is
set
to
the "1" state.
FAILURE 14:
Occurs if ALARM RESET doesn't follow the
PRESSURE SAMPLE input as it is set to the "0 11 state.
FAILURE
15 AND 16:
Same as FAILURE 13 AND 14 except
39
ALARM RESET follows the STANDBY/STOPPED input.
FAILURE
doesn't
17:
Occurs
if ALARM PRESSURE LIMIT
go high when PRESSURE LIMIT REACHED
output
input
goes
high and 2 SEC ONE SHOT input goes low.
FAILURE
stay
18:
Occurs if ALARM PRESSURE LIMIT
doesn't
high after PRESSURE LIMIT REACHED input returns
to
the low state 2 SEC ONE SHOT input stays low.
FAILURE
return
low
19:
Occurs if ALARM PRESSURE LIMIT
doesn't
and ALARM RESET doesn't go high after 2
SEC
ONE SHOT returns high.
FAILURE 20:
Occurs if ALARM RESET doesn't return low
after approximately .001 seconds.
TEST
1.5:
This
test has only
one
input,
START
EXH.
SAMPLE, that goes active once each time the patient takes
a
breath.
From
necessary
derived.
the period of this signal the
to drive the "breaths per minute" display
Also a .320 second RATE ONE SHOT pulse is
duces each time the START EXH.
timing diagram.
pulses
out-puts
on
SAMPLE input occurs.
are
proSee
The test program starts counting the low
the CLOCK output after the CLEAR
output
and
stops counting at the LATCH output. It then compares that
number with the expected number.
FAILURE
22:
Expected
count,
6 BPM,
fail
if
not
between 4 - 8 BPM.
FAILURE 23:
Expected count, 30 BPM, fail if not 28 -
40
32 BPM.
FAILURE 24:
Expected count, 60 BPM, fail if not 58 -
62 BPM.
FAILURE
following
25:
Occurs if RATE ONE SHOT doesn't go
START EXH.
FAILURE 26:
low
SAMPLE input.
Occurs if RATE ONE SHOT doesn't stay low
for at least .300 seconds.
FAILURE
27:
Occurs if RATE ONE SHOT doesn't
high after .340 seconds.
return
TEST SYSTEM OPERATING INSTRUCTIONS
4.1 Operating Instructions
Following
are the actual operating instructions nec-
essary to perform the various PCB tests. It is given as a
step-by-step outline.
1) Power on
2) Set selector switch to PCB number to be tested.
3) Insert PCB to be tested with component side up.
4) Select test number.
a. Push RESET switch
b. Hold
SET CONTROLLER TYPE switch down
until
first digit of test number appears on display
c. Hold SET CONTROLLER TYPE switch
down
until second digit of test number appears on display
d. Push START/STOP switch to start test
4.2 Test Options
There
are
performed.
of
the
several
types
of
tests
that
be
These are listed below. The primary intention
sub-tests is that they be used by an
technician
can
with
an oscilliscope and
41
PCB
electronic
schematic
to
42
locate and repair specific problems. All of the sub-tests
are
continuous
repetitions of the same test.
known test pattern applied,
tion
With
(which can be found in
3.4 of this document),
the
sec-
it should be simple to iso-
late the problem and make the necessary repairs.
TEST OPTIONS
Test Number
1.0
Ex~anation
PCB 1.0 test,
Complete
includes all five
sub-tests
1.1
Sub-test 1.1
1.2
Sub-test 1.2
1.3
Sub-test 1.3
1.4
Sub-test 1.4
1.5
Sub-test 1.5
1.6
Special
test that is used to
adjust
BPM
rate potentiometer
1.1
Special
inputs
test that tests all
and
outputs,
special test board
Table 3
must
test
be
used
system
with
43
4.3 Error Code Interpretations
At
present there are only two error codes
that
interpreted as follows.
ERROR CODES
Erro!_ Qode
Inter2retation
01
PCB board number out of range
02
Test number out of range
Table 4
are
44
4.4 Failure Analysis
The
tested
PASS/FAIL format is as follows.
with
test
number 1.0 and passes all
PASS/FAIL LED will go on and stay on.
or
If the
PCB
tests
the
If there were
one
more failures the LED will blink on and off
display
and
will cycle continuously through all the
codes encountered in the tests.
is
the
failure
These should be recorded
by the operator along with the PCB serial number.
If the PCB is tested with one of the continuous
tests
each
failure
code will be
displayed
as
subit
is
encountered.
Following
is
a list of the failure codes
with
tests to which they apply.
FAILURE CODES
Test Number'
Failure Codes
1.1
01,02
1.2
03,04
1.3
05,06,07,08,09,10,11,12
1.4
13,14,15,16,17,18,19,20,21
1.5
22,23,24,25
1.7
00
Table 5
-
~--
____ ,._-
-
---
--~
·---'--·· .......__
__
~._...___-
__.....~
___ ............._. ____ --"-"'
...............
-
-
_.......___
~--·
~-
the
45
REFERENCES
RCA Corppration,
User§.
MicrQJ2rocess.Q_!:LUSA,l977
M5!nua_! for the
Swan, Tom,
Programmer§. Q.uide to
Hayden Book Company, 1981
th~
CDP1802
180~,
New
COSMAC
Jersey,
APPENDIX A
SOFTWARE
46
47
PROGRAM NAME: START
FUNCTION:
INITIALIZATION AND MAIN CONTROL PROGRAM
REGISTERS USED: R7
FR
[!3
F8
A3
F8
84
B5
F8
A4
FB
A5
F8
87
FB
A7
F8
82
BF
BE
BA
BB
BC
BD
F8
A"·'
F8
AF
F8
AE
F8
AA
F8
AB
F8
AC
0800
0802
oso:::
081)5
0806
0808
0809
080A
080C
0800
080F
0810
0812
081.3
0815
0816
0818
0819
081A
081B
081C
081D
081E
081F
0821
0822
0824
0825
0827
0828
082A
0828
082D
08:-?E
0830
os:::1
083:':.
0834
0836
0837
l.DI 08
PHI 3
LDI 50
PLO 3
08
50
LDI
PHI
PHI
LDI
PUJ
LDI
F'LO
LDI
PHI
LDI
F'LO
LDI
PHI
PHI
PHI
PHI
PHI
09
01
81
27
FF
2h
1-F
00
20
61
38
:"27
F8 29
AD
FB 08
Bl
F8 50
-
--
~
--"---
--~-
~
--
~- _---.......~.
----
_._.......__ - - -·- -"" ---
4
5
01
4
81
5
27
7
FF
7
26
2
F
E
A
B
PHI
c
PHI
LDI
PLO
LDI
PLO
LDI
PLO
LDI
PLO
LDI
PLO
LDI
PL.O
LDI
PLO
L.DI
PHI
D
FF
2
00
F
l~DI
-
09
---~~
-
20
E
61
A
38
8
27
c
29
D
08
1
50
~----~~->-"'-.-
48
@ •
\
''F
..:: .
06
SF
66
16
16
2F
2F
FB 00
OED2
OED3
OED4
OEDS
OED6
OED7
OED8
OED?
C•ED()
C•EDC
OEDD
OEDE
OEDF'
FB
OEEI.
~5F
OEE2
66
OEE-::5
F8 00
AF
~:iF
61:~
=r--
OEES
OEE:6
OEE7
OEEB
OEE9
16
06
OEE:A
A8
OEE-:8
OEEC
OEED
OEEE
OEEF
DS
98
B3
OEFO
OEF1
06
BB
16
8!'-)
(.\3
o·,·-·
'<c.=-
L...J
DEC F
LD 6
STR F
OUT6
INC 6
INC 6
DEC F
DEC F
LDI 00
STR F
OUT6
DEC F
LDI ...,r.!..
.LJ
STR F
OUT6
LDI 00
FLO F
LD 6
PHI 8
INC 6
LD 6
F'LO 8
INC 6
RTN
GHI 8
PHI 3
GLO 8
PLO 3
..,.
SEP ·-'
49
PROGRAM NAME: TRAN MEM
FUNCTION: CALLED BY FUNCTION #6
ENTER BEGINNING AND END ADDRESS OF BLOCK
AND STARTING ADDRESS OF DESTINATION
REGISTERS USED: R7 R8 R9 RA
OF0('
C•F(L3
OF04
OF05
OF<)f:,
<)F09
OFOA
OFOB
OF<:•C
or--oF
D4 OD 80
BA
88
D4 OD BO
07
()A
A8
IH OE 80
D4 OD BO
OF12
07
or~c::
89
88
OF14
OF15
UFJ.8
OF19
OFJ.A
CW1B
OFJ.E
OF21
OF22
OFT!.
OF:,~t:,
OF27
OF:?B
OF2B
OF2E
oF:'>c:,
(lF:.''.2
or::;:::
A9
A8
04 or:: 80
D<1 00 80
07
...:::.
30 ._:-:r•-\
30 47
OA
lA
OA
oF:;c.s
58
E7
or:::.9
99
OF::'·A
OF:3B
9A
OF~5C
POINT 1
58
18
OF30
PHI 8
B8
04 OD l'30
07
AB
04 UE 80
D4 (IF 80
OF:C.4
oF:;':6
PHI 8
CALL IN 2D
...,
LO I
PLO 9
PLO 8
CALL FULL DUT
CALL Il'l 20
LO 7
D<'l OD 80
07
or:g)
or:37
CALL IN 2D
LD 7
PHI A
PHI 8
CALL IN 2D
LD 7
PLO A
PLO 8
CALL FULL. DUT
CALL IN 2D
LO 7
F'HI 9
07
r.:--7
d'
F5
"':!'"'"':'
._
...:.. 41
POINT 4
CALL IN 2D
LO 7
PLD 8
CALL FULL OUT
CALL STEP/STOF'
BR F'Oli'H 1
BR POINT 2
LO A
STR 8
INC A
INC 8
LO A
STR 8
SEX 7
GHI 9
STR 7
GHI A
SO
BZ POINT 3
50
OF:::':F
OF41
30
:.::.4
89
0Fif2
57
OF 4:3
BA
F5
3A 34
D5
OF'lll
OF4:-:5
OF47
POINT
F"OI NT
:!,
~
..::.
BR F'CJINT 4
GLD 9
STF\ 7
GLD A
SD
BNZ F"(JINT i~
RTN
51
PROGRAM NAME:
ENDINT
FUtiCTICJt-.J:
END POUTit~E OF "SETINT"
WAITS FOR END OF INTERRUPT
RETURNS CONTROL TO CALLING PROG
REGISTERS USED: Rl R3
ur5o
FD OF
OF~32
Bl
FF.J
OF~.s::>
~57
OF5~:;
A1
OF~i6
00
FB OF
83
FB ~SE
f)F~:;7
or-5?
OF':'iA
OF5C
OF':'iD
OF5E
A:!.
D3
D':'i
J_D I
PHI
LDI
PLO
IDL
LDI
PHI
LDI
F'LO
SEF'
RTN
OF
1
57
1
OF
~
._:,
5E
..,.
-....:·
3
52
F'F<CH:=if\At·1 nr.t·1E:
STEF'/STOF'
FUI'ICT I Of'.!:
,JUI'1F' CAUSED BY USEF< COI\ITROL f<EYES
STEF'/STOP/CHANGE TO NEXT BYTE/+2/+4
RESF'ECT I 'v'EL Y
REGISTERS USED: R7
r)Ff:JO
D4 OD
OFD~::
07
OFB4
OFD6
OFB8
OFflA
OFBC
onJE
OF90
OF9'2
OF-'?::">
(>F"?4
OF95
OF'7'h
FF 44
~~::2 96
---~~----~
ou
POINT
4
CALL IN
LD 7
SMI 44
BZ POINT 1
FF' 04
SMI
94
FF 04
BZ POINT 2
:::2
Sl"l I 04
BZ POINT ~~
BR POINT 4
32 7 ..::.
30 80
,-,~.
r=·CJrrn 3
lb
16
16
POINT
2
F'CJ I NT
1
16
DS
~---~-
04
-~-- ....... ---~-------
Ir~c
6
Il'lC 6
11\lC 6
!t-IC 6 ·
RTI'J
__ ........... ______ :'L._....-_.o,M............_..._
-------~-~-
53
PROGRAM NAME: OUT TEST NO
FUNCTION: OUTPUTS NUMBER IN BYTE FOLLOWING CALL TO
CENTER DISPLAY POSITION
USED TO OUTPUT CURRENT TEST NUMBER
REGISTERS USED: R7
OFDO
CIJ.
06
NOF'
OFD1
OFD:2
,J,
"'"'
STR 7
H-IC 6
CAI_L OUT •+U
RH,j
OFD.3
L.D 6
UFD4
16
D<1 OE:: 00 40
OFDB
D5
--~---~----~~~---
....._~
___ ............
L--------~------
-........-.J,. ____ .. __ ..._....._
-·---"'-------
54
PROGRAM NAME: VOUT
FUNCTION: SETS VOLTAGE ON D/A'S 1-4
THREE BYTES FOLLOWING CALL V1V2 V3V4 D/A
VOLTAGE FORMAT V1.V2V3V4 0.000 TO 4.09S VOLTS
REGISTERS USED: R7
'\
10F6
t OF 7
10F8
l0Fc9
10F(-l
lOFB
10FC
lOFD
10FE
1101
1 102
1.103
1 105
t 107
1 1 0'?'
11 OB
1 lOD
11 OF
1111
1 112
1 11:::
1.1l.4
1 11S
1 1 16
1 118
1 1 1A
1 11 B
lll.C
1 11 D
11l.E
11 1F
1.1 ~~ 1
1 1'~.'"":1
1124
1 125
LD 6
STF\ 7
INC 6
DEC 7
LD 6
STR 7
06
57
16
27
06
57
16
!.7
D4 OA 94
EF
06
FF OJ.
-;r..-"\
-...:•..::.
21
FF 01
32 39
30 55
.,..,
18
FB 05
AF
-...:·..::.
27
65
30
07
11 :,~A
FE
-----------
POINT 4
07
SF
11 :?8
---
---
CALL BCD/BIN
SEX F
LD 6
SI'1I 01
BZ POINT 1
SMI 01
BZ POINT 2
BR POINT 3
BZ POINT 4
LDI 05
PLO F
DEC 7
L.D 7
27
1 12'?'
l l.:::'h
1 1'27
POINT 8
07
SF
6"'-"
d
30 53
F8 04
AF
E7
F8 00
AF
27
07
SF
17
L.o:...
UJC 6
It·JC 7
POINT 1
----~---
-----
STR F
OUTS
BR POINT 5
LDI 04
F'LO F
DEC 7
LD 7
STR F
OUTS
BR POINT S
SEX 7
LD I (H)
PLO F
DEC 7
LD 7
STR F
INC 7
LD 7
SHL
-~-------------"---............___-
------
---
55
@
'
1128
11:!c
1120
J.12E
112F
1131
1132
1. L'-3
1135
J 1::.6
1137
1.139
113A
l13C
113D
l1:3E
11 :3F
1.140
1141
1.142
1143
1145
1146
1147
1 1 •1'?
l14A
1148
114C
114D
ll<lE
1150
1.151
1153
.lE!4
1155
1.156
1157
11~58
115'?
1.15A
1158
1.1~:iC
1150
1.15E
115F
1.160
J. 16 .l
11.6'2
116::::.
1164
1165
1166
FE
FE
FE
57
FB 02
AF
OF
F{-'1 OF
F1
~:iF
:::.o 47
E7
FB 01
AF
27
07
POHH
,,
L
5F
17
1F
OF
FA
F1
5F
FB
AF
EF
62
62
62
FB
AF
30
17
D5
E7
r:--7
_,:_;
07
F6
F6
F6
F6
57
17
07
27
FE
FE
FE:
FE
Fl
57
1.7
FO
00
POI~H
6
POINT
<o-
00
54
,_J
PDHH 7
POINT
~:;
SHL
SHL
SHL
STR 7
LDI 02
PLO F
LD F
ANI OF
OF\
STR F
BR POINT 6
SEX 7
LDI 01
PLO F
DEC 7
LD 7
STR F
INC 7
INC F
LD F
ANI FO
OF:
STR F
LDI 00
PLO F
SEX F
OUT2
OUT2
OUT2
LDI 00
PLO F
BR POINT -,I
INC 7
RTN
SEX 7
DEC 7
LD 7
SHR
SHR
SHR
SHR
STR 7
INC 7
LD 7
DEC 7
SHL
SHL
SHL
SHL
OR
STR 7
INC 7
•
56
@
1167
1.168
1169
1.16A
1168
j. 16C
1160
llbE
116F
117.1.
11T3
'\
07
F6
F6
F6
F6
57
EF
06
FF 03
32 18
:3o OF
LD 7
SHR
SHR
SHR
SHR
STR 7
SEX F
LD 6
SMI 03
B-·L POINT 4
BR POINT 8
•
57
PROGRAM NAME: OUTPUT
FUNCTION: OUTPUTS TO PCB BEING TESTED BYTE #1 = BITS TO
BE CHANGED O=CHANGE l=NO CHANCE BYTE #2
NEW
VALUE <NO CHANGE MUST=O) BYTE #3 !=PORT C O=A
REGISTERS USED: R7
'\
1180
1181.
1182
1.183
1184
l1B6
118 7
11 El8
118A
l1DC
118[)
l1FiE
l.18F
1.190
1 t 91
1192
119~'>
1194
1195
1197
119<;1
l19A
1t9B
119C
119D
l19E
11 (;>F
ll.AO
1lA1
11A2
11 A <'I
11A5
11 A6
l1A7
EF
16
16
06
FF 00
26
26
3A . I
F8 oc
AF
06
..,_
F.-:·
5F
16
06
Fl
5F
63
30 A2
F8 OE
AF
06
F':>
5F
16
06
F1
5F
6""
·-·
F8 00
AF
1.6
16
D5
q~
"-----~
SEX F
INC 6
INC 6
LD 6
SMI 00
DEC 6
DEC 6
BNZ POINT 1
LDI oc
PLD F
LD 6
AND
STR F
INC 6
LD 6
DR
STF: F
OUT3
BR POINT L
LDI OE
PLD F
LD 6
AND
STR F
INC 6
LD 6
DR
STR F
OUT3
LDI 00
PLD F
It~C 6
INC 6
F\TN
~
POINT 1
POINT 2
--------·
-·-----
-----------------
--··~-
58
PROGRAM NAME:
INPUT
FUNCTION: FIRST BYTE = 01 PORT C IN1-IN8
FIRST BYTE = 00 PIA 4 PORT B IN9-IN16
SECOND BYTE=MASK !=DATA 0=0
REGISTERS USED: INPUTS TEST PCB DATA
\
11 8 1)
1.181.
t 1 B2
1.1 B4
1185
t 187
1189
EF
SEX F
LD 6
SMI 00
INC 6
BNZ POINT 1
LDI OD
Ob
FF 00
16
3A BD
FB OD
AF
68
118A
1188
30 Cl
11BD
11BF
FB 06
AF
11CO
6D
11C1
06
l1C2
11C-3
F-::>
SF
t1C<'l
57
11C5
11C6
11 C8
1.1C9
FB 00
AF
16
DS
F'UJ F
POINT 1
POINT 2
INP3
BR POINT 2
LDI 06
PLO F
INP5
LD 6
AND
STR F
STR 7
INC 6
LDI 00
PLO F
RTN
59
PROGRAM NAME: VOUT TEST MAN
FUNCTION: CALLED BY FUNCTION #7 USER ENTERS AID NUMBER
THEN FOUR DIGIT VOLTAGE FORMAT #.I## FROM
0.000 TO 4.095 VOLTS THEN STEP TO CONTINUE
REGISTERS USED: R7
\
1'200
l2U~">
1 :.,~f)7
1.:208
1209
l.2UC
120D
l20F
1210
j2J.2
121:3
1.215
1216
1.218
1219
1.2J.B
1:21C
D4· OD 80
D4 OE 00 1)0
27
C!l
D4
E')
F8
BO
F8
{40
F8
OD AO
25
08
00
'"..,..
I ._:,
F8 1 .-,
7-'!
·-·
F8 co
73
17
~-
t:~ll)
t)7
121.F.:
73
l2J.F
27
:t 2:20
27
1. 2:~ l
12.22
7.3
t)7
1223
17
1224
07
1.2::~5
T5
1:2'26
l 2::~8
F8 F6
73
FB 10
122'7
l :.?2B
l22C
l22E
122F
1. 2:;o
/ -2·
F8 D4
7~3
17
co
25 00
CALL IN 2D
CALL OUT 00
DEC 7
NOP
CALL I/0 4D
SEX 0
LDI 25
FHI 0
LDI 08
PLO 0
LDI (l(l
t3TXD
LDI 1:S
STXD
LDI co
STXD
INC 7
LD 7
STXD
DEC 7
DEC 7
LD 7
STXD
INC 7
LD 7
STXD
LDI F6
STXD
LDI 10
STXD
LDI D4
STXD
INC 7
LBF\ 2500
60
PROGRAM NAME: ERROR
FUNCTION: OUTPUTS 'EEEE H#' TO DISPLAY TO INDICATE AN
ERROR H# IS BYTE FOLLOWING CALL
REGISTERS USED: R7
'\
1270
1.271
127:'.
17
F8
r::-,
J,
EE
1T711
04 OE
1:.?78
D4
127C
127D
l27E
d'
1.'282
16
(l(l BO
OE 00 40
06
t:--.,
D4
OE 00 00
l2B:3
:n
128<'].
30 84
F'OI NT 1
INC 7
LDI EE
STF: 7
CALL OUT
CALL OUT
LD 6
STR 7
CALL OUT
INC 6
DEC 7
BR POINT
80
40
00
:t
61
PROGRAM NAME:
FUNCTION:
FAIL
OUTPUTS FAIL MESSAGE
STORES FAILURE CODE IN RC
REGISTERS USED:
(\ppr:~E:$0_
'\
____ I_t:j$J[\UCT I ON
l:29U
:1. 2<? 1
L293
1:29<1
FB FF
57
1298
C4
1.299
12'?A
1.298
CLJ
129C
~''
L?9D
12'?E
l2A.2
l:2A5
12(',4
l.2A5
J.2A7
j_
2!1f3
.l2A9
1'2A8
l2AD
12AE
R7 RC
l 7
1)4
OF 00 BU
C4
06
.:--,
5C
D4 OF
16
(H)
00
2'7
7B
FB 21
AE
OF
FB
(!I)
::;,(.)
AE
lC
05
POII'H 1
INC 7
LDI FF
STR 7
CALL OUT 80
NOP
NOF'
NOP
LD 6
STF: 7
STF: c
CALL OUT 00
INC 6
DEC 7
SED
LDI 21
PL.D E
LD E
LDI 00
BNZ POII'H 1
INC c
RTI'I
62
PROGRAM NAME:
rUt ICT I 01'·1:
SETTIME
SETS T I MEF:# 1 TD SIMULATE 8PM' S
REGISTERS USED: RF
nDDRESE> ______ )JJ[3T[~UCT I Dt-1
\
--··---·-----------· L.A):I.~L
..,.. QF ... GD D_~______!,A.P~b
l 2BO
l 2P1
EF
F8 08
SEX F
LDI 08
1 28~:.
1.2D4
1 ;,~D(o
1 2B7
1288
1 2P9
~'iF
PLO
12B8
12PC
SF
6<l
2F
F8 77
5F
htl
~-~BE
2F
F8 EC3
~~en
~jF
1 :2BD
l
t
l
F8 37
2C 1
1 2C2
1 2C!I
1 '2C5
t::?C7
t2C8
l2C'?
12C()
l:2CC
1 :::-en
l ~.~CE
1 :.::cr~
64
F8 08
AF
F8 50
F'LO F
ElTR F
16
INC 6
ClUT4
DEC F
06
5F
16
t
83
5F
6'l
64
2F
06
1 2D6
12D7
121)8
1 2D9
L.DI
STR F
OUT4
LDI 08
16
64
06
~'iF
64
2F
F8 02
SF
12DO
1.21Y1
l 20'S
Cl\JT4
DEC F
LDI 77
STR F
OUT4
DEC F
LDI 50
STR F
OUT4
DEC F
LDI 02
f3TR F:DUT4
LD 6
STR F
INC 6
OUT4
DEC F
LD 6
STf:;: F
INC 6
OUT4
LD 6
1 '.20 1
121!2
l2D3
F
LDI 37
STR F
5F
I
1 208
64
2F
1 2DC
l2DD
06
LD 6
5F
t~:>OE
1 (,
STR F
INC 6
21'{~
63
\
l2DF
1.2EO
12E2
1.2E~':.
64
IJUT4
FB 00
AF
LDI 00
F'LD F
D5
RTN
64
PROGRAM NAME: ADJUST
FUt·ICT I ON: F'DTEI'H I Dt1ETER {)Dc1USTMENT PRCJGF<At1
FCJR PCB #1
REGISTERS USED: R7
1:2E4
l2E6
12E7
l2EB
12ED
12EE
12F2
l2F9
1?FC
~
-
-
"
-
-
-
.
·
D4 OE 00 40
D4 12 BC> (H) 20 04
D4 14 80
30 F9
-
_______
F8 30
57
~
......._
57
04 OE 00 80
~
_____
F8 01
~
~
'\
______
._
______ ----
PDHH 1
LDI 01
STR 7
CnLL OUT 80
LDI 30
STR 7
CALL CJUT 40
CAL.!_ SETTIME 00200400
CALL SELF TEST
BR PCJINT 1
65
PROGRAM NAME:
TESTl/5
FUNCTION: TESTS PCB 1.5
REGISTERS USED:
0.QJ•IB.S~.$..
\
______!J~!.§.lE.W.~T!Dtl ______,_________.______________h.B.J;;i.~.h-------QE:.__ s.;:_g_p_s._____.......J,0.~~.h
1300
1.304
1308
1.310
131:::
1.3J.lf.
l31to
1. 3 lf:3
D4
04
04
D4
07
FF
3B
FF
l':'.J (.)
7~
OF
1.2
OE
14
DO 05'
BO 00 99 04
30 .30 00
80
l3lC
132:';
1.3:?8
04
4E
04
._..._:. 4E
D4 1.2 BO ()!) 20 04
04 OE 30 30 00
D4 14 80
co;::~e
07
t:32C
132E
:1.330
13:32
FF 1C
3B
FF 04
.,...,.
lT'!A
D4
04
1)4
(>7
FF
3B
FF
t=:'""'7'"
..J-~·
33
1 ::>7-B
1.3lf-O
l
:::.4-~':.
1.3£~<1
1346
1348
134(.)
1.2 BO 00 10
OE 30 30 00
(JLt
14 80
3A
58
04
1340
l34E
t :35~.:?
1.353
1357
1.358
7B
05
D4 12 90 22
05
D4 12 90
05
D4 12 90 24
t:35C
05
,..,~~
.o!..·-·
~
·"""------~---___..__~
~---~
CALL OUTTSTNO 05
CALL SETTIME 00990400
CALL F'REDELAY 3000
CALL COUNT
LO 7
SMI 04
BM POINT 1
SMI 04
BPZ POINT 1
CAL..L SETTII'1E 00200400
CALL F'REDELAY .3000
CALL COUNT
LD 7
St1I 1C
,,
BM POINT ..:.
SMI 04
BPZ POHH ..::...,
CALL SETTIME 00100400
CALL PREOELAY 3000
C{-)LL COUNT
LO 7
SMI 3A
BM POINT .3
Si'1I 04
BPZ POINT 3
SED
F:TN
CALL FAIL 22
RTN
CALL FAIL ..:..--·
RTN
CALL FAIL 24
RTN
.
,J-~·
33 58
131JC
--
NONE
......___~-------------
PDII'H 1
POINT 2
POINT 3
r")~
66
PROGRAM NAME: SELFTEST
FUNCTION: DfJES SELF TEST ON ALL INPUTS AND
OUTPUTS
SPECIAL TEST PCB MUST BE USED
REGISTERS USED: RB R7
\
1380
1.3BJ.
1 ~58:3
1.3El4
FB FF
SD
138A
D4
1390
78
D4 11 80 00 00 00
11 8n oo oo 01
D4 11. BO 01 FB
1398
07
FF 00
3A DC
1.3?()
139F
07
1-::'~:''i
1.:596
l3AO
1 3A~.2
l3A4
13AA
1.3BO
D4
11
BO t)O 77
FF (H)
3A DC
D4 11 80 00 FF 00
l3B6
04 11 80 00 FF 01
04 ll BO 01. FE3
07
FF F8
1388
3A DC
138~:;
POINT 2
1.3BA
D4
13DF
07
11
BO 00 T1
SED
LDI FF
STR 0
CALL OUTPUT 000000
CALL OUTPUT 000001
CALL INPUT 01FB
LD 7
!::!MI 00
B ~·1Z PO II'H 1
CALL INPUT 0077
LD 7
SMI 00
BNZ POINT 1
CALL OUTPUT OOFFOO
CALL OUTPUT OOFF01
CALL INPUT 01FB
LD 7
SMI FB
BNZ POINT 1
CALL INPUT 0077
LO 7
r:.co
FT 77
SI'1I
13C~
3A DC
1.3C4
13C5
FF 01
BNZ POINT 1
LD D
SMI 01
STF\ 0
BNZ POINT 2
LDI CC
STR 7
CALL ClUT 00
CALL OUT 40
CALL PREOELAY 0400
BR POINT 3
CALL FAIL 00
BR PDINT 3
1.3C7
13C8
l3CA
13CC
l.3CD
1 :::o 1
1.3D5
t::>oA
t:::mc
13E<)
(!f)
50
3A 8·1FB CC
57
04 OE 00 00
D4 OE 00 4-0
D-4 !)E 30 04 00
30 DA
D-4
1--:' 90 00
30 DA
POINT 3
POINT 1
77
67
PROGRAM NAME: MAINTEST
FUNCTION: MAIN FLOW CONTROL PROGRAM
REGISTERS USED: NONE
0!2DF:ESS
1400
36
1<102
OE
140:":
1.404
FF OJ.
1406
32 24
1.408
FF 01
1·1 1)A
32 20
lllUC
1/IOE
FF 01
3:2 20
1.41.0
FF 01
1412
32 2()
1.414
1416
141.8
1419
FF OJ.
l.4l.A
1418
l4l.C
1410
1)(>
tE
3:2 2t)
C4
C4
C4
C4
C4
14l.E
C4·
C 1l
14lf~
C4
D4
14:24
l42F
OE
FF
3A
D4
04
D4
14::::2
04 17 00
14:~9
142C
12 70 01
16 00
16 40
15 00
1 :;; 00
16 AO
1435
1)4
D4
11138
OE
FF Ol
~5C
l43E
144<:1
l'lll2
FT 01
1<144
FF 01
l. 4'16
61.
·-:r....,
·-'.£u
POINT 3
POINT 2
00
38
1'138
1 -'J.:::c
83 POINT
LD E
INC E
SMI 01
BZ POINT
SMI 01
BZ POINT
SMI 01
BZ POitH
SMI 01
BZ POINT
SMI OJ.
BZ POINT
NOP
1
2
:3
:3
:~
::':.
!'.lOP
1.4:::~1)
1425
1427
POINT 1
lob
1448
FF 01
1.44 {i
loB
POHH 4
NOP
NOP
NDF'
NDP
NOP
NOP
CALL ERROR 01
LD E
SMI 00
BNZ POINT 4
CALL TESTJ./1
CALL TEST1/2
CALL TEST1/3
CALL TEST1/4
CALL TE~3T 1/5
CALL PASSFAIL
LD E
!3M I 01
BZ PDII'H 5
SMI 01
In
PDHIT 6
SMI 01
BZ POINT 7
SMI 01
BZ PO II'H f.l
68
t41C
lllflE
1'150
U152
1451
1.4::)6
1458
1. 4~5C
145r
-=!'"':'
"w.O.i:._
70
FF 01
32 75
FF 01.
1464
l46h
Jll69
1.L16B
146E
J.ll-70
32 7r':l
..,_ 70 02
04 1'"'
04 16 00
3() 5C
D4 16 40
30 61
D4 1.5 00
30 66
D4 j -'-, 00
30 68
D4 13 00
14T"·
30 70
1475
f)/l- j ':' E4
30 -,.,.
.i .... J
D4 1-,.
. ·-· 80
1461
\
FF Ot
1478
l47A
SMI 01
BZ POINT 9
SMI 01
8""' POINT 10
SMI 01
BZ PDINT l1
CALL. EF;F:OF: 02
POINT 5
CALL TEST1!1
BR POINT ""
d
POINT 6
CALL TESTJ. /2
BF< F·OINT 6
POINT 7
CALL TEST1/3
BR POINT 7
PDil'H 8
CALL TEST1/4
BR POINT 8
POINT 9
CALL TEST1/5
BF: POINT 9
POitH 10 CALL ADJUST
BF: POINT 10
POINT 11 CALL SELF TEST
L.
69
{l
PROGRAM NAME: COUNT
FUt·ICT I Clt·l: COUNTS CLOG:: PULSES
REGISTERS USED: R7 RB RF
\,
1480
1.1182
148:3
:1484
1485
l4f:16
1487
1.4f:1E
1490
1.491
.1492
1.493
1 '19;:)
1.497
1il99
1.49A
1.498
l49C
H-90
149E
149F
1.4AO
14A1
1.4A3
14A5
1.4()7
14A9
t4r;A
14AC
l4AD
14Ar
1480
1481
1483
1485
1.4B7
1 •l88
l4BA
14BC
J.4BD
Hl 00
~57
58
C4
C4
C4
D4 OE AO 02 00 14
Ff3 06
AF
EF
6D
FA (>4
FF 00
::.A 92
C4
C4
C4
C4
C4
C4
C4
60
FA OA
FF OA
32 AO
FC 02
C4
~;;A BA
OB
FC 01
5B
6D
FA 02
FF 00
"":r':'
·-•.f.~
POINT 1
LDI 00
STF~ 7
STR B
NCJF'
NOF'
1\IDF'
CALL SET INT 02001405
LDI 06
F'LD F
SEX F
Il'lF'5
ANI 04
SMI (H)
BNZ F'O'I NT 1
NOF'
NOF'
NOF'
NOF'
NOF'
r-mP
POINT
~'
.L
POINT 4
BO
NOP
INF'5
ANI OA
St1I OA
BZ POINT 2
ADI 02
NOF'
.,..
BNZ POINT .,.:.
LD B
ADI 01
STR B
INF'5
ANI 02
SMI 00
BZ POINT 4
C4
NOF'
AO
FB 00
57
27
BR POINT
LDI 00
STR 7
DEC 7
~50
.,..
POINT ·-'
,,
.<:.
'
70
1 '1 [IE
0[1
l!JPF
5_7
14CO
17
D4 0'7 J.O
l4C1.
14C4
l4C5
14C9
l4CA
D4 OE 00 00
17
08
1 <lCB
57
J.IICC
F8 00
5F
CJID·1 OF 50
DS
1 •lCE
J.IJ.CF
'
27
1-IJDO
l<'ID3
14 fJ ·l
C4
1405
1409
D5
D4
12 90 21
LD B
l:·:lTR ....I
II,JC 7
CALL BIN/BCD
DEC 7
CALL OUT 00
INC 7
LD B
STR 7
LDI 00
srr:.:
F
NOF'
CALL ErmiNT
F\TN
NOF·
CALL FAIL 21
RTN
71
PROGRAM NAME:
FUNCTION:
TEST1/3
TESTS PCB 1.3
REGISTERS USED:
0.QDEf'~§.!:L_.
..... I . t.~~?_:U'<_l.J_c;:_IIPJ'J ________··---···------·----J=.B.~sk.______Q.E~_i;:;.Q.P..~---·-···--J.,.B._!Isb.
150A
151.0
1U F6 (1(1 00 01
D4 OF J.)(l 03
D4 11 80 (11) 40 00
1)4 1l BO 01 40
1 ~:i15
07
1516
1518
151A
~':·A
l)il
1.500
1. 50l1
\
R7
152t)
15:?5
t 5:?l:,
15'?8
15~':A
l5:?B
1s:2c
JS:?D
152E
1. 5;;~F
1s:::o
15::>t:>
15::-c
l5f1.1
1547
l54C
1 ~j4[)
154F
1.551
15~56
15~m
J.55C
155E
1560
1565
l.56A
156B
1.5t:.D
156F
1.570
1576
l.57C
[)/).
FF 00
07
J. 1 80 00 00 00
04 1 1 80 01 40
07
FF 40
~;,~
D7
C4
C4
CiJ.
C4
C4
C4
04
D4
DiJ.
))4
10 F6 15
11 80 (H)
OE 30 00
11 80 00
D4 11 80 01
07
FF 00
3A DC
D4 OE 30 00
D4 l. 1 BO 01
07
FF 00
3A El
D4 OE 30 00
Dt~
11 80 01
CALL \/OUT (H)(l(H) 1
CALl_ DUTTSTNO (13
CALL OUTPUT 004000
CALL INPUT 0140
LD 7
St1I 00
BNZ POINT 1
CALL OUl"F'UT (H)(1(l(H)
CALL INPUT 0140
LD 7
SMI 40
BNZ POINT 1
NOP
NOP
NOP
NOP
~mP
00 01
40 00
01
(H) 00
40
80
40
40
40
07
FF 40
:;A E6
C4
lVI 10 Fb ::;o 00 01.
D4 1 1 f-30 I)!) 40 00
D4 OE 30 00 01
NOP
CALL VOUT 150001
CALL OUTPUT 004000
CALl_ PF\EDELAY (H)01
C~"'!LL OUTPUT 000000
CALL INF'UT 0140
LD 7
SMI (l(l
BNZ POINT 2
CALL PRE DELAY 0080
CALL INPUT 0140
LD 7
SMI 00
Bl'JZ POINT .3
'
CALL PF:EDELAY 0040
CALL INPUT 0140
LD 7
SI'1I 40
BNZ POINT 4
NDF'
CALL VOUT :;;oooo1
CALL OUTF'UT 004000
CALL PREDELAY 0001
72
1581
1.:587
15BC
J58D
15f,)f:C
1591
1596
1.598
t59C
1.59E
1 5()0
1.5{)~)
\,
15M)
1.5t'B
15AD
1.5PtF
1580
1586
l.5BB
15C1
15C6
1.5CC
l.5Dl
1.~)[);?
1504
1~)1)6
15D7
l5DB
15DC
1.5EO
15E1
l5E5
15E6
l5EA
15EE<
1.5EF
1 ~:JFO
l5F4
1~3F5
t~5F9
15F?1
1.5FE
D4
D4
07
FF
3A
D4
04
1l 80 00 00
1l. 80 01. 40
(H)
00
EB
OE 30 01 80
11 BO 01 40
07
FF
3A
Otl
D4
00
FO
OE 30 00 40
l l [H) 01 40
(>7
FF
3A
C4
04
D4
04
D4
D4
04
07
FF
3A
D5
40
F5
80
30
80
30
80
11. 80
11
OE
11
OE
11
00
00
00
00
00
01.
40 00
01
20 00
01
00 00
40
40
FA
12 90 o~:;
1)5
04 12 '7'0 06
D5
90 07
04 1 ,,
.<..
1)5
OLf· 1 ,.., 90 08
D5
90 09
D4 1 ,,
<05
04 17 90 10
D5
04 1 '-' 90 :1.1
D5
04 12 90 12
D5
D4
~-
POINT 1
POINT 2
CALL OUTPUT 000000
CALL INPUT 0140
LD 7
St-11 00
BNZ POINT 5
CALL PREOELAY 0180
CALL INPUT 0140
LD 7
SMI 00
BNZ POINT 6
CALL PREDELAY 00,+0
CAU_ INPUT 0140
LD 7
SMI 40
BNZ POINT 7
NOF'
CALL OUTPUT 004000
CALL PF:EOELAY 0001
CALL OUTPUT 002000
CALL F'REOELAY 0001
CALL OUTPUT 000000
CALL INPUT 0140
LD 7
Eii'1I 40
BNZ POINT 8
FHN
CALL F.AIL 05
RTN
CALL FAIL 06
F(TN
POINT
.~5
POINT 4
POINT "'d "
CALL FAIL 07
RTN
CALL FAIL 08
RTN
CALL FAIL 09
F(TN
POitH 6
POINT 7
F'O I t'lT 8
CALl_ FAIL 10
FHN
CALL FAIL 11
RTN
CALL FAIL 12
RTN
73
PROGRAM NAME: TESTl/1
FUNCTION:
TESTS PCB 1.1
REGISTERS USED: R7
\
DO 01
1bOU
04 OF
1604
C4
C4
C4
04 11 BO 7F
D4 1l 80 00
07
FF lF
·-:r ,..,
-.:.• ..::. 1B
D4 12 rro 01
D4 11 gr) 7F
D4 1l BO 00
07
FF (lr)
._::...::. 2F
D4 12 90 ():2
D4 OD 20 FF
C4
C4
1605
1606
1607
16(>0
161 :?
1613
161 ~3
161.7
161B
11..<21
1626
1.6'27
1629
ltJ:.~B
162F
1633
1634
16:35
80 00
lF
00 00
POINT 1
lF
St1I 00
-;rr"'\
1)5
CALL !JU.f'T~>TND 01
NOP
NOP
NDP
CALL OUTPUT 7Ff:3000
CALL Jf',JPUT 001F
LD 7
Si"H 1F
BZ POINT 1
CALL FAIL 01
CALl_ OUTPUT 7FOOOO
CALL INPUT OO.tF
LD 7
POINT .-,
..::
,,
BZ POI)H ..::
CALL FAIL 02
CALL DEU)Y FF
NOP
NOP
RTN
74
PROGRAM NAME:
FUtiCT I ON:
TESTl/2
TESTS PCB 1 . 2
REGISTERS USED:
NONE
O.R. ~!I3S.§.!?____ Jll9.IEWJ;:JJ.Q.t! _____________'=-.f.:'IJ~f::;:_b,___Q[:._~gQ[.:;___L_B._£.~.'=.
\
16'10
1.6411
1611(\
1.64F
1655
1.6':5A
16~.5F
1.61>0
16.'<~
:1. b/.:. 11
166'?
l66E
16bF
1.671
167:3
1.679
167E
1.684
1b89
!bElA
168C
OF DO 02
11 80 EF 10 00
OE '30 00 01
J.1 80 EF 00 00
D4 OE 30 16 50
D4 11 BO OJ. 30
07
FF (H)
3A ElF
D4 OE ~:>0 05 00
J)iJ. 1 1 80 01 30
n......,
•. I
FF 30
3A SF
D•l 11 80 F7 Of3 00
D4 OE :::T.O 00 01.
04 11 80 F7 00 00
[)4 11 80 01 :::r.o
07
FF 00
3A 94
04
D4
04
D4
l6E~E
))5
168fC
1693
1694
.1.698
04
L~
'70 03
POINT 1
O•l
POINT "£..
D5
D4 1')
D5
9(1
CALL OUTTSTNO 02
CALL OUTF·UT EF1000
Ct'iLL PRE DELAY 0001.
CALL OUTPUT EFOOOO
CALL PRE DELAY 1650
CALL INPUT 0130
LD 7
St1I 00
Bt•IZ POINT 1
CALL PRE DELAY 0500
CALL I t·lF'UT o t::::.o
LD 7
StH 30
BNZ POitH 1
CALL OUTPUT F70800
CALL PREDELAY 0001
CALL OUTPUT F70000
CALL INF'UT 01::':·0
LD 7
SI'1I (l(l
,,
Bt·IZ POINT . ::.
RTN
CALL FAIL o:::
RTN
C~'\LL FAIL 04
RTN
75
PROGRAM NAME:
PASSFAIL
FUNCTION:
FINAL PASS/FAIL OUTPUT PROGRAM
CAUSES PASS/FAIL LED TO BLINK
OUTPUTS ALL FAILURE CODES
REGISrERS USED: R7 RC
\
16AU
1.6A2
lbA3
16A7
1 6(18
l6f"'C
FEJ 80
AC
04 OD 20 40
.
78
D4 OD 20 40
7A
16{)1)
oc
lfd1E
FF (10
:3A BF
1680
"
LDI 80
F'LD c
CALL DELAY 40
SED
CALL DELAY 40
f'<EQ
LD c
St·1I 00
81\IZ POif\1T
1
76
@ '
PROGRAM NAME:
TESTl/4
FUNCTION: TESTS PCB 1.4
REGISTERS USED: R7
AI2Pf3_F;,~-~-----l.N$~J..!3JJJ:;.I_LQ_I:'l
C-·'1
C4
NfJP
1701
1702
[if.
170)
1 7(17
170D
OF DO U4
1 1 f30 FO
D4 l1 80 (H)
07
FF 40
NOP
CALL OUTTSTNO !)if.
CAU_ OUTPUT F00501
CALL INPUT 0040
LD 7
!:'31'1 I 40
BI'IZ POINT 1
CALL OUTPUT F00401
CALl_ INPUT 0000
LD 7
SMI 00
ro
BNZ F'OINT ..::.
CALL O.UTF·UT 000800
CALL INPUT 0040
LD 7
St1I 40
BNZ POINT .3
CALL OUTPUT 000000
CALL INPUT 0040
LD 7
SMI 00
BNZ POINT 4
CALL OUTPUT F00201
CALL INPUT OOEO
LD 7
St1I AO
BNZ POINT 5
CALL OUTPUT F00001
C(4LL INF'UT OOEO I
LD 7
SMI AO
BNZ POINT 6
CALL PRE DELAY 0001
Cf\LL OUTF'UT F00401
CALL I ~-JF'UT OOEO
L.D 7
5~11 40
BHZ POINT -,I
1700
"'
______________ '=B.!i~b---_Q£:-CODE ____k_B.f:~~'=
171.2
171.3
1 7 j ~':i
1717
1711)
j 7:,~2
172:3
1725
1727
17:::~D
1732
1733
[)/f.
D4
D4 u
11
07
FF 00
3A 97
D4 11
D4 11
D4
1 ]•1-:3
FF=-
1747
1740
1752
1.753
1755
1. 7:.)7
175D
1762
1763
1765
1767
l76C
1772
01
tlO
80 FO 04
BO 00 00
01
80 00 OEJ 00
BO
(H)
40
1 1 BU
1 1 80
(l(l
Ot)
00
40
07
1737
173{)
l71f.2
1745
0~.)
:'r,A 92
FF
3A
D4
D<l
07
1T:'r,;o;
t,JDF'
40
'7'C
(1()
00
3A Al
D4 1 1 80 FO 02 01
D4 11 80 00 EO
07
FF AO
A6
D4 11 80 FO 00 01
D4 t l. BO 00 EO
~_!.{)
07
FF AO
3A AB
D4 OE 3(1 00 01
D<l 1 l 80 FU 04 01
D'l 1 1 DO 00 EO
:1.7-77
07
1778
177{)
FF 40
3A BO
77
\
17_7C
1781
1786
l7El7
1 .7B7
17813
0<1 OE 30 00 o·1
1)4 11 8(1 00 70
07
FF 00
3A 8~.)
D4 OD 20 FF
t7m~
05
1790
1791
1792
1796
17''17
CIJ.
C4
1798
0'3
t79C
1 7f':)0
17AJ.
D4
05
D4
17A~':i
I)~)
17(~6
D4
17AA
17{'.[1
17AF
1780
1784
1785
1789
05
[)4
12 90 t:::.
F'fJ I t'-IT 1
12
05
D4
D4
c-;()
14
FDINT 2
12 90
J.~
POINT 3
12 90 16
POINT 4
12 90 17
F'UINT 5
12 90 1B
POINT 6
90 19
PDINT 7
12 90 20
PDINT 8
F'nN
D~:i
D4
1'-"
05
[).lf.
0:"5
Cf..,L.L Pf\EDELAY 0001
CALL INPUT 0070
LD 7
SMI 00
BNZ F'CJ I I\IT 8
CALL DELAY FF
RTN
NOF'
NOP
CALL FAIL 13
RTN
CALL F(HL 1.4
RTN
CALL Ff.HL_ 15
RTN
CALL FAIL 16
C?1LL
RTN
C{-)LL
RTN
CALL
RTN
CALL
RTN
FAIL 17
FML 18
FAIL 19
FAIL :!o
78
\
0839
1)83A
0838
083C
083D
083E
083F
0840
0841
0842
0843
0844
0845
0846
0847
0848
0849
08'1-A
0848
084C
084D
0811-E
084F
0850
0852
0853
0857
0858
085F
0862
0864
0867
0869
086C
086E
0870
0871
0872
0873
0874
0875
0876
0877
0878
0879
087A
0878
087C
0870
087E
087F
0880
A1
D3
AD
D3
00
(H)
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
F8
57
D4
D4
D4
D4
3E
D4
3D
D4
3C
00
OE
OE
OE
OD
67
14
6C
09
62
30 80
00
00
00
00
00
00
00
00
00
00 80
00 40
00 00
40
00
~·
POINT ·-'
POINT 1
93
POINT 2
O(l
00
(I (I
00
00
(l(!
00
D4 OD 00
POINT 4
PLO
..,.
SEP ·-'
PLO D
SEP 3
IDL
IDL
IDL
IDL
IDL
IDL
IDL
IDL
IDL
IDL
IDL
IDL
IDL
IDL
IDL
IDL
IDL
IDL
IDL
LDI 00
STR 7
CALL GUT 80
CALL OUT 40
CALL OUT 00
CALL !NIT
BN3 POINT 1
CALL TEST MNGMNT
BN2 POINT 2
CALL SETBOARD
..,.
BN1 POINT ~'
BR POINT 4
IDL
IDL
IDL
IDL
IDL
IDL
IDL
IDL
IDL
IDL
IDL
IDL
IDL
IDL
IDL
IDL
CALL IN
79
'
088:3
088<1
0886
0888
0888
088C
088E
0890
0892
0894
0896
089B
089A
089C
089E
OBAO
OBA2
08A4
08A7
08A9
08AC
08AE
08B1
088~)
08B6
OBBB
OBBB
OBBD
08CO
08C2
08C4
08C6
08C8
OBCA
08CC
08CE
OBDO
08D2
0804
08D6
08D8
08DA
08DC
OBDE
08EO
OBE3
!)8E5
08E8
OBE(\
OBED
08EF
08F2
07
FF 40
3A 80
D4 00 00
07
....
-. A4
._-...::,.
FF 01
~~2 A9
FF 01
32 AE
FF 01
32 B3
FF 01
32 B8
FF 01
~32 BO
30 C2
04 OA 80
30 80
D4 OB 00
30 80
D4 OA 00
30 80
04 OB 81)
30 80
04 oc 00
30 80
04 oc 80
30 80
FF 01
....
..:,. -.
. ::. EO
FF 01
._"":!'.......,_ E5
FF 01
..,._,
·-'L EA
FF 01
..,.., EF
·-'~..:.
FF 01
..,.,..,
F4
FF 01
...,....,
._
....:.:.. F9
._..
B~
POINT
,,.
.;
POINT 6
POINT 7
POINT 8
POINT 9
POINT 10
POINT 11
.:t~
FF 01
..,...., E3
·-'L
30 80
04 OF (l(l
30 80
D4 12 00
30 80
D4 13 80
30 80
04 14 00
30 80
LD 7
SMI 40
BNZ POINT 4
CALL IN
LD 7
BZ POINT 5
SMI 01
BZ POINT 6
SMI 01
BZ POINT 7
SMI O.t
POINT 8
L
SI'1I 01
BZ POINT 9
SMI 01
BZ POINT 10
BR POINT 11
CALL EX MEM
BR POINT 4
CALL CHNG MEM
BR POINT 4
CALL RUN
BR POINT 4
CALL FILL MEt1
BR POINT 4
CALL EX REG
BF: POINT 4
CALL SET BR~<PTS
BR POINT 4
SMI 01
BZ POINT 12
SMI 01
BZ POINT 13
SMI 01
BZ POINT 14
SMI 01
BZ POINT 15
SMI 01
BZ POINT 16
SMI 01
BZ POINT 17
SMI 01
BZ POINT 18
BR POINT 4
CALL TRAN MEM
BR POINT 4
CALL VOUT TEST MAN
BH POINT 4
CALL TEST 1.2 _,.-,
BR POINT 4
CALL TEST MNGMNT
BR POINT 4
POINT 12
POINT 18
POINT 13
POINT 14
POINT 15
I!_
f
~···
f
, ..
,(
~··
:
__.I
80
08F4
08F5
08F6
08F7
08F8
08F9
08FA
OBFB
08FC
OBFD
00
00
(l(l
(l(l
00
00
00
00
00
00
POINT 16 IDL
IDL
IDL
IDL
IDL
POINT 17 IDL
IDL
IDL
IDL
IDL
81
PROGRAM NAME: BIN/BCD
FUNCTION: CONVERTS BINARY NUMBER IN R7 R7-1 CHI LO)
TO FOUR DIGIT DECIMAL NUMBER IN R7 R7-1
REGISTERS USED: R7 R8
B!2P.B.f9_S.__ J_~_§J.IilJ!;;:.I__!_Q_~------"\
0910
0911
0912
0913
091'10915
0916
0918
0919
09lA
0918
091C
0910
091E
0920
0921
0923
0924
0925
0927
0929
092B
092C
092D
092E
(19:30
0931
09::::3
0934
0935
0937
0939
o9::=m
0930
093E
o9:3r
0940
0942
0943
0945
27
27
97
B8
87
A8
F8
58
28
58
18
t7
LABEL
Q_F' CODE
DEC
DEC
GHI
PHI
GUJ
ou
07
POINT 5
FF EB
57
-:""-:""'
._
..._;. 33
17
07
FF 04
._·:r..,.
.. __. 3D
FC 04
57
27
07
FC EB
57
30 45
17
07
FF 03
3.3 3D
FC 03
30 2B
57
27
08
FC 10
58
3() 1D
07
POINT 4
POINT 1
POINT 2
POINT ·-'
"""'
7
7
7
8
7
8
00
8
8
8
8
7
LABEL
F'LO
LDI
STR
DEC
STR
INC
INC
LD 7
SMI EB
STR 7
BPZ POINT 1
INC 7
LD 7
SMI 04
BPZ POINT 2
ADI 04
STR 7
DEC 7
LD 7
ADI E8
STR 7
BR POINT 3
INC 7
LD 7
SMI 03
BPZ POINT 2
ADI 03
BR POINT 4
STR 7
DEC 7
LD 8
ADI 10
STR 8
BR POINT 5
LD 7
82
....... ······•
"\
0946
0948
0949
0948
094C
0940
094F
0950
0951
0953
0954
0956
0957
0959
095A
095C
095D
095F
0960
0961
0963
0964
0966
0968
0969
096A
0968
096D
096E
0970
0971
0973
0974
0975
0976
0977
0978
0979
FF 64
57
._..._
"'"". 59
17
07
FF 01
57
27
-:'1"'...,.
·-"'·-' 59
07
FC 64
57
30 5F
08
FC 01
58
30 45
28
07
FF OA
57
._....,;. 6D
FC OA
E8
F4
58
30 73
08
FC 10
58
3() 60
08
57
18
~...,.
17
08
57
D5
64
STR 7
BPZ POINT 6
INC 7
LD 7
SMI 01
STR 7
DEC 7
BPZ POINT 6
LD 7
ADI 64
STR 7
BR POINT 7
POINT 6
LD 8
ADI 01
STR 8
BR POINT ~'
POINT 7
DEC 8
POINT 10 LD 7
SMI OA
STR 7
BPZ POINT 8
ADI OA
SEX 8
ADD
STR 8
BR POINT 9
POINT 8
LD 8
ADI 10
STR 8
BR POINT 10
POINT 9 LD 8
STR 7
INC 8
INC 7
LD 8
STR 7
RTN
51'1!
~
Q
•
83
PROGRAM NAME: SETBOARU
ALLOWS USER TO SET BOARD NUMBER AND TEST NUMBER
BOARD NO
LOCATION 2620
LOCATION 2621 = TEST NO
REGISTERS USED: R7 RE
FUNCTIOI'~:
A!l_D_B_E;§_B_
'\
099::'::
0995
0996
0997
0998
0999
099A
0998
099D
099E
099F
09A3
09A7
09A9
09AB
09AD
09AF
0980
09Bt
0982
0984
0985
0986
09BA
098E
09CO
09C1
09C3
_l!}l_§JBJJ~l...I
F8
57
C4
1E
5E
2E
07
FC
57
5E
D4
D4
ON________ _b_ABEL __ _gp COQ.L_ __.h_ABEL
00
POINT 1
01
OE 00 80
OD 20 4F
·.:•..J 9A
36 Cl
3D A9
FB 00
57
l.E
07
FC 01
57
5E
D4 OE 00 40
D4 OD 20 4F
.,...,_..
POINT 3
POINT 4
35 81
2E
3E Cl
D5
POINT ....,
...:.
LDI (H)
STR 7
NOP
INC E
STR E
DEC E
LD 7
AD! 01
STR 7
STR E
CALL OUT 80
CALL DELAY 4F
82 POINT 1
83 POJ.NT 2
..,.
BN2 POINT ·-'
LDI 00
STR 7
INC E
LD 7
ADI 01
STR 7
STR E
CALL OUT 40
CALL DELAY 4F
B2 POINT 4
DEC E
BN3 POINT 2
RTN
84
PROGRAM NAME: RUN
FUNCTION: CALLED BY FUNCTION #2
LOADS R3 WITH NEW PROGRAM COUNTER THEN SETS
PROGRAM COUNTER TO R3
REGISTERS USED: R7 R8 R9
Q_I;)_DRES~ ___ lli§JRUJ~T
\
OAOO
OA03
OA04
OA05
OA08
OA09
OAOA
OAOD
OA10
OA12
OA14
OA16
OA17
0Al.9
OA1A
OAl.B
OA1C
OAl.D
OA1E
OA1F
D4 OD 80
07
B8
D4 (J[) 80
07
A8
D4 OE 80
D4 OF 80
30 14
30 00
F8 OA
B9
FB lA
A9
D9
88
A3
98
B'
·-·'
D3
I ON
LABEL
POINT 2
POINT 1
OF' CODE
b.B.!t~L
CALL IN 2D
LD 7
PHI 8
CALL IN 2D
LD 7
F'LO 8
CALL FULL OUT
CALL STEP/STOP
BR POINT 1
BR POINT 2
LDI OA
PHI 9
LDI lA
PLO 9
SEP 9
GLO 8
PLO 3
GHI 8
..,..
PHI ·-'
SEP 3
85
PROGRAM NAME: EX MEM
FUNCTION:
ALLOWS USER TO EXAMINE MEMORY WITH FUNCTION #0
USED WITH STEP/STOP FUNCTION
REGISTERS USED:
8.Pl~RJ':":_!i§...
\
OABO
OA8.3
OA84
Of\85
OA88
OABr,>
OA8A
OA80
OA8E
OA91
OA93
R7 RB
___l_tiSTRUC_USJ.t)
D4 OD
07
B8
04 OD
07
AS
D4 OE
18
04 OF
30 BA
05
LABEL
80
80
80
80
POINT 1
OP CO_QJ,::,___L.ABEL
CALL IN 2D
LD 7
PHI 8
CALL IN 20
LO 7
F'LD 8
CALL FULL OUT
INC 8
CALL STEP/STOP
BF\ POINT 1
RTN
86
PROGRAM NAME: CHNG MEM
FUNCTION: ALLOWS USER TO EXAMINE AND CHANGE MEMORY
USED WITH STEP/STOP FUNCTION
REGISTERS USED: R7 R8
0800
0803
0804
0805
0808
0809
080A
0800
0810
0812
0814
0817
0818
0819
OBi A
0810
OB1F
D4 OD 80
07
88
[)4 (l[) 80
07
A8
D4 OE 80
[)4 OF 80
::::o 19
30 1.F
D4 OD 80
.,.
POINT ·-'
07
58
1.8
04
~30
05
POINT 1
OE 80
00
POINT 2
CALL IN 2D
LD 7
PHI 8
CALL IN 20
LO 7
PLO 8
CALL FULL OUT
CALL STEP/STOP
BR POINT 1
BR POINT 2
CALL IN 20
LO 7
STR 8
INC 8·
CALL FULL OUT
_,
BR POINT .....
RTN
87
PROGRAM NAME: FILL MEM
FUNCTION: FILLS MEMORY WITH A CONSTANT
CALLED BY FUNCTION #3
USER ENTERS START ADD END ADD VALUE STEP/STOP
REGISTERS USED: R7 RB R9
0Q.P.8f.:_§§____ J_NS TF~J,..IJ;;lLQ!~L. __ ._
\
0880
0883
0884
0885
0886
0889
088A
OBBB
OBBC
088F
(1892
0893
0894
0897
0898
1)899
089C
OB9F
OBAO
08A1
OBA2
OBA6
08A9
08A8
OBAC
OBAD
OBAE
08AF
0880
OBFH
0882
0883
0884
OBB5
08£16
0888
088A
0888
OBBC
08BD
D4
07
B9
88
D4
07
A9
AB
D4
D4
07
88
D4
07
AS
D4
D4
07
27
57
D4
D4
OD 80
OD 80
OE 80
OD 80
OD 80
OE 80
OD 80
OE (ll)
OF 80
30 AC
D5
17
07
27
58
28
E7
98
57
99
F5
38
LAJ3EL____QP CQQ[;_ _LABE;~
co
:;"!,A AC
88
57
89
F5
(ll)
POINT 1
CALL IN 2D
LD 7
PHI 9
PHI 8
CALL IN 2D
LD 7
PLO 9
PLO 8
CALL FULL OUT
CALL IN 2D
LD 7
PHI 8
CALL IN 2D
LD 7
PLO 8
CALL FULL OUT
CALL IN 20
LD 7
DEC 7
STR 7
CALL OUT 00
CALL STEP/STOP
BR POINT 1
RTN
INC 7
LD 7
DEC 7
STR 8
DEC 8
SEX 7
GHI 8
STR 7
GHI 9
SD
8M POINT 2
BNZ POINT 1
GLO 8
STR 7
GLO 9
SD
88
OBBE
OBCO
''
33 AC
DS
POINT 2
BPZ POINT 1
RTN
89
PROGRAM NAME:
IN
FUNCTION: 4 BIT BCD DIGIT RETURNED IN R7
BIT 6 = 1 IF CONTROL kEY
REGISTERS USED: R7
\.
ODOO
0002
OD03
0004
OD05
0007
0008
0009
D08
ODOC
OOOD
ODOE
ODOF
0010
OD11
0Dl2
0013
ODl'l
0015
001.7
0018
0019
001A
0018
( 1
3C
E7
69
27
34
FE
FE
FA
57
17
07
7E
7E
7E
7E
7E
7E
7E
FA
27
F1
1.7
57
D5
00
F'OINT 1
05
POII'H ..,
..::.
4C
o:::.
BN1 POINT 1
SEX 7
INPl
DEC 7
Bl POINT 2
SHL
SHL
ANI 4C
STR 7
INC 7
LD 7
SHLC
SHLC
SHLC
SHLC
SI-ILC
SHLC
SI-ILC
ANI 03
DEC 7
OR
INC 7
STR 7
RTN
90
PROGRAM NAME: DELAY
FUNCTION: PRODUCES A DELAY WHERE FF EQUALS APPROX
3.2 SEC
REGISTERS USED: R7
'\
OD20
OD21
OD22
0023
OD24
OD25
OD27
OD28
OD2A
OD2C
OD2E
OD30
OD32
OD33
0034
OD35
27
27
06
57
07
FF 01
57
POINT 2
32 32
FB FF
FF 01
32 24
30 2C
16
17
17
D5
POINT 3
POINT 1
DEC 7
DEC 7
LD 6
STR 7.
LD 7
SMI 01
STR 7
BZ POINT 1
LDI FF
SMI 01
BZ POINT 2
BR POINT 3
INC 6
INC 7
INC 7
RTN
91
PROGRAM NAME:
FUNCTION:
!NIT
INITIALIZATION ROUTINE
REGISTERS USED: R7 RC RF
'
0040
0041
0042
OD43
0045
OD46
OD47
ODIJ8
OD4A
004·8
OD40
OD4E
004F
OD50
0052
OD53
0055
0056
0057
OD59
OD5A
OD5B
OD5C
OD5D
006:3
0069
006F
0075
0076
0077
0078
0079
007A
OD7D
1F
1F
1F
F8
5F
EF
62
F8
AF
F8
5F
EF
6"
·-·
F8
AF
F8
5F
65
FB
AF
57
27
57
D4
04
04
04
07
5C
E3
71
F3
04
1)5
80
OF
82
07
89
0(1
10
10
10
10
F6 (H) (H) 01
F6 00 (H) 02
F6 (H) 00 03
F6 00 00 04
OD
co
INC F
INC F
INC F
LDI 80
STR F
SEX F
OUT2
LOI OF
PLO F
LOI 82
STR F
SEX F
OUT3
LDI 07·
PLO F
LDI 89
STR F
OUT5
LDI 00
F'LO F
STR 7
DEC 7
STR 7
CALL VDUT
CALL VOUT
CALL VOUT
CALL VOUT
LD 7
STR c
SEX 3
DIS
XOR
CALL SETC
RTN
000001
000002
000003
000004
92
PROGRAM NAME:
IN 2D
FUNCTION: TWO 4 BIT BCD DIGITS INPUT AND RETURNED IN R7
REGISTERS USED: R7
:d
'
OD80
0081
OD84
0085
0086
0087
OD88
0089
008A
ODBB
ODBE
ODBF
0090
0091
0092
0093
E7
D4 OD 00
07
FE
FE
FE
FE
57
27
D4 OJ) 00
07
17
E7
F1.
57
D5
...
SEX 7
CALL IN
LD 7
SHL
SHL
SHL
SHL
STR 7
DEC 7
CALL IN
LD 7
INC 7
SEX 7
DR
STR 7
RTN
93
PROGRAM NAME:
FUNCTION:
I/0 4D
INPUT 4 BCD DIGITS TO R7 R7-1 AND OUTPUT
TO LEFT FOUR DIGITS OF DISPLAY
REGISTERS USED: R7
BD_P.Rf.,.§_!:L __ ]:_Ii!?_Tf\JJCIJ..PJL...
\.
ODAO
ODA3
OOA7
OOA8
OOAB
ODAF
ODBO
D4
04
27
04
D4
17
D5
OD 80
OE 00 BB
OD 80
OE I) (I 40
- - - - LABF;:_I,,.______OP G_ODE_ _LA_ll~b.
CALL IN 2D
CALL OUT 88
DEC 7
CALL IN 20
CALL OUT 40
INC 7
RTN
94
PROGRAM NAME: SETC
FUNCTION: LOADS M2680-26FF WITH 00
REGISTERS USED: RD RC
\
ODCO
ODC2
ODC3
ODC5
ODC6
ODC7
ODCB
ODCA
ODCB
ODCD
ODCF
ODDO
FB 70
5D
FB 00
5C
1C
OD
FF 01
50
3A C3
FB 80
AC
05
,·.
{-
POINT 1
LDI 70
STR D
LDI 00
STR c
INC c
LD D
SMI 01
STR D
BNZ POINT 1
LDI 80
PLO c
RTN
95
PROGRAM NAME: OUT
FUNCTION: OUTPUTS TWO DIGIT BCD NUMBER TO DISPLAY
POSITION DETERMINED BY BYTE FOLLOWING CALL
00 RIGHT 40 CENTER 80 LEFT
REGISTERS USED: R6 R7
\
OEOO
OE01.
OE02
OE03
OE05
OE06
OE07
OE09
OEC1 A
OEOB
OEOC
OEOD
OEOE
OEOF
OE10
OEJ.i
0El2
OE1::>
OE14
OElb
0El7
OE18
OE19
OE1.A
OElB
OElD
OE1F
OE20
OE21
C>E22
E7
07
27
FA OF
57
06
FA FO
Fl
57
61.
07
F6
F6
F6
F6
r")(
.0:-1
57
06
FA 08
FE
Fl
c--7
d/
06
lb
FA EO
FC 2t)
F1
57
61
D5
SEX 7
LD 7
DEC 7
{\NI OF
STR 7
LD 6
ANI FO
OR
STR 7
OUT1
LD 7
SHR
SHn
SHR
SHn
DEC 7
STR 7
LD 6
ANI 08
SHL
on
STR 7
LO 6
INC 6
ANI EO
ADI 20
on
STR 7
OUT1
FHN
96
PROGRAM NAME:
PREDELAY
FUNCTION: PRECISION DELAY
Tl>JO ARGUMENTS
DELAY FROM 00.03 TO 99.99 SEC
REGISTERS USED: Rl R3 RF
OE30
F8 OE
OE~~"'.2
B1
PHI
OE3::'!.
OE35
F8 78
oE::::6
E3
OE37
OE39
OE::'".A
OE3C
oE:.:m
OE3F
OE40
OE41
OE42
OE44
DEll5
(>E46
OE47
OE49
OE4A
OE48
OELIC
OE4E
OE4F
OE51
OE52
OE53
OE54
OE56
OE57
OE58
OE59
OE5A
70 F3
EF
F8 13
AF
F8 33
LDI 78
PLO 1
SEX 3
RET F3
SEX F
LDI 13
F'LO F
LDI 33
STR F
OUT6
DEC F
LDI 77
STR F
OUT6
DEC F
LDI 89
STR F
OUT6
DEC F
LDI 10
F'LO F
LDI 20
STR F
OUT6
DEC F
LDI 00
STR F
OUT6
NOP
NOP
NOP
NDP
INC F
INC 6
LD 6
STR F
OUT6
DEC 6
OE~m
OE5C
OE5D
OE5E
OE:''.iF
OE6(>
OE61
At
5F
66
2F
F8 77
5F
6/o
:;~F
F8 89
5F
66
2F
FB 10
AF
F8 20
5F
66
2F
F8 00
5F
h6
C4
C4
C4
C4
1F
16
06
~5F
66
26
LDI OE
1
97
Q
PROGRAM NAME: SETINT
FUNCTION: SETS INTERRUPT TIME TO CAUSE INTERRUPT
IF DESIRED PULSE ISN'T DETECTED
DELAY FROM 00.03 TO 99.99 SEC
REGISTERS USED: R1 R3 R8 RF
( 1
Er'IO
0Er-Y2
'\
OEA3
OEA5
OF.A6
0Ef)7
OEA9
OEAA
OEAC
OE{)D
OEAF
OEBO
OEB1
OEB2
OEB4
OEF!5
OEB6
OEB7
OEB9
OEE!A
OEBB
OEBC
OEBE
OEBF
OEC1
OEC2
OEC:3
OEC4
OEC6
OEC7
OEC8
OEC9
OECA
OECB
OECC
OECD
OECE
OECF
OEDO
OEDJ
Ff:J OE
Bl.
Ff:J ED
Al.
E3
70 f-..,- -~·
EF
FB 1'
·-·
AF
FB 33
5F
66
2F
FB 77
::;r
66
2F
FB
5F
66
2F
FB
AF
FB
5F
66
2F
FB
5F
66
C4
C4
C4
C4
l.F
16
06
5F
66
26
B9
10
20
00
LDI OE
PHI 1
LDI ED
PLO 1
..,.
SEX ·-·
Fi:ET F3
SEX F
LDI 13
PLO F
LDI 33
STR F
OUT6
DEC F
LDI 77
STR F
OUT6
DEC F
LDI 89
STR F
OUT6
DEC F
LDI 10
F'LO F
LDI 20
STR F
OUT6
DEC F
LDI 00
STR F
OUT6
NOP
NOP
NOP
NOP
INC F
INC 6
LD 6
STR F
OUT6
DEC 6
'
98
,, .
PROGRAM NAME: FULL OUT
FUNCTION: OUTPUT R8.1 RB.O MCR8) TO DISPLAY
REGISTERS USED: R7 R8
\
OE80
OEEll
E8
FO
OE82
OEEl3
OE87
OE88
OE89
OEElD
OE8E
OEDF
OET'>
57
D4 OE 00 00
88
57
D4 OE 00 40
98
57
04 OE 00 BO
D5
SEX 8
LDX
STR 7
CALL OUT 00
GL.O 8
STR 7
CALL OUT 40
GHI 8
STR 7
CALL OUT 80
RTN
99
OE62
OE63
OE64
OE65
OE66
OE67
OE68
OE69
OE61l
OE6C
OE6D
OE6E
OE6F
OE71
'\
OE72
OE73
OE75
OE76
OE77
OE78
OE7A
OE7B
OE7D
OE7E
OE7F
2F
06
5F
66
16
16
2F
2F
FB 00
5F
66
2F
FB ....,"'"
::...J
5F
66
FB 00
AF
00
00
FB OE
B"'
··-·
FB 7E
A'
··-'
[)3
05
DEC F
LD 6
STR F
OUT6
INC 6
INC 6
DEC F
DEC F
LDI 00
STR F
OUT6
DEC F
LDI 25
STR F
OUT6
LDI 00
PLO F
IDL
IDL
LDI OE
..,..
PHI ....;.
L.DI 7E
PLO ..,..
·-=·
SEP 3
RTN
\
APPENDIX B
SCHEMATICS
100
/
REVISION~
1111!. DOCI.IM(hT CUNIAIN~ PNOI'fii(UR• lh
fOf.IMAliOI\ Jnl~llhlhCI•' C..<ll.a•lotol 111 lln1 oa..c~
"'1----·ou:c.-;-,.:;.c,;--- -:::-.:-·~~ .,.,.,..
....,.,.,,lhn<oi""'"Mo.J 1•1111111~~ !Ad)II.,..,.;IO<
ll•..;k>tM.l•lii'._...I.IIII•••PtnniiU)I',
n·--f':er;-,~T-£-.-----~~/ii/
_-;
I
SYSTEM BLOCK [JIAGRAI'1
C'i'l
" ..
~..,.~-~
.•
l
r--r-:":::·
\ -------------..
---
L_
P$..11,1\"'MMIN'-
H•IC"t-"'C.f
L~~NU
,.e
I<
I
~-·--····---~
.
.:;, ..... ···J
tl'-'lofo.Lt
•r11r
Cit1t<U
r.:.src
lUt:h KhPAI.l
""'"'T rWW> "~-~. "~
t.
COMPUi'R
f(C. ...
~!)IT
lt!Go~
,..11Cf\Uf'(~i.J.:.;h1Cll'l
_e·rJ!.t
"-~
__=r=--
Jol•ur111....,
IIIHioLt
J.,~
·-1
~
Ll'llt:~f»'-E
~WOo
.. , ...... _ ..
"'""TP.·~~
u .... rror~o.P
" , ..... , ............
111ur
J)lo'.O
f'li)'''""''" ............1)1'.
~I
~
dlt.l•
JlM••lfl
.;,. 1·,:.
n: h',
1;!1-0lt- lJJA~ojoiAM
'i1tl .. CODt-IDiN1
34090
iCAII
<~>=:::-::;;.---
f-l
0
f-l
102
\
lllll
>
U'
"'
()
~
-::>
\~1
\1..
::L
~-1
~
·.J
)
:~t
~!l
~!ii
il !
,~ ~ ~
I
c]~~~!~~~----------------------------------------------------------------------------~~
103
1
~~~-,-.:!
'
.. - _____ 1 f
I_
~
·:J
--- ---~
r-'-L'--'--'-
.j
~---,
' __---·-
n
~~~-,-.-: i
''
:-i
'!
i
I
I
-~~~
I
!
.,
'
I
----- ¥-H
----~
.~-=~----~
rl
i,- [,
:
l•
...
'.)
•J
H
...r
"
"'> '
~~~
~
• w
~
~
i
104
@
zo:
"£
gg -,'<
l:i<J
!!:;
ig
~-~>""..[i
;' ... ;-...
'.ll
\
;-
'
i
'l
\
•I
1\
:-q~~'-J!t·
J
~-H
=>o
a:z
'"x
"'u
;!! ..
...
<
"
·<
~
"
zo
~ ...
..
-o
~
3..,
-
.
0~J-~il·
i
i
I!
!
l
'·
ij
!.
..li
'
105
@ •
llr
l ~I~iTI
"''
:;:~ i
~·t
~:~
!
\
I
I
I,
·"
i~
"
' ,j
...J.
-~~~~ ~
!: -.
~
F,~~
~
---------------------~---------------------------------------------------------------·h
;
1!i
ll'·
"
106
>
-----------------------------
~
----
0
:----~--
-------
---·
- --~------------·Q
!
z
•
...
:a
~
12---
i
~-------------
---------------------------. --· --
----- -----
1
I
\
i
-
--- ---i
i
io
;
Q ..
g ...
-.
.___----------------~----
T
, '
I'
-~. Ir-·--.
'
~
I!
l
!
~
•
: !.: !'" ;·
:I
·~ ~ ~ ~
~ t ~ ~ : t I ; 3 H ; ,, ~ f ~ ,_ ~ '- ~ \ :, ' ' ;' ~-llhh
, :. :; :, ; ; ; ~t •: :; ; ;'1' ';;;;; .;:m,~-, ,<uj"'i:.:tc:~'"~.!~L----l
J
II
~:w.;~~.l.....l
S.
l1}i ~,u
;_
~ ->---.X~ de~ _.q.," ~ "'.;.
v
.0
4:- ··•
>
~
-' - ·>
~~~
'CO C.0 L 0:-
2~~-~-:~l
---------------·-----~------ ____ j
; L_______
,
:i
0
..:. > "' ...
.1
2: "'' ':!' ~ .....
.!) 1 - ~
.!.
I
;n
- ·-• '" r '"' -~ ;.. ~ -- .:::.
= !:::!
<
-~2~1~~~
lr\
l.
-
•
•
-
,.
; z ..... - - . ::.. .,._
-
-~
·•
.-
<.(
-(
•
•
-
< "'- ....
'
z
.)
• ,{
·t:: !I:
Ii ..
i!
I!
u
107
- ..~
a
.
.
u
.8E
.....
..
~g
0~
_o
_o
,o
. "'
<t>O
l
\
.
.
a
•
-··
108
Jl
Jl
StAAT NS? SAMPLE ---..
,--A
il
F
-j:l!G.
~AANUAL
\
\
1ATE ONE onOT
:cL 2
r-
:l
),
iOL~ME
3TART EXP SAMPLE
\
NSPIRAT:CN
:'EUVEREO
;
]
'"
:
~2
7
g
t3
' I qAT:G _:MIT CFF
J.
•·• RATIO L.MIT
-<EACH ED
SPI)N_
3REATH
JE>.IANO .SIG.
ASSIST
~ONT.
JN
j_
Y7
~
,c1. 5. 1.
16
s.
22
E
'MIN SOL JPEN
'4
'>TART NSP. SAMPLE
20
::1 11AT.0 I !MIT
w
:: \ SA T!O :::<CEEDED
rl.-;
-~
I
>LARM ,ESE7
19
- SPON 8REA TH
lNSP
'6
lLARM ?RES. LIMIT
r-t-
!NSP • PLATEAU
START EXP SAMPI E
'
L:J
·NSP - ?L.H~.:l.\J
'1A TIO _·MIT •Jto o:<C
\
~
..
~~I
\
~
iNSP ~ 0 LATEAU
- 1PCN 3REATH
N
-EXH. SOL )PEN
s.
~
:C3
'---
PUTEAU STOP
--
6
SPON. 3REATH
15
2 SEC.
ONE SHOT
3
'--- 1--
iiATE P!JL3E
IC7, 13
2 SECOND ONE SHOT
0
17
RESSURE SAMPLE
21
IC15
NEB. ON
K
?RES SURE
SAMPLE
NEB. ·'JN
RATE
RESET- 1--
4
R
e-:::
r-
RATE
SIMV !JN
!C4. S. 7
3. i 1, 16
:--
ASSIST SIGNAL
..__
iC6. II
;.;
H
~ESET
L
LOCKOUT SOL ON
X
ASSIST SIGNAL
M
CONTROL BREATH
LEO DRIVER
T
CQNTROL BREATH
ICS. 10,
S-,-,>NOBY
u
LOCKOUT
I
CONTROL •)N
CPI\? CN
NEB. SOL. 'JN
!C9. 10
~
p
IC4. 14
S~OPPED
-
..JyFIGURE 6-7
MODE SELECT PCB BLOCK DIAGRAM
Page 6-12 • December 1979
50000 - 12004
\.
APPENDIX C
DISSASSEMBLER
109
110
10 OPEN " I " , # 1, "F'F<OGf;·AMS"
:20 LF'R I NT CHR$ c:7) : "M" ; CHF:$ ( 14}
30 LF'F: I NT CHR$ <'27 > : "N": CHRS <5 >
\
40 LPR I NT CHRS ( 27) : "R": CHR$ ( 10)
50 LF'F:INT CHF:S ( 12}
60 LF'R I NT "LISTING OF PROGRAMS"
70 LF'RINT
80 LPRINT
90 LPRINT
100 LPRINT CHRS\27>: "-":CHR$(1}
110 LPRINT "NAME","START ADDRESS","END ADDRESS"
120 LPRINT CHR$(27}:"-";CHF:S<Ol
130 IF EOFI1} THEN 180
140 INPUT#l, AD1S,AD2$,NAMS,NUMS
160 LPRINT NAMS,AD1S.AD2$
170 GOTO 130
180 CLOSE #1
190 END
111
@ '
10
JNF'UT
20 I NF'UT
"N;C.t~
NU~1
11
~'.0
OPEN " l " , #
40 OPEN "0",#
50 F'F:INT
~''--' F'F: INT
~·f-dr•n
5o
OF FILE TO EDJT":f·J't
'/~;F< I ~E:LES TO D I SF-'Lt4'{":
EF· OF
f,HJM'·JHf~:
, ra
,"COPY"
=
57 FOR X
1 TO NUMVAP
60 IF EOFI1J THEN 240
70 INPUT#l,VARSIXI
80 PF: I NT VAF:S I \ J : " " •
S'O NEXT X
1 •:>O PF: I NT
1 05 RF' I I'H
110 INPUT "CHANGE DATA, YES('{) OR NO <C.PI OR ADD IAI OR DELETE CDJ ";A$
120 IF A$"" THEN 200
130 IF A$
"A" THEN 290
135 IF AS
"D" THEN 50
\, 140 FOP x:
1 TO NUM'v'AR
150 PRINT "DATA PIECE NUMBER": X:"CHANGE FROM ";VAF:$1XJ;" TO":
160 INPUT VARNEW'fiXl
165 IF VAF:NEWt (X) = "" THE I~ '/AFNEl•J$ (X I = VAR$ I X)
170 PRINT#2,VARNEWIIXI
180 NEXT X
1 9(• GOTO 230
200 FOR X = 1 TO NUMVAP
210 PRINT#2.VARSIXI
::'20 ~JElT X
230 GOTO 50
240
250
26('
270
280
290
300
310
320
330
340
35
CLOSE Ill
r:ILL N$
CLOSE
NAME "COF'\'" AS N$
END
FOR X
1 TO NUMVAR
PRINT "NEl~ DATA PIECE
INPUT NEl~'JAR<f <:XI
NEXT X
FOR X = 1 TO NUMVAR
RRINT#2,NEWVARSIXI
F'F: I NT \,.JAR$ (X) :
"~
360 NEXT X
37•:> F·FirH
38•) GOTO 105
1)
=
II
NU~18ER
":X:"
":
'
.l
112
Q .
1950
1 96<)
1970
1980
1990
NEXT PTNO
RETUF:N
FOR PT = 1 TO PTNOEND
IF INST2SIQI = A03SIPTI THEN 2010
NEXT PT
2000 GOTO 1870
2010 LABEL2S (Q)
2020 GOTO 1910
\
"POINT" + STRSIF'TI
113
t:9o Z = NUMBYTES<FEEKISA+X-11 I
OCS<OI = OFCODESIPEEK<SA+X-111
1310 GOTO 133(l
13:::0 PRINT O,AD2S<Ol ,OCSIOI ,PEEK<SA+X-11
1330 INST1SI0l = INSTSIXI
1340 IF Z = 1 GOTO 1400
1350 INST2SIOI =INSTSIX+11
1360 IF Z = 2 GOTO 1400
1370 INST3$101 = INSTSIX+21
1380 IF INSTl $COl < > "D4" THEN 1400
1390 GOSUB 1730
1400 X = X + Z - 1
1410 IF INST1S<OI = "D4" THEN 1430
1420 LABEL2$1Ql = INST2$101 + INST3S10l
"3" THEN GOSUB 1860
1430 IF MID$1INST1$1Dl,1,11
1440 OEND = Q
1450 0 = 0+1
t460 NEXT X
1470 FOR 0 = 1 TO OEND
1480 GOSUB 1920
1490 PRINT#!, AD1$(QI; ", ";AD:::S<OI; ", "; INSTl$101; ", "; INST2SIOI; ", "; INST3$(01;
1500 PRINT#!, ",";LABELl$ 101; ", ";OC$101; ", "; LABEL2$ IQI; ", ";
1510 NEXT 0
1520 END
1300
'·
1530 Zl
=
0
1540 Z2 = 0
1550 FOR Z = 0 TO 255
1560 IF HEXSIZ><:MIDSIA$,4,11 THEN 1580
1570 Zl
= Z
IF HEXSIZI<>MIDSIA$,3,:::1 THEN 1600
Z1 = Z
IF HEXSIZI<>MIDSIA$,2,11 THEN 1620
Z2 = Z
IF HEXSCZI<:MIDSIAS, 1,21 THEN 1640
Z2 = Z
NEXT Z
1650 DEC = Z1 + Z2*256
1660 RETURN
1670 IF A>15 GOTO 1710
(H)"
1680 B$ =
1690 MID$\85,2,11 = HEXSIAI
1700 GOTO 1720
1710 B$ = HEXSIAI
1720 RETURN
1730 INST4S = ""
1740 GOSUB 1820
1750 FOR COUNT = 1 TO NUMARGISUBI
1760 INST4$ = INST4$ + INSTSCX+COUNT+2l
1770 NEXT COUNT
1780 INST3$(Ql = INST3SCOI + INST4S
1790 Z = Z + NUMARGISUBI
1800 LABEL2$1QI =SUBNAMESSISUBI+" "+INST4$
1810 RETURN
18::"0 FOR SUB = 1 TO 50
SUBADSISUBl GOTO 1850
1830 IF IINST2$101+INST3SIOII
1840 NEXT SUB
18~d) RETURN
1860 GOTO 1970
1870 PTNO = PTNO + 1
1880 PTNOEND = PTNO
"POINT" + STR$ IPTNQ)
1890 LABEL2$ 101
INST:::S<OI
1900 AD3SIPTNOl
1910 RETURN
TO PTNOEND
1920 FOR PTN
AD3$IPTNOI GOTO 1950
1930 IF AD2$ Q)
194') LABEl_ 11 Q)
"PO HJT" + STR$ I F·TNO!
1580
1590
1600
1610
1620
1630
1640
11
114
640
NEXT
650 DATA
\
660 DATA
670 DATA
68(1 DATA
690 DATA
700 DATA
710 DATA
720 DATA
730 DF.TA
740 DATA
750 DATA
760 DATA
770 DATA
780 DATA
790 DATA
8qo DATA
81(1 DATA
8~0 DATA
830 DATA
840 DATA
850 DATA
860 DATA
870 DATA
880 DATA
890 DATA
90(1 DATA
910 DATA
920 DF.TA
930 DATA
940 DATA
950 DATA
960 DATA
970 DATA
980 DATA
990 DATA
X
IDL,LD 1,LD ~.LD 3.LD 4,LD 5,LD 6,LD 7
LD S,LD 9,LD A.LD B,LD C,LD D.LD E.LD F
INC O,INC 1,INC 2,INC 3,1NC 4,INC 5,INC
INC 8,INC 9,INC A,INC B.INC C,INC D,INC
DEC O,DEC 1,DEC 2,DEC 3,DEC 4,DEC 5,DEC
DEC B.DEC 9,DEC A,DEC B.DEC C,DEC D,DEC
7
F
7
F
B~.BO.BZ,BPZ,B1.B2,B3,84,NBR.BNO.BNZ,BM,BN1,BN2,BN3,BN4
LDA O,LDA 1,LDA
LDA 8.LDA 9,LDA
ST~ O,STR 1,STR
STR 8,STR 9,STR
2,LDA
A,LDA
2,STR
A,STR
3,LDA
B,LDA
3,STR
B,STR
4,LDA
C,LDA
4,STR
C,STR
5,LDA
D,LDA
5,STR
D,STR
6,LDA
E,LDA
6,STR
E,STR
7
F
7
F
I~X.OUT1,0UT2,0UT3,0UT4.0UT5,0UT6,0UT7
ERRD~.INP1,INP2,INP3,INP4,INP5,INP6,INP7
RET.DIS,LDXA,STXD,ADC,SDB,SHRC,SMB
SAV.MARV.REO,SED.ADCI.SDBI,SHLC,SMBI
GLO O,GLO 1,GLO 2,GLIT 3,GLO 4,G~O 5,GLO 6,GLO 7
GLO S,GLO 9,GLO A,GLO B,GLO C,GLO D,GLO E,GLO F
GHI G,GHI 1,GHI 2,GHI 3,GHI 4,GHI 5,GHI 6,GHI 7
GHI 8,GHI 9,GHI A,GHI B,GHI C,GHI D,GHI E,GHI F
PLO O,PLO 1,PLO 2,PLO 3,PLO 4,PLO 5,PLO 6,PLO 7
PLO 8,PLO 9,PLO A,PLO B.PLO C,PLO D,PLO E,PLO F
PHI O,PHI 1,PHI 2,PHI 3,PHI 4,PHI 5,PHI 6,PHI 7
PHI 8,PHI 9,PHI A,PHI B,PHI C,PHI D,PHI E,PHI F
LBR,LBO.LBZ,LBDF,NOP,LSNQ,LSNZ,LSNF
LSKP,LBNO,LBNZ,LBNF,LSIE,LSO,LSZ,LSDF
SEP O,SEP 1,SEP 2,SEP 3,CALL,RTN,SEP 6,SEP 7
SEP B,SEP 9,SEP A,SEP B,SEP C,SEP D,SEP E,SEP F
SEX O,SEX 1,SEX 2.SEX 3,SEX 4,SEX 5, SEX 6,SEX 7
SEX 8,SEX 9,SEX A,SEX B,SEX C,SEX D,SEX E,SEX F
LDX,OR,AND,XOR,ADD,SD,SHR,SM
LDI.ORI,ANI,XRI,ADI,SDI,SHL,SMI
1, 1, 1,1, 1, 1,1,1,1, 1, 1, 1, 1,1, 1,1
1 • 1, 1 ' 1 ' 1 ' 1 • 1 ' 1 ' 1 ' 1 ' 1 ' 1 ' 1 • 1 ' 1 ' 1
1,1,1,1,1,1,1,1,1,1,1,1,1.1,1,1
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~~-~~~~~~~~~~~~~~.,~~~~~~~~~~~~
1, 1, 1, 1, 1, 1, 1, 1.1.1.1,1.1,1,1, 1
1, 1, 1, 1,1, 1, 1, 1, 1, 1,1, 1, 1, 1, 1,1
1,1,1,1,1, 1, 1, 1.1.1, 1,1,1,1, 1,1
::?, 1,1, 1, 1,1,1,1, 1, 1, 1, 1,::?, 1, 1,2
1.1,1.1.1, 1, 1,1,1,1,1, 1, 1, 1, 1,1
1, 1,1, 1,1, 1,1.1, 1,1, 1,1,1, 1, 1,1
1, 1, 1, 1, 1,1.1, 1.1,1, 1, 1,1,1, 1,1
1, 1.1.1, 1, 1, 1,1,1,1, 1,1, 1, 1.1, 1
3,3,3,3, 1,1, 1,1,3,3,3,3,1, 1, 1,1
1, 1,1, 1,3,1, 1, 1,1, 1, 1, 1,1,1.1, 1
1, 1,1,1.1, 1.1.1,1, 1, 1, 1, 1, 1, 1,1
1, 1.1, 1, 1, 1, 1,1,2,::?,2,2,2,2,1,2
0800,08FD,START,0,0910,0979,BIN/BCD,0,0993,09C3,SETBOARD,O
OAOO,OA12,RUN,O,OASO,OA93,EX MEM,O,OA94,0AFE,BCD/BIN,O
OBOO,OB1F,CHNG MEM,O
OB20,0B7F,SET ARRAY.O,OB80,0BBD,FILL MEM,O,OCOO,OC42,EX REG,O
OC80,0CDC,SET BRVPTS,O.ODOO,OD1B,IN,O,OD20,0D31,DELAY,1
OD40,0D77,INIT,O,OD80,0D93,IN 2D,O,ODAO,ODBO,I/O 40,0
OEOO,OE22,0UT,1,0E30,0E62,PREDELAY,2,0E80,0E94,FULL OUT,O,OFOO,OF47,TR
100(1 DATA
1010 DATA
102(l DATA
1030 DATA
1040 DATA
1050 DATA
1060 DATA
1070 DATA
1080 DATA
1090 DATA
1100 DATA
1110 DATA
1120 DATA
1130 DATA
1140 DATA
1150 DATA
1160 DATA
1170 DATA
1180 DATA
AN MEM,O
1190 DATA
1200 DATA
1210 DATA
1220 DATA
1230 DATA
OFBO,OF91,STEP/STOP,O,OFAO,OFC5,RMV BRKPTS,O,OFDO,OFD8
OUT TEST N0,1,10F6,1174,VOUT,3,1180,11A7,0UTPUT,3
1200,1230,VOUT TEST MAN,0,1270,1284,ERROR, 1,1290,12A8,FAIL,1
1180, 11C9, INPUT,2.1400,145C,TEST MNGMNT,0,1600, 1635,TEST 1. 1,0
1640, 1698,TEST 1.2,0, 1500, 15FE.TEST 1.3,0, 1700, 17B4,TEST 1.4,0
1240 DATA
1251) Q =
6,1NC
E,INC
6,DEC
E,DEC
OOOCJ~OOOO,O~O
1
1260 FOR X
1::70 AD1$(Q)
TO ( EA-SA+ 1 l
AD1$iX)
1:'80 An:-·$.(fJ)
AD':':t-
=
(f..)
115
10 DIM .:;o::::s COl
INF'UT "NAME";N,:O,M$
30 OF'EIJ "0", #1, NAM$
40 INF'UT "REGISTERS USED" :RU$
50 INF'UT "F'ROGRAM ACTION, LINE l";F'ALl$
60 I NF'UT "F'ROGRAM ACT I 01', LINE 2" ; F'AL2·$
70 I NF'UT "F'ROGRAM ACT I ON, LINE 3" : F'AL3$
so F'F:I~H#l, NAM$; ", "; F:US; ", "; F'ALl $; ", "; F'AL2$; ", "; F'AL3$; ", ";
90 F'TNOE~m = 0
100 NOF'T = 0
1 10 DIM OF'CODE$12561
120 DIM NUM8YTES1256l
130 D I ~1 AD 1 $ I 300)
140 DIM AD2SI300)
150 D I ~1 I NST$ I 300)
160 DIM OC$13001
170 DIM INST1SI300i
180 DI~1 INST::'$ 13(H))
190 DIM LA8ELl$1300)
200 DIM LABEL2SI300)
210 D H1 I NST3$ I ::.(H))
220 DIM NUMARGI401
2:.(, DIM SU8NAMESSI401
240 DIM SUBAD$140)
250 DIM SUBAD2$140)
260 FOR X = 1 TO 300
=(!
'
27r)
28
290
300
310
::-.2(1
1. )
330
340
350
361)
370
::.so
390
400
405
410
420
425
430
440
450
460
470
480
490
500
510
A$ :::::
II
II
INST2$ = A$
INST3$
A$
LABELl$
AS
LABEL2$
A$
NEXT X
FOR X = 0 TO ~_,...,
READ OF'CODESIXI
NEXT X
FOF; X = 0 TO :'55
READ NUMBYTESIX)
NEXT X
OF'Et··J " I", #2, "PROGRAMS"
FOR X = 1 TO 40
IF EOF12l THEN 4::'5
INF'UT#2, SUBADSIXl ,SUBAD2SIXl ,SUBNAMESSCXI,NUMARGIXI
NEXT X
CLOSE #2
PRINT "STARTING ADDRESS";
INF'IJT A$
GOSUB 1530
SA = DEC
F'F:It·H SA
PRINT "ENDING ADDRESS";
INPUT A$
GOSUB 1530
EA = DEC
PRINT EA
FOR X = SA TO EA
Y = X-SA+l
=
5:20
5::.()
540
55(J A= INT( CX-45056~)/256)
560 GOSUB 1670
570 AD1$1YI = 8$
580 A = CX-45056!-::56lA>
5'71) GOSUB 1670
600 AD2$ IY) = 8$
610 A = F'EEf::IX)
6:"i) GOSUB 1670
6-::0 :::N:3T$('{) ~ 810
© Copyright 2026 Paperzz