Page 1

MCEM-BOBO
MIC
OCOMPUTER
SYSTEM
Page 2

HAL
MCEM-8080
MICROCOMPUTER
SYSTEM
TECHNICAL
MANUAL
*************************************************************
WARRANTY
The
HAL
Communications Corp.
guaranteed
of
one
HAL
Communications
the
factory
return
HAL
Communications assumes no
ment
of
installed
this
equipment
into
existing
supply
warranty.
against
year.
authorization.
parts
voltages
or
t
Should
for
repair
or
modified
without
units.
(as
units
defects
torp.
repair
or
which have been damagedt abusedt improperly
and
incurring
Operation
described
MCEM-8080
in
materials
or
replacement
promptly.
adjustment
responsibility
reserves
of
in
Microcomputer System
and workmanship
Please
until
the
right
obligation
this
equipment
this
manual)
parts
do
you have
be
not
for
the
to
change
to
incorporate
with
will
return
is
fully
for a period
requiredt notify
your
received a written
repair
the
improper
invalidate
unit
or
design
such
the
replace-
changes
power
to
of
**************************************************************
Copyright
in
the
publication
sion
of
~
United
the
1976
may
copyright
by
States
not
HAL
Communications
of
America.
be
reproduced
owner.
All
in any form
April,
Corp.t
rights
1976
Urbana,
reserved.
without
Printing
Illinois.
Contents
th~
written
Printed
of
this
permis-
Page 3

CONTENTS:
MCEM-8080
MICROCOMPUTER
SYSTEM
I.
2.
3.
4.
SYSTEM
1.1
1.2
1.3
1.4
1.5
1.6
1.7
1.S Connectors used
INSTALLATION
2.1
2.2
2.3
2.4
2.5
2.6
OPERATION
3.1
3.2
SYSTEM
4.1
4.2
4.3
COMPONENTS.
SOSOA
Processor
Random
Read
Serial
Parallel
Bus
Initial
Connection
Connection
Connection
I/O Connector Pin Assignments
Universal
Software
Monitor
ADDRESS
Random
Read
Input/Output
Microprocessor
Access
Only
Indicators
OF
OF
THE
Access
On
. .
Control
Memory
Input/Output
Data
THE
MCEM-SOSO
Installation
of
of
of
Processor
MCEM-SOSO
Monitor
Subroutines
ASSIGNMENTS
1 y
Memory
(I/O)
.....
...
Circuitry.
Memory
Input/Output.
and Control
Serial
Power
Parallel
Memory
...•
..•..•
(I/O) .
on
the
MCEM-SOSO
.....
......
Input/Output
Supplies
I/O Devices
Bus
..
.•..
(RAM)
(ROM).
Assignments.
Connector
• . . .
.
.
..
..
.
to
.•
••
.
.
Devices.
the
MCEM.
..
1-1
1-1
1-1
1-1
1-2
1-2
1-3
1-3
1-5
2-1
2-1
2-1
2-9
2-9
2-10
2-12
3-1
3-1
3-5
. 4-1
4-1
4-1
4-2
5.
OPERATING
5.1 Power-on
5.2
5.3
5.4
5.5
5.6
5.7
6.
PROGRAM
SOFTWARE
7.
8.
9.
CIRCUIT
APPENDiCES
A.
B.
C.
D.
HINTS
Changing
Manually
Manually Jumping
~anual1y
Using
Using
EXAMPLES
MONITOR
BOARD
PROM,
Input/Output
Addition
S080A
.......•.
Start
the
Monitor
Writing a Memory
Writing
the
Break-point
the
E and R
.
LISTINGS.
LAYOUT
.......•.............
EPROM,
of
Assembly Language Coding
AND
ROM
Jumper Connections
INTREQ,
Up
. . . . . .
Mode
Location.
to
a Program Address
to
an Output
Register
Commands
SCHEMATIC
Connections and
RESIN,
Port
..
for
for
Debugging.
DIAGRAMS
Markings.
..•..
and
BUS
EN
Forms
...•.
Debug.
..
to
..
the
~
UPB
.
.
..
.
.
5-1
5-1
5-2
5-3
5-3
5-4
5-4
5-4
6-1
7-1
S-l
9-1
9-1
9-6
9-10
9-12
i i
Page 4

TABLES:
Table
Table
Table
Table
Table
Table
ILLUSTRATIONS:
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
Figure
2.1
2.2
2.3
2.4
2.5
2.6
1. I
2. I
2.2
2.3
?4
2.5
8.1
8.2
8.3
8.4
8.5
A.
A.2
A.3
A.4
B.l
B.2
B.3
C.
ASCI I Character
Baudot
Oscillator
Power
I/O
Universal
MCEM-8080
EIA
Dual
Single
Bit
Bit
MCEM-8080
Schematic
MCEM-8080
MCEM-8080
MCEM-8080
I
Memory
Memory
Memory
PROM
EIA
Dual
Single
1
Addition
Character
Requirements
Connections
- RS-232C
current
current
assignment
assignment
jumpers
jumpers
jumpers
color
- RS-232C
current
current
Code
Code. .
Frequency
and
.••.......
Processor
Microcomputer
Serial
loop
circuit
drawing
CPU
Processor
Input/Output
coding.
loop
of
RESIN,
serial
loop
and
timing
and
timing
board
conventions
Interface
for
3624-4
for
8704
for
8708
Serial
serial
loop
BUSEN,
•.
and
Period.
Connections
Bus
Connections.
System
I/O
(standard
I/O
serial
Memory
I/O Jumper
serial
I/O
for
for
layout
/
Control.
. . •
Interface
PROMs.
EPROM
or
8308
.
....
I/O Jumper
I/O Jumper
and
..
..•
..
parallel
parallel
.•
.•.•
...•
ROMs
Locations.
INTREQ
jumpers).
output.
input
Locations.
Locations.
to
UPB
•.•.
2-2
2-3
2-5
2-9
2-10
2-12
iv
2-6
2-7
2-8
2 -11
2 -11
8-2
8-3
8-4
8-5
8-6
9-2
9-3
9-4
9-5
9-7
9-8
9-9
9-11
iii
Page 5

INTRODUCTION
The
HAL
MCEM-8080
board
control
single
MCEM-8080
and
Memory
put
Video
with
MCEM-BOBO
manuals
two
Microcomputer Systems
and
system
relating
detail
Corporation).
to
in
Intel
furnished
ment.
computer
that
applications.
chip,
control
(RAM)
(I/O)
Display
the
The
publications:
specifications
are
in
8-bit,
printed
circuitry.
integrated
interfacing.
unit,
basic
MCEM
board -
furnished
MCEM-8080A
discussed
to
the
8080A and
the
Intel
circuit
the
with
this
pertaining
When
the
the
detailed
form:
discussions
"Intel;
8080 Assembly Language
with
the
MCEM-8080
Microcomputer
can
be
used
The
MCEM-8080
N-channel
microprocessor
board
both
Read Only
circuitry,
Other
tape
circuit
cassette
accessories
board.
operation
each
unit.
Microcomputer
MCEM-8080
User1s
Manual.
to
in
the
MCEM-8080
associated
8080
pertinent,
Microcomputer Systems
references
in
the
pp
A-xx
to
Reference
Microcomputer System
for
System
program
is
is a single
development
designed
integrated
contains
and
the
Memory
timing
microprocessor
(ROM)
and
such
memory, and power
This
manual
of
the
accessories
System manual
Operating
Manual, and
Specific
the
HAL
Communications Corp.
Operating
integrated
are
made
Intel
A-yy". In
manual.
Card
addition,
(©
printed-circuit
or
for
around
the
Intel
circuit.
IC,-
and
Random
control
as
additional
suppl
discusses
is
is
actually
operating
for
ies
ONLY
discussed
supplied
the
Intel
instructions
Manual. General
circuits
User's
in
These
is
discussed
Manual
the
operating
referen~es
a copy
Intel
Corporation)
to
aid
in program
specific
8080A
The
its
timing
Access
Input / Out-
RAM,
can be
Keyboard/
the
basic
in
separate
used
in
8080
MCEM-8080
information
(©
Intel
manual
are
of
the
is
develop-
in
given
Figure
1. I
MCEM-8080
iv
Microcomputer
System
Page 6

I.
and
SYSTEM
The
HAL
optional
COMPONENTS
MCEM-8080
components:
Microcomputer System
contains
the
following
basic
1.1 8080A
The 8080A
an
instruction
these
circuit
address
discussion
manual
1.2
808oA
processor
Generator
1.2.1
8080A
buffers
interrupt
instructions
itself
Input / Output
(Intel~.
Processor
Two
to
8228
A
type
and
the
Microprocessor
is
an
repertoire
varies
contains
of
the
8080A
pp
2-1
Control
additional
provide
system.
IC.
generate
(RST
Bus
Controller
8228
8080A
7).
all
These
integrated
data
eight
of
all
(I/O)
will
to
2-20).
Circuitry
integrated
of
the
are
the
required
bus
bit
microprocessor
73
instructions.
from
2.0
of
the
devices,
be found in
circuits
timing
the
8228
(Intel;
circuit
bus
signals
~sec.
circuitry
and
pp
control
and
and
Bus
5-7
is
to
manipulate
pages
are
control
Controller
to
used
will
integrated
The
execution
9.0
~sec.
required
2-1
to
used
to
signals.
support a single
in
signals
5-12)
decode
circuit
The 8080A
to
address
data.
2-20
conjunction
for
IC
and
signals
This
time
A more
of
the
the
micro-'
the
from
device
vector
with
of
integrated
the
memory,
detailed
Intel
with
8224
the
Clock
the
also
1.2.2
A
An
18
timing
J.3
Random
The
Access
the
lower
circuit
RAM
can be
RAM
All
access
they
may
8102A-4
pp
5-79
Within
occupy
"IK"
The
bytes
software
8224
type
MHz
crystal
signals,
standard
Memory
64
board
installed
integrated
time
cause
is
found
to
5-82).
locations
of
Clock
8224
power-on
Access
(RAM).
bytes
space
of
450
improper
the
processor
RAM
monitor
Generator
integrated
is
used
Memory
MCEM
circuit
This
are
required
is
provided
on
circuits
nsec.
on
pages
between 0 and 1023 (0 -
occupy
uses
(Intel;
circuit
with
reset
the
or
operation
locations
the
signal
memory
MCEM
should
less.
5-79
memory
RAM
locations
board
through
pp
generates
device
and
is
can be
for
the
so
that
board
be
Slower
of
the
space,
between 1024 and 2047 (400 H -
5-1
to
5-6)
all
to
generate
ready
provided
used
software
an
(factory
type
system.
5-82
the
3FF
between 0 and
by
additional
8102A-4, a
RAM
devices
of
the
standard
- Hex). The
system
the
line
synchronization
with
monitor
installation
the
user's
Further
Intel
"IK"
1024
1024
device
should
manual
63
timing
2.0
bytes
program.
bytes
information
bytes
second
(0 -
signals.
MHz
of
programs,
is
recommended).
featuring
NOT
(Intel;
of
3F
processor
pulses.
Random
but
Additional
("lK")
be
(optional)
7FF
H).
of
an
used
on
RAM
H).
as
the
1-1
Page 7

1.4
Read
Only
The
MCEM
4096
bytes
of
bi-polar
device
Four
socket
same
type
starting
of
selection
(EPROM
at
1.4. I EPROM
Memory
system
EPROM
PROM
(Programmable
is
locations
or
32,768
is
provided
(Erasable
made
are
by
provided
PROM).
(8000 H).
with
Programmable
Read
Only
selection
for
The
ROM
occupies
sufficient
Read
Memory -NOT
of
the
proper
the
ROM -all
consecutive
circuit
Only
board
Memory)
erasable).
circuit
four
memory
space
or
board
must be
for
2048
bytes
The
jumpers.
of
the
locations,
Either a type
5-50) can be
the
8704
is
ment.
1.
4.2
PROM
Type 3624
is
the
standard
PROM
with
MCEM-8080
jumpered
to
use
1.4.3
used in
Refer
1.4.4
l-83Q8
with
location
a 512 x 8
circuit
for
other
ROM
A
type
the
to
Appendix A
Monitor
The
HAL
ROM
the
MCEM.
32,768
8708
used
on
a 512 x 8
PROM
device
board.
use
of
devices,
8308
HAL
ROM
MCEM-8080.
Software
software
integrated
The
(8000 H).
or
8704
the
MCEM
board.
device.
integrated
furnished
organization.
NOTE:
this
device
refer
to
integrated
This
for
jumper
ROM
monitor
can be
circuits.
monitor
software
EPROM
integrated
The
Refer
circuits
with
'
Up
to
Appendix A
can be used
the
to
Production
on
the
circuit
Appendix A
circuit
is
a mask-programmed
details.
resident
Either
is
2-3624
1024
circuit
8708
is
a 1024 x 8
for
on
MCEM.
four
The
3624
36241s can be used on
MCEM-8080
board.
for
details.
(Inte~;
pp
in
or
bytes
5-59 & 5-60)
either
1-8308
in
(Intel;
proper
the
MCEM.
is a bi-polar
circuit
If
it
version
2-3624,
ROM
length
pp
device
jumper
boards
is
desired
can
of
the
1-8708,
is
standard
and
begins
5-45
and
This
the
also
to
place-
IC
are
be
8708.
or
at
1.5
serial
I/O
1.5.1
Serial
The
data
in
either
8251
A
type
Input
standard
interface.
Baudot
USART
8251
Synchronous/Asynchronous
output
the
well
serial
processor.
as
word
data.
Parallel-to-serial
length
/ Output
MCEM-8080
The
(5-unit)
integrated
Receiver/Transmitter
This
selection
(I/O)
provides
software
or
circuit
device
and
ASCII
is
parity
1-2
for
either
monitor
(8-unit)
(Intel;
fully
and
serial-to-parallel
pp
programmable and
are
synchronous
supports
codes.
5-135
(USART)
controlled
or
asynchronous
asynchronous
to
5-146)
is
used
Universal
to
is
controlled
conversions
by
the
8251.
serial
input
and
by
as
Page 8

1.5.2
Serial
Timing
Oscillator
A
type
555
integrated
circuit
timer
is
used
to
generate
the
serial
data
baud
rate.
The
data
rate
is
screw-driver
adjustable
on
the
circuit
board.
The
actual
555
clock
frequency
is 4 times
the
baud
rate
in
ASCI
I
mode
and
16
times
the
baud
rate
in
Baudot mode.
1.5.3
EIA
- RS-232C Data
Interface
Two
operational
ampl
ifiers
(both
halves
of a type
145B
Ie)
are
used
as
RS-232
drivers
and
receivers.
The
serial
output
of
the
B251
USART
is
directly
converted
to
a ± 5
volt
signal,
with
-5
volts
representing
the
"mark"
signal
condition
and
+5
volts
as
"space".
The
output
impedance
of
the
circuit
is
approximately
400 ohms. For
input
data,
an
operational
amplifier
is
used
as a sense
ampl
ifier
and
level
converter.
Input
voltages
greater
than
+1.0
volts
are
interpreted
to
be in
the
"space
ll
condition
and
those
less
than
+1.0
volts
as
"mark".
The
input
impedance
is
approximately
2700 ohms.
This
input
will
property
sense
TTL-level
signals,
as
well
as
EIA
- RS-232C
signals.
1.5.4
Current
Loop
Interface
Current
loop
signals
with
either
20
or
60
ma
mark
currents
can
also
be
connected
to
the
MCEM-BoBO.
Two
optical
isolator
integrated
circuits
are
~sed
to
convert
between
the
floating
cur~ent
loop
circuit
and
the
RS-232
levels.
These
sensors
are
separated
so
that
one
can
be
used
for
data
input
and
the
other
for
output
(separate
current
loops -"full-
duplex"
operation).
The two
circuits
can
also
be
series
connected
to
provide
both
data
input
and
output
on a single
current
loop
circuit
("half-duplex"
operation).
1.6
Parallel
Data
Input / Output
A
type
8255
integrated
circuit
(Intel;
pp
5-113
to
5-133)
is
provided
to
allow
parallel
data
interfacing.
This
device,
called
the
"Programmable
Peripheral
Interface
ll
,
consists
of
three
buffered
B-bit
parallel
data
ports.
The
software
monitor
util
izes
the
8255
for
parallel
I/O
operations.
1.7
Bus
Indicators
and
Control
A number
of
indicators
(small
LEOs -Light
Emitting
Diodes)
and
switches
are
installed
along
the
front
edge
of
the
MCEM-BoBo
circuit
board
to
permit
evaluation
and
control
of
the
processor
operation.
1.7.1
Address
Indicators
The
entire
16
bits
of
the
BOBo
address
bus
are
displayed
on
16
LEDs.
The lamps
are
grouped
in
four-lamp
clusters,
four
clusters
total.
Each
group
of
four
lamps
represents
a
single
hexadecimal
(HEX)
character,
0
through
F.
An
illuminated
lamp
indicates
a
logic
"I"
condition.
Within a four-lamp
cluster,
the
least
significant
bit
(LSB)
is
represented
by
the
right-hand
lamp.
Similarly,
the
right-hand
cluster
of
four
lamps
represents
the
least
significant
hexidecimal
character.
1-3
Page 9

1.7.2
Data
Indication
Eight
state
of
and an
1.7.3
the
to-right
which
of
1.7.4
of
the
the
address
illuminated
Bus
The
four
state
order)
of
these
these
signals
Manual Data
of
Immediately
sectio~
contents
when
is
not
the
1.7.5
miniature
the
in
the
affect
lamps,
Run / Stop
of
Data
ON
lamps
processor
lamps.
Control
lamps on
the
signals
operations
the
data
Bus
position.
the
processor.
LSB
to
(in
two
four-lamp
data
As
lamp
bus.
before,
represents
Indication
the
extreme
I/O Read, I/O
from
is
is
found in
Switches
in
front
of
switches.
bus.
Override
The
These
(DBa)
data
The
the
right.
Switch
Write,
the
processor.
active.
the
Intel
the
eight
The
switches
switches
switch
switch
switches
clusters)
These
the
right-hand
a
logical
left
Memory
A
manual
data
are
lamps
end
are
11111
of
Read, and
An
complete
(Intel;
lamps
provide
can
be used
(to
the
settings
are
arranged
used
to
immediately
lamp
represents
for
that
the
circuit
illuminated
description
pp
are
located
manual
to
right
at
of
any
in
indicate
bit.
board
Memory
5-7
control
enter
the
other
the
same manner
to
Write
lamp
of
to
two,
data
time
the
the
the
indicate
indicates
the
5-12).
four-
of
data
switches)
does
left
LSB
(left-
function
the
only
as
A
miniature
(labeled
this
switch
operate
STOP
switches
1.7.6
(unless
position,
will
Reset
The
contact
causes
type
the
cleared.
is
released.
function.
1.7.7
allows
switch
Single
The
manual
only
STEP
RUN -STOP
that
some
than
one
operation
toggle
RUN -STOP)
is
set
halted
the
cause
Switch
far
right-hand
that
can
program
Processor
Appl
ication
Step
switch
stepping
functions
switch
or
instructions
switch
allows
to
the
by
processor
processor
push-button
be used
counter
execution
of
Switch
(located
of
when
the
break
require
of
step
manual
RUN
position,
the
program
is
activity.
to
to
set
commences
DC
between
the
computer,
the
switch
on
the
control
or
halted
switch
manually
to
zero
power
processor
point
more
register.
than
to
complete.
right-hand
of
the
processor
some
and
only
(labeled
reset
and
at
location
supplies
the
RUN -STOP
one
MEMORY
has
been
one
memory
section
the
8080A
will
other
the
control).
manual
RESET)
the
808oA.
the
interrupt
0000
automatically
and
cycle
halted
It
is
important
cycle
of
the
board
Ready
line.
continue
When
STEP
and
is
a momentary
A
reset
flip-flop
when
the
issues
RESET
switches)
at a time.
by
either
to
and
therefore
When
to
in
the
RESET
operation
to
reset
a
reset
This
the
remember
be
switch
more
1-4
Page 10

1.7.8
In
four,
point
four-section
registerl•.
register
two
are
808oA
is
continue
setting
Break
the
with
equal.
halted
running
the
Point
middle
the
This
due
break
Register
of
the
miniature
Circuitry
address
function
to a break
by
either
point
Switches
control
switches.
is
bus and
is
manual
switches
area
provided
cause
similar
point
Ilmatchll,
stepping
to a new
of
the
circuit
These
to
the
16
switches
compare
8080A
the
to
to a programmable
it
can
with
the
STEP
value.
board
value
stop
only
are
form
a.
of
operation
stop.
be
caused
switch
located
"break
this
switch
if
Once
to
or
by
the
the
re-
1.7.9
Memory
Two
circuit
functions.
when
depressed,
circuit.
output
1.8
write
Connectors
There
These
to
wi
1.8.1
connectors
the
th
the
Universal
I/O
Input / Output
circuit
located
8255
are
The form
Write
momentary
board.
The
Similarly,
function,
are
MCEM.
Interface
board
on
edge
the
available
of
serial
and
switches
These
switches
MEMORY
overriding
depression
used on
three
connectors
are
used
Processor
Connector
(I/O)
connector
left
edge
on
this
data
Output
are
WRITE
switch
the
again
the
MCEM-8080
overriding
for
Bus. Mating
connections
(0.156
of
the
connector
to
be
Write
Switches
located
allow
manual
will
normal bus
of
the
used
on
I/O
Interface,
11
finger
board.
as
used
is
on
the
operation
cause
control
OUTPUT
the
normal
the
basic
connectors
to
the
spacing,
All
three
well
selected
far
a manual
from
WRITE
control
MCEM-8080
Power
for
MCEM
are
parallel
as
connections
with
left-hand
of
memory
memory
the
switch
Input,
and
each
made
18
pin
circuit
side
or
write
8228
will
from
integrated
cause
the
circuit
connection
are
furnished
through
double
I/O
ports
for
serial
board
of
the
output
function
an
8228.
board.
a 36
pin
readout)
of
the
data.
jumpers.
1.8.2
connector
upper
and +5
1.8.3
can
located
and
of
is
Power
Power
right-hand
volt
Universal
Direct
be made
in
attached
options
made
through
Connector
connections
(0.156
11
finger
corner
power
supplies.
~rocessor
connection
through
the
lower
ribbon
such
as
the
to
the
spacing 6 pin
of
to
the
the
40
right-hand
cable
are
additional
UPB
connector.
MCEM
the
Bus
computer
pin
supplied
memory
are
made
double
circuit
board.
Connector
address,
Universal
corner
of
for
and
1-5
through
readout)
The
data,
Processor
the
board.
use
of
this
the
Keyboard/Video
the
located
MCEM
and
Bus
(UPB)
A
feature.
12
pin
edge
in
requires
±
control 1 ines
connector
mating
connector
Connection
Display
the
12
volt
unit
Page 11

2.
INSTALLATION
OF
THE
MCEM-8080
2.1
and
damage
packing
The
2.2
with
for
Initial
Upon
receipt
inspect
is
found,
material,
If
any
are
missing,
following
Accessories
40
of
36
12
MCEM
Intel
Intel
Connection
The
MCEM-BoBo
(Input/Output)
Baudot code
circuit
the
ASCI I code.
Inspection
of
the
them
at a variety
for
contact
check
parts
and
pin
Universal
ribbon
pin
edge
pin
edge
Operating
BoBo
B080
of
Serial
standard
operations
board
jumpers.
evidence
please
and
Parts:
cable
Microcomputer System
Assembly Language
MCEM-BoBO,
of
the
carrier
that
all
notify
accessories
Processor
attached.
connector
connector
Manual
Input / Output
circuitry
in
either
of
baud
The
unpack
shipping
parts
the
are
the
rates.
MCEM-BoBo
damage.
'immediately.
and
factory
furnished
Bus
(UPB)
Reference
Devices,
and
software
7-unit
The
the
circuit
If
Before
accessories
or
distributor
with
connector
User's
code
is
Manual
Card
will
ASCI
to
usually
I code
board and
evidence
discarding
are
accounted
the
MCEM-BoBo:
with 2 ft.
support
OR
be used
factory
accessories
of
shipping
in
writing.
serial
the
5-unit
is
selected
connected
the
for.
I/O
2.2.1
(circuit
ASCI
format.
600 baud. The
second).
output
a
values.
and
The
I mode.
II
The
list
periods
ASCII
ASCI I mode
number 15,
all
This
serial
As
baud
the
Common
s
data
parity
stoE
bits
rate
are
I
7
I
2
of
Serial
format
tar.t
unit
noted
ASCI I character
serial
bit
bits
bit
bits
per
baud
in
(ego.
ASCII
listed
I/O
Operation
is
selected
left
edge
communications
is:
(space)
(set
(mark)
character
rate
is
factory
section
16
baud
in
by
of
space)
to
timing
adjusted
1.5.2,
x 300 =
set
rates
Table
2.3.
strapping
board)
is
is
screw
the
4Boo
used and
and
the
pin
to
ground
performed
driver
for
300 baud (30
555
timer
Hz
for
300
their
corresponding
.
22
(DSR)
(see
with a 7-bit
adjustable
is
baud).
corresponding
of
Appendix B). In
from 100
characters
set
to
Table
oscillator
the
B251
ASCII
per
16
ti.mes
2.1
contains
hexadecimal
frequencies
to
the
2-1
Page 12

Table
2. I
ASC
II
Character
Code
III
.....
co
.....
C
III
U
4-
c
CJ)
V>
.....
III
III
C1l
-.oJ
-'T
0
2
3
4
5
6
7
8
9
A
B
C
D
E
0
NUL
SOH
STX
ETX
EOT
ENQ
ACK
BEL
BS
HT
LF
VT
FF
CR
SO
DLE
DCI
DC2
DC3
Dc4
NAK
SYN
ETB
CAN
EM
SUB
ESC
FS
GS
RS
3
Most
2
SPACE
II
#
$
%
&
(
)
it\.
+
Significant
Bits
3
0
2
3
4
5
4
@
A
B
5
P
Q
R
C S c s
D T d
E
U e
6 F V f
7
8
9
G W g w
H X h x
Y y
J
Z j
K
<
L \
M m
>
N
A
6
a q
b
k
n
7
P
r
t
u
v
z
{
}
'V
ACK
BEL
BS
CAN
CR
DCI
DC2
DC3
DC4
DLE
EM
ENQ
EOT
ESC
ETB
ETX
FF
F
SI
acknowledge
bell
backspace
cancel
carriage
device
=
device
device
device
data 1 ink
end
of
WRU = enquiry
end
of
=
escape
end
of
end
of
=
form feed
US
return
control
control
control
control
1
2
3
4
escape
medium
transmission
transmiss
ion
text
/
block
Mark
Data
=
logical
j s
transmitted
?
FS
GS
HT
LF
NAK
NUL
RS
RUB
OUT
S I
SO
SOH
STX
SUB
SYN
US
VT
1
0
file
group
horizontal
line
negative
nu
11
=
record
delete
shift
=
shift
=
start
start
substitute
synchronous
unit
vertical
LSB
first.
a
separator
separator
tabulation
feed
acknowledge
separator
(=
DEL)
in
out
of
heading
of
text
idle
separator
tabu 1
RUB
OUT
at
ion
2-2
Page 13

Table
2.2
Baudot
Character
Code
Most
Significant
Bit
(1)
Letters
Figures
0 0
0
BLANK
T
BLANK
5
E
Z
3
+
2
LF
L
LF
)
3
A
W
2
III
4
SPACE
H
SPACE
#
~
co
5
S Y
6
~
6
P
8
0
e
ttl
U
7
u
Q
7
<l-
e
8
CR
OJ
0
CR
9
In
9
D
B
$
7
.j...I
A
R
G
4
&
III
ttl
CIl
B
J
FIG
BEL
FIG
...J
~
C
N
M
D
F
X
/
E
C
V =
F
K
LTR
LTR
BEL
=
be
11
(or
"')
BLANK = blank
(non
print
or
space)
CR
=
carriage
return
FIG
figures
case
LTR
letters
case
LF
=
line
feed
Mark
=
logical
I
Data
is
transmitted.
LSB
first.
2-3
Page 14

circuit
board.
REVERSED
2.6
Universal
The
ribbon
The
cable
total
external
and
control 1 ines
The
connections
THE
(particularly
Processor
processor
attached
length
loads
of
should
and
to
MCEM-8080
if
connected
Bus
bus
of
the
to
the
this
cable
not
exceed
5,
LOW
the
UPB
CAN
BE
Connector
8080A
Universal
should
three
CURRENT,
connector
DAMAGED
to
high-voltage
can be
extended
Processor
not
exceed
standard
bus
receiver
are
shown
IF
THE
Bus
24
TTL
in
I/O
current
with
(UPB)
inches.
loads
loads
Table
CONNECTOR
loop
a 40
circuits).
conductor
connector.
The
total
on
the
address
on
the
data
2.6.
IS
lines.
Pin
Function
Al2
2
+12
A10
3
4
+5
A8
5
6 Ground
A6
7
Ground
8
A0
9
10
02
(TTL)
Table
2.6
Universal
Pin
15
16
17
18
19
20
21
2Z
23
24
Processor
Function
Al
MEMR
A3
I/O R
A5
I/O W
A7
RESET
A9
RDY
Connections
Bus
Pin
29
30
31
32
33
34
35
36
37
38
Function
AI4
(NC)
A15
Locating
DB0
DB4
DBI
DB5
DB2
DB6
Key
II
J 2
13
14
Note:
A2
(NC)
A4
MEMW
Connections
but
not
connected
with
the
on
25
26
27
28
(NC)
the
2-12
A
II
(NC)
A13
(NC)
designator
factory
may
standard
have a
units.
39
40
function
DB3
DB7
assigned
Page 15

3.
OPERATION
OF
THE
MCEM-8080
3.1
Software
Monitor
The
software
monitor
supplied
with
the
MCEM-8080
properly
interfaces
the
serial
I/O
port,
the
parallel
I/O
ports,
the
keyboard
display
option,
or
other
user-defined
I/O
devices.
The
monitor
allows
the
user
to
perform
the
following
operations.
These commands
are
entered
from
the
console.
3.1.1
Load
hex
(hexidecimal)
files.
Large
files
can
be
loaded
into
the
MCEM-8080
RAM
from
the
reader
device
by
using
the
following
format:
I~
~~3~
r 3[57.
·rl-_·
._._23
__
T
__
:~~:H;~:LD
RECORD
TYPE
L------------LOAD
ADDRESS
L..-
_____________
RECORD
LENGTH
L---------------COLON
COLON:
All
records
must
start
with a COLON
character.
Any
characters
preceding
the
COLON
are
ignored.
RECORD
LENGTH:
The
number
of
load
bytes
in
the
data
field
is
specified
as
a number between
00
and
FF
(0
to
255).
This
is
a hexadecimal number and
is
either
two
characters
long
or a single
character
followed
by a comma
(i.e.,
07 = 7,).
If a zero
length
record
is
entered,
the
load
is
terminated
and
control
is
restored
to
the
mon i tor.
LOAD
ADDRESS:
The
memory
location.
into
which
the
first
byte
of
the
data
field
will
be
written
is
specified
here.
Successive
bytes
in
the
data
field
will
be
written
into
successively
higher
memory
locations.
This
number
is
either
four
characters
long
or
less
if
terminated
with
a
comma
(i.e.,
032E =
32E,).
RECORD
TYPE:
The
record
type
is
specified
here.
With
the
present
version
of
the
monitor
(Version
1.1),
all
records
are
of
type
zero
(enter
00).
DATA
FIELD:
The
actual
data
to
be
written
into
memory
is
specified
here.
These
are
two
character
hex
bytes
and
each
pair
of
characters
is
converted
to
eight
bits
to
be
loaded
into
memory.
3-1
Page 16

SUMCHECK:
The
format
This
hex
(the
load
SUMCHECK
all
of
the
zero.
SUMCHECK
output
if
used
the
to
L 0 t
This
device.
SUMCHECK
byte
represents
address
value
fails,
specify
is
other
is a validity
an
However,
fails.
is
such
bytes
··X"
a
load
two
bytes)
that,
of
will
the
file
the
negative
when
the
record,
check
be
data
is:
in
the
modulo 256
on
the
printed
will
sum
record.
the
total
record.
on
the
still
of
all
The
is
added
will
serial
be
loaded
bytes
If
to
equal
the
After
the
3.1.2
The
range
command
format
10
H)
inserted
input
The
dumped
. D
L----------L
L-----------------Prompting
receIvIng
first
Dump
contents
to
be dumped. The
so
of
until
between
so
th~t
that
the
file
or
Idump
the
the
colon.
Display
of
memory
entire
the
dumped
is
300 , 400
p<-------carr
~-------Load
portion
other
hex
this
command,
memory
is
in
various
sent
~
areas
can
output
a number
range
file
to
the
be
generated
can
first
is
depleted.
bytes
is
compatible
punch
of
i
age
offset
of
than
characters,
indicates
the
monitor
dumped
be
hex
records
but
the
device.
Return
(added
the
that
load
peri9d
will
(or
displayed)
is
compatible
dumped
For
monitor
with
The
(CR)
to
hex
records
specified,
0000
issued
begin
and
(of
clarity,
ignores
the
command
the
load
-
FFFF)
by
searching
by
with
then
maximum
load
loaded.
spaces
spaces
file
format
address
to
load
memory
up
to
four
the
monitor
specifying
the
load
The
length
are
on
routine.
is:
for
the
=
T
..
T...
I
L--~--------First
L-------------------Comma
~---------------------First
<------------------------0
~--------------------------Monitor
This
example
between
length
locations
record
is
always
TL-----Carriage
command
300
H
to
added
will
400
cause
H - 1
at
3-2
(Dump)
the
Return
undumped
separator
dumped
command
prompting
display
as
16,
end.
of
16
byte
byte
all
byte
(CR)
period
memory
records.
contents
A
zero
Page 17

3.1.3
Insert
Memory
Data
Individual
The
command
The
After
and
when
location
data
For
has been
example,
locations
format
82E
T
'--------------1
~---------------Monitor
output
82E
is:
t
TL----Carriage
generated
=
27
~pcesent
'-------------Space
~--------------Address
this
has
been
done,
unchanged,
written
any
entered,
consider:
in
memory
Starting
(Insert)
is
of
Equals
output,
into
memory.
non-comma
the
address
prompting
the
memocy
sign
character
a
comma
charqcter
is
can be
Return
memory
following
If
modified
address
command
contents
is
it
incremented
(CR)
period
format:
typed
is
desired
can be
by
using
followed
to
typed.
and
displayed
this
by a new
leave
After
command.
the
memory
the
again.
byte
new
I f any
character,
3.1.4
JUMP
subroutine.
JUMP
Program
command.
. I 82E
82E
=
27 , 2E
(Insert
----~--~Il['-----New
L
_______
'----------------Response
82F
character
control
Command
87
control
This
The
format
between
returns
can
command
for
to
be
can be used
Comma
(Computer
next
"G" and
the
monitor.
transferred
this
command:
memory
data
(entered
(entered
by
response
location)
IIZII
is
to a specific
to
"jump"
command,
by
by
user)
computer
typed
instead
to a user
generated
user)
indicating
of
location
contents
a hex
through
program
by
user)
of
the
or
3-3
Page 18

· J
23
}.
T
T~------carr
iage
Return
(CR)
3.1.5
Program
CPU
registers
command.
Twelve
~-----------------JUMP
L--------------------Prompting
RETURN
Register
command
control
restored
The
format
R
283
T
L---------------RETURN
L-------------------Prompting
register
t
TL----'
------
can be
to a predetermined
of
this
-
values
Destination
command
transferred
command
Carriage
Destination
are
restored
address
period
to a specific
value
is:
Return
address
command
period
by
this
issued
by
executing
(CR)
issued
command
Stored
Memory
by
monitor
location
by
monitor
including:
at
location
and
a
RETURN
the
PC
SP
The
using
These
process
(SPH & SPl)
a
is
3.1.6
expecting
val
zero,
an I
locations
of
id
RAM
STOP
A
STOP
B
C
D
E
A
PSW
H
l
(PCH
PCl (low
(SPH
SPl
initial.
(Insert)
restoring
is
address.
the
destination
command
command
a
control
(Accumulator)
(Processor
(high
(high
(low
are
used
order
order
value
command
shown in
the
as
can be
character
order
order
(to
temporary
If
Status
program
program
stack
stack
be
restored)
to
the
the
registers,
the
destination
is
taken
initiated
by
Word)
counter)
counter)
pointer)
pointer)
memory
above
the
storage
from
at
typing
of
location
list.
stack
and
address
the
storage
any
an
IISII
these
Note
area
therefore
time
(or
37
36
35
34
33
32
31
30
2F
2E
2D
2C
registers
used
that,
indicated
SP
specified
area.
at
which
any
other
can be
for
during
should
in
the
storage.
the
by
SP
contain
the
monitor
letter
set
by
command
is
between
3-4
Page 19

"G" and
to
be
then
issue a new
"Z").
aborted
As
explained
and
control
prompting
in
is
returned
period.
section
3.1.4,
to
the
this
will
mon i tor.
cause
The
the
mon i tor
command
wi
11
3.1.7
a
an
command
status
saves
From
registers
initial
EXIT
command
An
exit
RST 7 instruction
entry
at
is
intended
while
the
PC
here,
it
into a special
RST 7 instruction
EXIT
A
prompting
I
(Insert)
The
memory
RETURN
command
location
command.
The most
a
RST 7 (0FF
automatic
to
the
be
executed
exit
program
from a program
or a CALL
38
H from which
to
permit
in
the
process
(Program
jumps
Counter)
to a routine
RAM
is
232E
period
valuable
H)
instruction
will
sequence.
(hexadecimal)
is
then
can
be used
used
to
use
be
executed.
An
since a RST 7 is
to
the
38
it
saves
the
of
executing
on
area.
typed
issued
to
store
of
the
in
the
interrupt
used
monitor
H.
The
monitor,
ALL
CPU
examination
a
the
stack
within
out
by
When
as:
the
the
finished,
monitor.
examine
the
register
exii
command
program
The
RETURN
will
as
the
interrupt
can
be
registers
of
program.
and jumps
monitor
and/or
values
is
sequence
command
also
executed
upon
all
CPU
The
which
the
At
change
accomplished
by
entering
turn-on,
and
establishes
status.
registers
RST 7 instruction
to
location
copies
address
this
point,
38
all
of
individual
is
listed
under
by
the
the
inserting
being de-bugged and an
can be used
cause
the
exit
to
command
vector.
This
and
H.
registers.
the
return
to
3.2
Monitor
Sever~1
monitor.
3.2.1
initial
3.2.2
BEGIN
Th
i s
izes
CI
CI
is a conso)e
(standard
ASCI I code
are
modified.
3.2.3
RI
This
is
originated
Serial
ASCII
Subroutines
general
Some
of
these
(address
subrout
all
i ne
parameters
(Console
serial
in
I/O) from
the A register.
Three
(address
routine
by
I/O
is
the
is
purpose
subroutines
subroutines
8000
H)
allows
genera I entrance
and
the
Input -address
input
routine
the
console
The
levels
8006
the
reader
H)
same
of
the
as
input
standard.
are:
USART.
8003
that
contents
stack
the
CI
device
are
H)
will
control
of
are
routine
instead
included
to
the
return
device
the
A and
used
by
except
of
in
the
software
mon i tor
an
and
this
by
mode.
ASCI I character
place
PSW
registers
operation.
that
the
the
console.
It
the
character
3-5
Page 20

3.2.4
co
(address
8009
H)
output
the
A and
by
this
3.2.5
This
subroutine
to
the
PSWregisters
operation.
PO
This
character
3.2.6
LO
This
that
the
data
ASCI
I I/O
3.2.7 . CSTS
This
status
A
of
register)
subroutine
be used
to
character
console
(address
routine
is
output
(address
routine
is
the
is
output
standard
800C
is
to
800F
is
(address
is a console
the
console
or
A =
0FF H if
will
only
determine
being
input
causes
device
are
H)
the
same
the
punch
H)
also
similar
to
the
code
8012
H)
status
input
return
if a call
and
returned).
an
ASCI I character
(serial
modified
as
the
I/O
and
CO
device
to
the
list
output
format.
request
device
an
input
subroutine
and
character
if a character
to
CI
is
is
standard).
three
subroutine
(serial
CO
routine
device.
returns
is
input,
successful
in
the C register
stack
levels
except
ASCII
I/O
with
As
before,
which
A = 0
is
evaluates
(zero
waiting.
a
call
(will
The
that
is
the
result
contents
are
used
the
standard).
exception
serial
value
Since
to
CSTS
in a
to
the
in
the
be
of
ASCI
the
can
I
CI
3.2.8
A
output
These
logical
physical
Serial
Keyboard /
Parallel
User
10CHK
10SET
single
(I/O)
CONSOLE:
READER:
PUNCH:
LI
devices:
Defined
(address
(address
memory
devices.
ST:
devices
I/O:
Display:
I/O:
USRIN
return
operation
USROT
to
.
of
8015
8018
location
Referenced
Referenced
Referenced
Referenced
can be
I/O:
(address
an
(address
the
CO
an
ASCII
H)
H)
The
logical
"assigned"
Uses
Optional
Uses
ASCII
to
the
subroutine,
character
in
RAM
is
devices
by
CI,
by
RI
by
PO
by
LO
the
8251
MCEM-KB/VDU
the
8255 Programmable
40 H): A
character
CI
subroutine.
43
H):
A
which
in
used
to
define
available
CO,
CSTS
to
anyone
of
USART
Keyboard/Video
user
user
input
in
the A register,
subroutine,
will
allow
subroutine
the C register.
the
four
are:
the
following
Peripheral
similar
similar
output
input
Display
Interface
which
in
to
the
/
Unit
will
in
function
user
I/O
IC
3-6
Page 21

USRST
A = 0
A
=
0FF H if
(address
if
USRIN
46
will
USRIN
H): A
not
will
user
status
routine
return a character
immediately
return a character.
which
returns
immediately
and
Serial
and
may
ASCII
to
done
is
in
(8-unit)
and from
otherwise.
assigned
the C register.
I/O
be
either
ASCI I code
to
data
serial
code
For
the
and performs a code
The
Keyboard / Video
available
board / Video
play
screen
for
the
Display
(output),
MCEM-8080.
status.
Parallel
circuit.
and
Port C for
is
used
for
The
user
his
own
I/O
controlled
calls a set
USRST)
(C
43 H is
46 H is
CI,
I,
for
RI),
CO,
executed;
executed.
and
I/O
data
Port A of
control.
parallel
defined
subroutines
Selectric
of
routines
USer
a ca I I
I/O
to
CSTSformat.
is
processed
Baudot
(DSR
pin = 11011).
is
instance,
serial
The
monitor
conversion
Unit,
read
is
the
8255
The
I/O.
I/O
to
(©
which
appl
ications.
40
His
if
the
status
The
routines
through
(S-unit)
performed
if a call
I/O, an
ASCII
routine
if
necessary.
Display
Unit
If a logical
the
monitor
the
keyboard
processed
is
used
seven-bit
Mode 1 of
capabil
service
IBM)
ity
particular
typewriter,
start
When
executed.
of
the
in
these
For example:
code
In
Baudot
by
the
to
character
checks
is a HAL
will
(input),
through
for
data
ASCII
the
8255
is
provided
at
location
the
To
I/O
locations
the
82S1
I/O
CO
USART
(DSR
pin = "111)
code,
subroutine
is
performed
should
the
status
integrated
the
code
and need
always
of
Communications
device
is
assigned
automatically
and check
the
8255
output,
code
is
devices
etc.).
monitor
PPI
integrated
Port B for
(bit
8 =
used
so
(Intel;
that
the
(such
The
monitor
40 H
(USRIN,
requests a character
output a character,
device
is
needed, a
should
conform
or
serial
conversion
while
the
be
the
DSR 1 ine
option
to
the
write
the
the
keyboard
input,
11
110
,
space)
p
S-123).
user
as
can
an
electrically
automatically
USROT,
a ca
II
call
to
circuit
not
be
console
present
Key-
dis-
write
and
to
to
the
Memory
format
Address:
of
the
46 H
location
assignment
07
06
LIST
Contents
40 H
43
H
3
is
DS
PUNCH
INPUT
OUTPUT
used
byte
04
of
Memory
JMP
JMP
[ INPUT
to
store
is:
03
02
READER
Location
3-7
USER
USER
the
01
CONSOLE
INPUT
OUTPUT
STATUS
INPUT
ROUTINE
OUTPUT
I/O
00
3
ROUTINE
ROUTINE
device
assignments.
The
Page 22

D0
D2
D4
D6
and
and
and
and
Dl
D3
D5
D7
define
define
define
define
the
the
the
the
console
reader
punch
1
ist
device
device
device
device
(CO,
(R
I )
(PO)
(LO)
C I ,
CSTS)
Each two
For
example:
The
monitor
turn-on
The
monitor
Unit
01010101 B (55
Video
bit
M)
assigns
assigns
01
assigns
10
assigns
1 1
Memory
(a)
(b) Reader
(c)
(d)
has
Display
location
Console
Video
Punch
List
automatically
and
thus
also
been
set
can have
serial
Keyboard
pa
ra
user
operations
Display
operations
operations
operations
ass
checks
attached
H)
which
Unit.
of
are
are
via
Jog i
the
Display
via
via
via
the
memory
ca
if
the
UPB.
all
one
I/O
Vi
deo
11
e 1 I/O
I/O.
3 = 10110001 6
Unit,
are
are
sets
i gns
all
to
see
to
the
assigns
following
option
(61
the
the
serial
the
user
parallel
location
I dev
ices
optional
If
so,
logical
H)
defines
optional
I/O
to
memory
devices
four
to
Keyboard / Video
values:
that:
Keyboard / _
I/O
device,
device,
I/O.
0000 0000 6 (00
the
ser
i a I I/O
location
to
the
3
is
Keyboard /
H)
port.
Display
set
upon
to
If,
at
command
will
assignments.
A
into
assignments,
3.2.9
B
are
and
much
used
result
A_call
register.
memory
MEMCK
This
register
intended
are
used
memory
to
set
any
can
be
• I
03
in a
to
A
location
these
(address
routine
and
memory
to
by
is
available
these
time,
used.
t
request
10CHK
call
routines
returns
hold
the
values
it
is
For
to
will
to
10SET
3.
If
801B
location
the
address
resident
to
if
desired
example:
change
return
should
H)
the
the
will
it
them. The I
this
write
is
desired
contents
6
into
of
assembler
routine
to
reassign
location
value
be
used.
of
the A register.
the
of
the
to
memory
first
and
editor
(INSERT)
is
3 which
contents
used.
the
memory
change
location
non-RAM
to
command
I/O
system,
contains
location
of
the C register
the
I/O
5
These
memory
determine
should
the
the
I/O
3 in
system
into
the
locations
address
how
be
the
3-8
Page 23

4.
(ROM),
these
SYSTEM
The
MCEM-8080
Input
sections
ADDRESS
ports,
are
ASSIGNMENTS
uses
and
discussed
Random
Output
below.
Access
ports.
Memory
The
address
(RAM),
Read Only
assignments
Memory
for
4. 1 Random
The random
storage.
bytes
more
4.1.1
The u e
stack
storage
in
(User
4.1.2
program
of a user
a
RETURN
are
of
integrated
and
section
Input),
All
stack
available
Access
The
RAM -this
Monitor
for
locations
3.2.8,
User
commands assume
RAM
RAM
in
storage.
stack
in
the
Memory
access
standard
can be
circuits
RAM
Usage
temporary
to
avoid
the
43
H (User
Usage
locations
The
into
free
and
RAM
that
(RAM)
memory
MCEM-8080
doubled
to
storage.
interference
entry
Output),
higher
monitor
account.
area
that
the
user
is
used
the
circuit
points
stack
Therefore,
(higher
at
least
stack
by
both
systems
to
User programs
for
and 46 H (User
than
"2
FF
y
40 H
does
than
three
is
are
K"
board.
H
are
the
with
user
not
user
40
not
furnished
of
so
the
I/O
is
take
H).
levels
the
the
monitor
RAM
by
reserved
tware
available
monitor
should
monitor.
assignments
Input
the
programs
The
(6
bytes)
same
and
with
the
for
not
Status).
possible
EXIT
as
1024 ("1
addition
RAM
use
As
are
to
the
should
command
of
the
for
user
K")
of
memory.
or
e
these
explained
40 H
user
for
requirements
establish
and
user
stack
monitor
stack.
4.1.3
integrated
and
for a total
circuits
MCEM-8080.
installed
operation.
~.
ace
does
RAM
4.2
stage.
from
Typical
for
Optional
The
connections
not
storage
Read Only
The
(Non-volatile
the
uses
peripheral
RAM
standard
circuits
of
should
It
by
W en
ween 400
affect
is
MCEM-8080
MCEM-8080.
MCEM-8080
are
"2
be used
is
highly
the
HAL
the
Hand
the
available
Memory
of
the
devices,
circuit
installed.
provided
K"
(2048)
Communications
second
bytes
to
assure
recommended
"1
7F
monitor
(ROM)
uses
=
RAM
ROM
RAM
for
Read
stored
is a volatile
include
and
user
However,
that
K"
usage
user
Only
data
storage
4-1
board
1024
of
compatibility
factory
of
programs.
Memory
is
programs.
additional
bytes
RAM.
that
RAM
a
and
retained
memory;
of
has 1024
these
is
therefore,
(ROM)
of
Only
to
used,
atlon
the
bytes
circuit
RAM
ICs
type
with
integrated
assure
jt
of
this
for
non-volatile
even when power
ROM
is
monitor,
("1
can
8102A-4
the
rest
circuits
proper
occu
all
ies
additional
of
non-volatile.)
support
K")
of
board
be
the
space
added,
integrated
of
the
system
the
ad
additional
program
is
subroutines
RAM
be
ress
RAM
removed
,
Page 24

4.2.1
software
space
Monitor
The
memory
monitor
on
the
ROM
locations
main
p'[ogram.
MCEM-8080
betweenlB000
This
2 3624 PROM's, 1 8708
When
of
are
the
the
used,
type
3624 ICs
available
the
monitor
are
on-board
consumes
used,
ROM
program
circuit
EPROM,
the
space.
one-quarter
Hand
uses a part
board.
or
1 8308
monitor
When
B3FFlH
It
is
contained
ROM
are
of
the
integrated
program consumes
either
of
the
the
870B
on-board
occupied
ROM
in
one-half
or
8308 ICs
ROM
by
the
storage
either
circuits.
space.
4.2.2
to
Display
Display
and
Similarly,
is
located
peripheral
ROM
4.2.3
defined
as
has been
MCEM-8080
ROMs
and
Peripheral
Many
operate.
Unit
Unit
logically
also
resident
in
storage
User
Space
ROM
that
used
suppl
can be
extends
MCEM-8080
Typical
option
support
located
the
ROM
memory
devices
in
descending
ROM
is
provided
storage.
for
ied
board must
intermixed.
toH Communications
please
consult
the
ROM
peripherals
such
and
software
between
containing
on
the
locations
are
developed,
on
These
the
monitor
in
type
use
provi
factory
require
peripheral
the
PROM
Programmer
is
physically
memory
the
programmer
between F200
locations
the
main
ROMs,
software.
3624
the
User
es
3624
ROM
if
ROMs,
ROM
it
programmln
support
devices
include
option.
resident
locations
software
circuit
Hand
they
will
below
MCEM-BoBo
F800
to
support
board and
F3FF
be
assigned
F200
H.
circuit
however, must be
For
instance,
all
four
ROM
ROM.
However,
stora e starts
services
is
desired
to
program a
programs
the
The Keyboard / Video
on
Hand
the
the
H.
board
of
the
if
positions
types
at
or
870B
location
70
to
(I'software")
Keyboard / Video
its
circuit
F9FF
PROM
program
As
additional
RAM
and/or
for
same
the
on
H.
Programmer
user
monitor
board
is
type
the
and 8308
8400 H
3~Csl.
MCEM-8080
owners -
PROM.
,
4.3
system.
Video
4.3.1
one
The
assigned
4.3.2
the
fourth
Input / Output
Various
Display
8251
The
output
control
input / output
Among
these
Unit
USART
8251
port
IC
for
port
to
0A
H.
8255 Programmable
The 8255
ports
output
map
IC
directly
port
(I/O)
are
option,
Integrated
requires
control
has been
requires
to
is
used
Assignments
the
ports
8251
and
have been
USART
the
Circuit
two
input
and one
assigned
Peripheral
four
output
the
three
for
PPI
4-2
IC,
PROM
Programmer
and
two
input
to
port
Interface
and
parallel
mode
selection.
preassigned
the
8255
output
and
one
0B
H and
(PPI)
three
I/O
input
ports
PPI
option.
ports;
output
the
IC
ports.
The 8080
in
data
of
the
IC,
one
port
the
MCEM-8080
the
Keyboard /
input
for
data.
port
is
Three
IC. The
ports
and
of
Page 25

corresponding
to
the
8255
ports
are:
4.3.3
and
See
this
4.3.4
input
the
8080A
Input
Input
Input
Output
Output
Output
Output
NOTE
:
MCEM-KB/VDU
The
optional
two
input
the
Keyboard / Video
option.
MCEM-7K
The
optional
ports.
PROM
Programmer manual
ports.
These
Port
H
0C
H
0D
H
0E
H
0C
H
0D
H
0E
H
0F
There
PROMPROG
is
no
Keyboard/Video
Keyboard / Video
These
Display
PROM
PROM
Programmer
are
assigned
for
8255
Port
Port
Port
Port A output
Port B output
Port
8255
Input
are
Programmer
port
Display
Display
assigned
Unit
requires
as
808oA
further
Port
A
input
B
input
input
C
C
output
Mode
manual
Select
0F
H.
Unit
Unit
as
8080A
for
four
ports
information
requires
ports
further
output
80,
81, 82, and
on
one
0,
4,
information
ports
this
option.
output
and
and
three
83.
port
6.
on
See
4-3
Page 26

5.
OPERATING
Much
system
computer
examples
will
has
that
of
the
be
been
will
HINTS
versatil
best
gained.
ity
understood
help
to
of
This
gain
the
only
section
this
MCEM-8080
after
needed
practical
of
the
experience.
and
manual
the
software
experience
contains
monitor
with
some
the
5. 1 Power-on
Several
initially
baud
rate,
and
corrected
"power-up"
The
When
all
Once
of
the
the
installing
I/O
the
a.
b.
c.
d.
e.
address
address
address
circuit
f.
g.
h.
i.
Start
items
connections,
(if
system:
Set
Set
Set
Set
App
board)
Set
The 808oA
8000 H
Set
The
which
monitor,
Press
to
If
if
the
blank.
is
to
Up
should
the
necessary),
RUN/STOP
the
the
(front
the
I y
DC
indicators
lamps
indicators
the
the
DATA
represents
and
begin
the
the
monitor
ready
use.
be
checked
MCEM-8080.
etc.
switch
DATA
BUS
DATA
BUS
of
rocker
break
power.
should
are
on
are
should
RUN/STOP
will
(the
setting
Data
Bus
indicators
a
JMP
release
executing
proper
Keyboard / Video
will
blank,
to
accept
Once
the
following
to
OVERRIDE
REGISTER
switch
point
come
console
blank,
register
momentarily I ight
(logical
off,
on and
switch
now
run and
of
Override
should
the
first
instruction.
the
the
send
period"
a command. The
out
and
Among
these
STOP
switch
switches
down)
"I"),
the
WAIT
all
to
RUN.
automatically
the
break-point
(DBa)
now
STEP
device
the
switch.
software
Display
character
possibly
these
instruction
are
items
sequence
(DBO)
to
(ADDRESS
the
808oA
lamp
DATA
is
to
lamps
to
OFF.
indicate
monitor.
operational
Unit
indicate
system
changed
the
power
have been
can be used
to
ON
a I I
zeros
switches)
and
then
is
being
(far
right-hand
should
stop
register).
C3
H (1100 0011
in
the
This
causes
is
not
sequence:
that
is
when
suppl
checked
to
to
8000 H
extinguish.
RESET.
be
off.
at
location
software
the
(serial
attached),
"CR.
the
now
LF.
monitor
ready
ies,
side
B)
8080A
I/O
NOTE:
The
software
location
been
automatically
an
initial
the
is
removed
automatic
0
(0.
entered
entry
DBO = ON.
or a user
monitor
1,
(at
8000 H). a
cause
has
Data Bus =
monitor
2)
as
an
entry
been made,
program
entry
writes
it
is
RESET
into
0,
Break-point
writes
on
RESET
a jump
initializing
(set
the
software
it
is
no
data
will
not
5-1
to
monitor
so
the
program
longer
= 8000 H
in
location
operate.
instruction
that
once
counter
monitor.
necessary
routine
the
Therefore.
again.
0,
I,
monitor
to
to
go
or
into
zero)
through
If
2,
the
has
will
once
power
Page 27

5.2
should
Changing
The
software
be
selected
the
Monitor
monitor
before
Mode
has
power
several
turn-on
operational
and some
options.
after.
Some
options
5.2.1
BAUDOT
of
to
three
connection
must be
of
performing a RESET,
mitting
this
5.2.2
monitor
to
This
is
external
double
An
teleprinter
To
This
be
command
Baudot /
The
serial
or
ASCI I units.
the
IC,
terminal
the
monitor
is
connected
is
made
the
DSR
a 5
jumper
Half / Full
In normal
the
output
is
to
be used in a
echo would
example
defeat
location
re-initialized
BEFORE
connection
bit
is
in
the
called
to
the
of a self-echoing
in
the
can be
ASCI
I/O
which
normally
character
shown in
operation,
form
device
echoing
MCEM-8080,
which
echo
is
normally
used
I Code
processing
The
DSR
three
to
power
the
Duplex (Echo /
of
system
result,
feature,
upon
to
of
code
ground;
furnished
is
changed
result
Figure
commands
so
that
of
the
keyboard
each
perform
the
is
being
is
appl
to
an 8
characters
the
the
which
this
causing
I/O
FF H should
initial
new
routines
terminal
I/O
connector)
used.
for
BAUDOT,
on
the
ied
to
with
may
B.l.
or
operator
character.
automatically
feature
entry
the
power on and
be
indeterminate
bit
USART,
No
echo)
that
parameters
repeating
system
and
printer
ized
to
into
change
can
be
operated
on
the
8251
is
For
ASCII
to
+5
volts.
MCEM-8080.
the
MCEM-8080.
etc.).
are
input
are
can
view
If
however,
echos
may
be
defeated
of
the
is
the
serial
are
be
written
00
upon
the
monitor.
by
typing:
in
USART
used
without
retransmitted
connected
monitor
to
code,
This
(fo~
The
to
and
the
input
into
terminal
The
connection
If
example
placement
the
verify
the
MCEM-808o-
input
(otherwise
characters).
loop~connected
location
entry
The I
either
(pin
22
indicate
ASCI
I
the
state
first
trans-
software
out
them.
character,
in
series.
0D
and
(Insert)
of
a
H.
will
• I D t
000D
000E
The
characters
double
character
to
be
transmission
I I 0 D t t
000D
000E
As
above,
one S
underl
appeared
ined
because
00,F F
005-
typed
00
00
characters
L'
S
the
by
F F F F
echo
the
operator
is
occurring,
indicate
has
5-2
been
are
it
those
turned
underlined.
will
typed.
off
appear
Notice
by
that
If
as:
time.
the
that
only
Page 28

5.2.3
and
Changing I/O
As
discussed
10CHK,
an
ment. Changing
I
(Insert)
asin
(Ports
strings.
the
0 and
command
preceding
1)
The
initialization
Unit
the
option
presence
is
of
IOSYT = 55.
5.3
to
the
use
Manually
Two
the I (Insert)
following
Writing a Memory
methods can be used
Device
in
section
eight
this
bit
byte
to
section
is
changed,
10SYT
by
is
the
attached,
the
Keyboard / Video
procedure
Assignments
byte
will
change
(5.2.2).
the
set
to
monitor.
all
command.
can
also
3.2.8
is
the
with
reserved
change
byte
the
as
Remember
new
console
zero
devices
(all
If,
however,
are
Display
Location
to
write a memory
If
it
is
be
used:
regard
to
to
hold
device
explained
that
will
devices
the
set
to
Unit).
location,
impractical
monitor
the
system
assignments.
in
section
if
the
be
polled
set
to
serial
Keyboard/
it
(the
monitor
In
this
to
use
routines
I/O
3.1.3
console
for
Video
case,
the
easiest
the
10SET
assign-
Use
the
and
device
new
command
I/O) upon
Display
checks
being
I command,
for
5.4
to
perform
be
used.
for
a.
b.
c.
d.
e.
f.
g.
h.
i.
j.
Manually
If,
for
Note
initial
a.
b.
c.
d.
e.
f.
g.
h. The program
Set
Set
Set
Set
Press
Set
(The
memory
Set
(number
Press
Set
Go
Jumping
some
a jump
that
entry
Set
Set
Set
Set
Press
Set
{The
Set
begin
the
RUN / STOP
the
DBO
switch
the
DATA
switches
the
break-point
and
release
the
RUN / STOP
Address
indicators
address)
the
DATA
switches
to
be
and
release
the
DBO
switch
to
the
desired
to
a Program
reason,
the
to a desired
this
into
the
the
the
the
the
address
the
is
the
the
monitor.
RUN / STOP
DBa
switch
DATA
switches
break-point
and
release
RUN / STOP
DBa
switch
indicators
counter
program
switch
to
ON
to
register
the
RESET
switch
stored)
the
MEMORY
to
OFF
address
Address
monitor
program
same
switch
to
register
the
switch
to
is
execution.
to
zero
switch
to
should
to
the
to
JMP
(Jump)
point,
sequence
to
ON
to
zero
RESET
switch
to
should
OFF
now
set.
STOP
to
the
RUN
now
desired
WRITE
proceed
command
the
as
described
STOP
to
the
RUN
now
Press
desired
equal
new
the
memory
switch
with
program
following
desired
equal
the
the
address
desired
value
is
unavailable
sequence
in
section
address
desired
STEP
switch
execution.
can
5.1
address}
to
5-3
Page 29

5.5 Manually
At
times
output
port.
Writing
it
is
This
can
to
an
desirable
be
accomplished
Output
to
be
Port
able
to
by:
manually
write
data
into
an
(1)
(2)
(3)
5.6 Using
The
the
8080A. During
to
determine
Setting
this
STEP
the
information.
switch
contains
the
loop and
will
time
stop
the
5.7 Using
Follow
using
steps
the
Remember
high
order
instance,
(and
Press
Go
break-point
and
to
the
the
Break-point
break-point
when
break-point
as
a IIloop
a
loop,
each
STEP
the
the
the
RUN / STOP
time
is
pressed
E and R
a.
through
output
that
port
I/O
address
Output
Port
release
desired
Register
~egister
the
course
and
if a particular
register
Another
use
execute
break-point
it
passes
and
Commands
address
addresses
and
once
23 H is
register)
the
OUTPUT
address
provides
of
debugging
to
of
ll
switch.
register
switch
through
released.
for
h.
of
are
as
as
WRITE
to
proceed
for
a mechanism
string
this
the
break-point
set
to
the
Debugging
the
previous
instead
copied
the
low
of
twice,
order
represented
2323
H.
switch.
with
Debugging
a program,
of
instructions
address
If
the
software
can be
RUN.
set
At
loop and
two examples
the
memory
once
address.
on
the
program
for
selectively
it
(or
I/O
register
to
an
this
will
point,
continue
address.
as
address
execution.
may
be
is
port)
allows
being
address
the
For
bus
stopping
desirable
executed.
will
pro~ide
use
of
debugged
within
the
808oA
each
the
software
The
debugging programs.
complete
monitor.
restoring
command
E
5.7.1 Manual
program
examine
instance
are
The
following
context
The R
the
When
a program
steps
the
the
internal
a.
b.
Set
Press
to
complete
is
invoked
EXIT
(u~ing
contents
B,
to
procedure
RUN / STOP
(If
the
STOP
brihg
at
(RETURN)
A,
the
switch
and
monitor
The E (EXIT)
any
point
command
context
by
executing
Command
is
being
the
STEP
of
some
or
PSW
8080A,
can be used
switch
STEP
switch
is
release
the
execution
provides
in a user
allows
previously
debugged
switch),
·of
the
registers).
they
can
to
is
being
probably
the
STEP
to
two
very
command
program and
RST
7.
by
it
internal
However,
not
be
to
examine
STOP.
used
already
switch
the
first
powerful commands
is
a mechanism
entering
return
saved
For
manually
to
example:
is
sometimes
the
by
the
stepping
registers
since
directly
examined on
these
for
debugging,
set
to
STOP.)
as
many
byte
times
of
to
aid
for
saving
into
user
program
E command. The
through
d~sirable
of
the
these
registers
to
8080A
the
internal
an
instruction.
registers:
the
as
necessary
RUN
in
the
after
the
·(for
console.
/
5-4
Page 30

The E
an
command
instruction.
can
only
For
be invoked
instance,
C3
F2
2B
JMP
during
23F2
ihe
fetch
is
represented
cycle
of
by
c.
d.
e.
f.
g.
h.
i.
in memory.
read
Set
Set
Press
Set
Set
At
on
(indicated
the
the
and
the
the
this
the
console
Remember
ments
be
the
or
inhibited.
next
Type
The saved
following
The E command
on
DBO
swi
tch
DATA
swi
tches
release
DBO
swi
tch
RUN / STOP
point,
the
device:
that
if
the
disturbs
"XXXX"
address
.
D2C,
after
38,.
register
format:
the
data
to
ON.
to
the
STEP
to
OFF.
switch
following
EXIT
xxxx
users
the
USART
in
the
values
can
only
indicators).
FF
(a
11
"ones" = RST
switch
to
once.
RUN.
character
program
the
mode,
above
the
one in which
will
now
be invoked
stream
reassigns
console
character
RST
be
displayed
when
n.
should
the
I/O
operation
stream
7 was
in
C3
is
be
typed
assign-
may
represents
inserted.
the
being
:0C
002C
00
:00 0038 00
where:
SPl
= low
SPH = high
PCl
= low
PCH = high
l = l
H = H
PSW
= A
A
E = E
o
=0
C = C
B
= B
SC = Sum
SPL
SPH
order
order
order
order
register,
register,
Processor
register,
register,
register,
register,
register,
Check
PCl
PCH
stack
pointer,
stack
program
program
stored
stored
Status
stored
stored
stored
stored
stored
Character.
5-5
l H
PSW
pointer,
counter,
counter,
at
30
at
31
Word,
at
33
at
34
at
35
at
36
at
37
A E 0 C B
stored
stored
stored
~tored
stored
at
at
at
32
at
SC
2C
20
at
2E
2F
Page 31

The
format
D7 D6
of
05
the
04
Processor
02
03
Status
01
00
Word
(PSW)
is:
where S, Z,
j.
will
k.
After
was
S z 0
AC,
If,
at
this
to a new
allow
the
the R (RETURN)
program.
saved
is
To
where
the
address
inserted
one
more
use
the
"XXXXII
console
point,
value,
the A register
registers
The
instead
than
R command,
is
after
AC
P, and
the I command
command
return
in
this
the
yyyy xxxx - I
the
. Ryyyyt
P 1
0
CY
are
it
is
desired
.
133
to
have been examined and changed
can be used
address,
case.
of a valid
address
mentally
address
the E identifier
the
can be
t
be
however,
(Recall
of
stored
CY
corresponding
to
set a particular
used.
modified.
to
return
that
instruction
the
substituted
calculate
and
(see
is
not
a-RST 7
the
step
flags.
For
example,
to
the
the
and
the
RST
address
h).
register
(if
desired),
original
same
as
instruction
saved
7.)
displayed
Now
type
the
address
on
5.7.2
interrupts
fore,
+5
If
(below
All
may
recompute
A
wi
states
The
if
volts
the
of
be
return
11
return
Interrupt
user
3F
the
used.
just
Leading
monitor
to
execute
it
is
desired
on
the
has
H),
the
techniques
However,
the
address
to
zero
the
prior
zeros
EXIT
software
INTR
n~t
CPU
(INTERRUPT) 1 ine
disabled
following
command,
to
to
the
can
be
Command
and
the
E commands
to
execute
the
should
EXIT
xxx x
for
examining and
when
a R
because
the
the
program,
interrupt.
omitted.
MCEM-8080
(the
interrupt
an E command,
(pin 4 of
interrupt
appear
command
interrupt
restoring
hardware
or
written
on
the
modifying
is
desired,
method
the
vector
it
can be
the
36
console
registers
it
saves
registers
combine
is
RST
instituted
pin
into
low
device:
is
not
the
to
cause
7).
I/O
connector).
memory
listed
necessary
proper
to
their
There-
by
above
address.
placing
to
5-6
Page 32

5.7.3 Programmed
EXIT
Command
Many
can be used
instruction
cause
If
it
the
and modify
(RST
as
areas
will
E
that
the
the
user
is
then a simple
list.
n.
A
useful
the E command
of
memory.
be
immediately
command
could
programs
to
perform
is
inserted
following
EXIT
tabulates
The
techniques
the
CPU
feature
driver
Since
process.
conceivably
have
error
error
in
the
to
be
displayed
xxxx
the
addresses
matter
parameters
that
encountered
Th
to
explained
results
is
prevention
non-existent
i s
feature
rewrite
testing
exits
program
correlate
that
and
he
all
subroutines
from
existed
when
of
these
in
on
the
of
all
the
previously
the
of
transfer
memory
control
Ips
prevent
memory
and
the E command
programs.
the
error
console:
of
the
"XXXX"
can be used
at
the
RST 7 instruction
is
generally
then
the
otherwise.
branch,
RST 7 instructions,
typed
time
to
non-existent
transferred
"run
If a RST
it
against
to
of
the
FF, a
away" cond i t ion
7
will
evaluate
interrupt
is
used
RST
to
the
7
5-7
Page 33

6.
PROGRAM
features
these
They
for
more
for
ideas
Except
memory
EXAMPLES
This
section
and
example programs be
are,
however,
elaborate
as
as
noted,
furnished
contains
capabilities
working
programs,
to
typical
all
example programs
with
the
several
of
the
considered
routines
as
subroutines
procedures
MCEM-8080.
example
MCEM-8080.
"optimum"
that
can be
to
be used
will
programs
In
no
or
"required
used
in
user
with
operate
to
demonstrate
case
as
should
starting
programs,
the
MCEM-808oA.
in
the
any
procedure
or
basic
the
of
points
simply
111
KII
ll
•
6-1
Page 34

7.
SOFTWARE
The
following
Microcomputer System
the
sole
benefit
and
remains
may
not
be
HAL
Communications Corp.
changes,
prior
versions
additions,
notification
of
MONITOR
of
the
sole
duplicated
the
programs.
pages
software
owners
property
for
or
deletions
or
obligation
LISTINGS
contain a complete 1 isting
monitor.
of
HAL
Communications
of
HAL
any
use
without
HAL
Communications
to
to
This I isting
Communications
the
prior
reserves
these
incorporate
computer
such
of
is
Model
Corp. The
permission
the
programs
changes
the
MCEM-8080
provided
MCEM-8080
listing
of
right
without
in
for
systems
to
make
prior
7-1
Page 35

-------------
8080
~AC~O
ASSEM8LLR.
V~~
2.2
MCl~-80Br.
MC~ITC~
1.1
ERROR5
= 0
PAGE
1
----------_._----
;
COPYhTG:-n
1<..,76
(C)
BY
HAL COIV1MUNICAT-ICNS
CCf<P----------
--------
------------------------------------
...
807
E
GREEN
STREET
UR6A~A.
ILLINOIS
61801
.MCE.t..L_li_llt.
ITCF<---1)SCEME
E
l:L--Lg.71~
HAL
COMMUNICATIONS
CC~F.
;
THIS
PROGRAf\1
IS
CONTAII\ED
IN
PROMS
(Cl.O)
(FIRST
HALF)
;
______________________
----AND_L02.
..
.oJ_(...SECnND
.H.ALE..l---'
,
____
..;
_T
H.E-
__
FULLCI/.lNG.-AJ-i.c_v
AL
1 C
__
C.c~
...
V.AND"S_
EOP
__
TI-!E
"'CEM
MGNITOF<.:
L<BIAS>
LOAD
A
hEX
FORMATTED
FILE.
·
-----~----------.----
______
--'-CH
ECK-.r
CR.._
SUMLrl
ECK-ERf--ORS
______________________
.
AND
TYPE
A~
'x'
IF
ERRCR.
THt:
VALLE
cre
The
ErAS
IS
ADDED
TC
Tht:
LeAC
AOCF-<ESS
________________
-+
____________
oBLEDRL
__
T
HL_D
AI
A.._~
.
.s.._.w
RLT
TeN
______________________
_
TO
ME~GRY.
THE
READ~R
DEVICE
IS
LSED
AS
INPUT
-------------
___
--J,D-'-'<~S~TA..fU.>
•
<t:
ND>-DUMP
__
-.C
h-D
I -SPL
AY-M
..
EMO.RY
.....
_______________________
_
MEV,ORY
LO(AT!CNS
FROM
<START>
TO
BUT
~01
INCLUDING
<£,:I\D>
IS
OU~PEO.
ThE
FOqMAT
OF
THIS
-----
__________
; _____
[tUMJ:>._L~
..
C.GMPAIAaLE_W_lT_t::._LHr:.f
______________________
_
LOAD
CCMMA~D
SO MEMOkY
AREAS
CAN UE
CU~FEd
AND
LOACEC
AT
A
LATER
TI~E.
THE
PUNCH
DEVICE
______________
_>_---
_________
........... I_C','---ul1C-.J.SE.J:.......AS
OljIPUT
__________________________
_
•
;***THE
FORM
FOR
BOTH
LeADS
~NO
DUMPS
IS:
-----7""""'-,------'------...--
.......
:.
<.LEN.G.:r..l:::->_<A..D£B£:..s..s..>_<-.I_Y£D
__
~DA.I..A..._B.Y.TE..S>_<.Sl'MJ:-I.EC.K--'>'__
________
-----------
ALL
kECChD~
APE
PRECEEDEC
8Y A COLON.
ALL
; CHARACTERS
EETWE~N
T~E
S~MC~tCK
AND
THt
COLON
_____
----'-
____________
;-.---ARE----.-liiNL.RED.... ____
.ALL-...5...P....P...L.E.S.._AR
E I G
"OREJ2
___
LL.
c..L..._SP...A'-"c
.....
l::.~S
________________
_
CAN
DE
CONTAlNED
IN
THE
~~CORD
WITH
NO
EFFECT)
.
<LENGTH)
IS
THE NUMHER
CF
DATA
eYT~S
IN
THt
---------
_____
'9____
hCLOBD.JD_G-=-EE....L
_____________________
"_"
__
·
•
<ACD~ESS>
IS
THE LOAD
ACDRESS
(OOCO-FFF~)
<TYPE>
IS
NOT
USr::D
AT
THIS
TIME
AND
IS
OJ
(IGr~OREl)
<DATA
8YTES>
ARE THE
ACTUAL
DATA
•
<LEN~TH>
OF
THEM
Page 36

--<-----------------------
80SC
~ACRC
ASSEM8LE~.
VER
2.2
MC~W-8CeO
MONITOR
1.1
LRQORS = 0
PAGE
2
------------------
<-<-----------
--------
«---
---
------------
--
-«
--<-
--------------
<-<-----«-------
<S~C~ECK>
lS
T~E
NEG
~UM
~F
ALL
~YTES
(ADDRESS
IS
TWO
AY1E~
(~IGH
ANU
LC~»
;
~XCLUuING
yt--E:
COLeN.
I.E.
TrE
SUM
OF
--
___
;
____
< -
________
-A
LL--- 8 Y T E S - < I
1\.
C L
L,C
if'.. G --T I-L SU M
CH
ECK----l-S--D'-----------,------
FCR
1\.0
CRf.;C~.
DU~I1\:G
LOAD.
IF
A
SU~CHECK
EFROP
IS
E:NCUUN1E~ED,
AN
'X'
IS
PPI~TED
eN
THE
CONSOLE
CEVIC~.
----------------------;---------~-----
I <L
OC~T
ION>
INseRT
IN
TH~
SPECIFI~D
LUCATIC1\..
TH~
PREVIOUS
COf'..TE1\.TS
CF
THE
LeCATION
----------'--------i------~------Il_S_-.:r-yp~_C-
__
_:rHE___CO~C-V-I-I.C
...
E;;.--JlhS:>---------------------
·
•
<--------.
---
USED
FC~
I~PUT
ANC
OUTPUT.
A'.
I
IS
LSED
TO
CPEI\; A CELL:
I.E.
_______
•
I65------------
0065
58.74
--
------------'-----
WOULD
DE
TI-E
FORMAT
FOR
CHANGING
----------
_________
<.<
____________
<LCCALLCI\;_65-_F<RQM-5B-(OLC-
__
'iALUW-J
....
0'--
_________________
_
74
(NeW
VALUE)
_____
+.
_--,-,I
<~L_uOC-A-llON_>---GO--T
c--<
LOCA
TIC
N)-
..
__
A-UNCON C
LT--LD-NJ4A4.L~---------------
JUMP
IS
EXECUTED
TO
THE
IN-
CICATED
LCCATION.
INTERRUPT
(EXIT
CUMMAND'
IS
~~ABLED
BFFCRE
THE
·
----------------~------
_____
.,)IUMR_O-
________
<____
«
____
_
R<LCCATION>
RETUR~
TO
LOCATIO~.
A
RESTORE
REGISTER
JUMP
[S
EXECUTED
TO
~------
---
__
L~CA
T-
I-e:
I\--U
1\.L
E S
S-·
L C
CAT
_ID
N--::-C--l
N
WHICH
CASE.
T~E
CCNTE~TS
of
THE
PCSAV
IS
LSED
.AS THE
ADDRESS.
INTERRUPT
(EXIT
COMMAND)
IS
ENABLED
---------------------------~
;
---------~------------~
<
._-<
--------
------------
;
.:
--->
-------
----««----
-------oBE:.EORC-.-1HE----RETURN
.--------------------
-------------<
EXIT
COMMAND: A RST 7
WILL
EXECUTE
AN
EXIT
COMMAND.
ALL
REGISTERS
ARE
SAVED
-----------1.1
N_~:Ar_.r._E'O
k_._EXftMl N AT-LON
____
At\iD/D~
________________________
_
MUDIFICATICN.
THE
R
COMMAND
IS
THE
CCl..NTER OF THE
EXIT
COMMAND
AND
WILL
~ETURN
THE
FROC~SSOR
TO
<
__________
.LI
.IS-JJ
F<LGL1'.._PL
._STA T E
___
A!LEXII
___________
_
COMMAND
SI-CULD
~E
PERfORM~D
PRIOR
TO
AN
h
rC~MANC
8ECAUSE
THE
STORED
VALLE CF THE
SP
SHOULD BE
_____
.
___
~_--1NT
!\CL
..
(1.1:..._
PO
IN
L_TO
..
A
VALl
0_._«.
__________
_
STACK
AMLA.
(CTHER
THAN
THE
MUNITOR
STACK).
Page 37

------------------
----------,-----------
808C
~AC~C
ASSEMBLeR.
VER
2.2
MCc~-tiC80
MC~ITOR
1.1
eRRORS:
0
PAGE
3
I/O
ASSIGNMENT:
AN
EICHT
BIT
I/O
ASSIGNMCNT
BYTE
IS
STCKcD
AT
LOCATIU"
lCBYTE
(03)
; THE VALUl:: CF
THIS
eYTE
Dlf-<=:CTS
TtiE
-----.;
------
----
------
-----
CON
S D
Lt::.
- R
t:t.
C E
R. -AN
0 - P U
r-..C
H (
LIS
T
TOO)
TC
U~E
(t::ACH)
OF FOUR
PO~S
ISLE
I/C
DEVICES.
THE
FORMAT OF
IOSYT
IS:
-----------------'-~-~-------
-------------------------------------
----------
07
06
D5
C4
O~
02
Cl
CO
/LIST
DEv/PUNCH
UEV/READ
DEV/CC~SOLE
/
--------l;.A..CH--CE
V-I-C
E--C-AN----BE-ASS
IG""N~E~(.L-!
-T~O'_:~
_______________
_
00
: S
U-<
I A
LIN
PUT
/ C l. T
PUT
Ul
G:
5
1.
AS C I I C R
I:;A
U DOT }
;
01:KEYBUARO
DISPLAY
MCDULE
(CPTIONAL
DEVICE)
___
.. _ -------------.1-0;
PARAL
LEL--
INPUT/eli T FUT_
(8255
)--
________
__
11:USER
INPUT/CUTFUT
(USER
DEFINEC
kOUTINES)
•
;_nALL
__
l'.;U
MS
Rl
C-£..1I.JRl
S-S-CA
N
__
BE_J
E
RMI
NALED-aV-L-
______________________
_
TYPI~G
ANY
OF
THE
CHARACTE~S
G-Z
----------------.-------------------
TITLE
'MCEM-bceo
MONITOR
1.1'
CONSTANT
DEFINITIONS
KEYEOARG
CISPLAY
I/O
(C"STANTS
Feco
CSP(K
EOU
CF800H
;CISFLAY
PRESENT
CHECK
_F-
E-C-A-----~--_SD
F-lu.O_---<:;;E Q U
____
---J(L.--
;;,.S-""P_CK..±
OJd:,,_:SEI_D-LSPLA
.....
Y
__
..&--I
....
O~--'R-'--Y~I-"-f-----'F_Nuo.-'-I--"R"--
v'--
___________________
_
FeCi
K~IN
EQU
DSPCK+l
;K8I~
E~TKY
Fe07
KBSTS
EQU
CSPCK+7
;KOSTS
ENTRY
F€C4
aSPOl
EOU
DS~CK+4
:CIS~LAY
OUTPUT
ENTRY
-----------------------.
;
SERIAL
I/O
CONSTANTS
•
,cee
CSR
EQU
80H
;CS1;
BIT
IN
USART
{O=BAO)
______
--,cc
E..:~:_..
_________
LnTH~_EOU
__
__"Fu_: . .lH
;.LAkL_[l.tO~EOH_EAUDilT_L
_______________________
_
~OlF
LTHS
EOU
lFH
:EALCCT
LETT~RS
0018
FIGS
EOU IBH
;8AUDUT
FIGURES
CeQ7
8CASI
EOU 7
;EAUDCT
CASE
(I~PUT)
.cc c E E C f..SQ
__
EQU
C£:.~_~£i\JJ.c'O_'L_CA5.L...LCJJTElJ__'_T~)'__
_____________________________
_
0002
~X~DY
EOU 2H
;RX
~EACY
TEST
MASK
COOl TXRDY
LOU
lH
;TX
REACY
TEST
MASK
0027
TXRXE
EQU
27H
;TX.~X
E~A8LE
-_.
_____
OCEA-
URIMO
FQU
(lEAH
;L_BJ:
I_S_L.EVEN_P,l'\RITY_jO
__
2...~S.;LLT__'_Ou:P~
________________________
_
CCSE
l.ARTI
EOU
8EH
;l~ITIAL
U~RT
MOCE
WORD
CC~5
UARTR EOU
55H
;UART
RESET
COM~A~D
ecoe
URTCT
EQU
CSH
;UART
ceNTROL
PORT
Page 38

--------
80ec
~ACRO
ASSEM8LER.
V~R
2.?
MC~M-80A~
MCNITC~
1.1
ERRORS
= 0
PA~E
4
......•.. _
.......
-
._-------_._
.........
__
.. - _. -
..
----_._
..
__
._-
----.-------.----------.---------------.-------------------
(CeA
L.RTDA
EQLJ
OAH
;Ut.r::r
O"TA
PORT
•
;
PARALLEL
I/O
CONSTANTS
.
__
._--_
..
_---
.-._--. --_._----?
.--.-.---.
---------
GtJ,\E
Fllr-1MO
EQlJ
OAcH
;FPI
MODE FOt-<
PARALLeL
I/O
CO(IF
PAF'CT
EQU
OFH
;PAKALL~L
CCNTRGL
PORT
0002
PIf-.DY
EOl)
2
;;:Ar:;ALL~L
INPUT
ReADY
BIT
-------c.cc
E
--.
_psT_Ar
__
.[QU
___
O£...HL......-
__
~F-A
J<.ALL
SL-
S.IA
l-U
S-_~CRTI___:_-------_--------------
C (. 0 C
PIN
PTE
0 U 0
C.
H ;
!=
A
I.
II
L L
ELI N PUT
PO
k T
(ceo
PORDY
fOU
80H
;PA~ALLEL
CL.TF-UT
P~ADY
BIT
eeoc
FOTPT
EQU
OCH;FA~ALLEL
CLJTPUT
PURT
'---:---'---..--
._._-_.
__
._.
;
USER
I/O
CONSTANTS
OC40
LSRIN
EQU
40H
;ENTf-.Y
FOR
USER
INPUT
-·------·-~04
~.------·---.-.--USROT---
EOU
__
._4.3H
_____
:
ENT
RY
.
FOR
._L.SER_
..
CUTFuL
__ . __
......
__ . __ . ______
_
Q 0 4 (;
LJ S PST
E Q U 4 6 H ; E
I,
1
t~
Y F 0 K
L.
S E R I N
PUT S TAT
U S
ceCA
oeoc
•
;
~ISC
MONITCR
CCNSTANTS
~.-
..
-----
LF
CR
•
EQU
EOU·
OAr:
CDH
;ASC11
LlNE
FEED
;ASCII
CARPIAGt
RETURN
_______________
-..: J ..
w.l\.UDB-M..EtvI.DR..Y-ALLOCA.:U.CN5.....
__________________________________
_
•
CCG5
MSZl
EQU 5
;~ErvSIZc
STCRE
C006
MSZ2
~QU
6
;rvEMSIZE
STORE
(HIGH)
------c
C C
4,_~
___ . __
.........LI
F
LA~£
QU!l-
______
;
_l.NGIR.
JiEF.._
.
.TD_
E.l_L_rLA G ____
_
C,)2e
RGSAV
EQU
3et-!
;~TAf..T
CF
RESTART
STLJkAGE
002C
MONST
EOU
kGSAV-12;~C~ITOR
ST~CK
AREA
002E
PCSAV
EQU
PGSAV-I0;LOCATICN
OF
PC
SAVE
---------.-00,-:.-2
-
..
PSSAV-,--EQU----Rt;;.SAV,...
b--:"
LO.cA.T
ICN-UE-_P.SW._-SAVc
_________
_
CC03
IORYT
~QU
3
;1/[
ASSIGNMENT
STORAGE
OCOC
ECHOM
EQU
CCH
;STCFAGE
FO~
ECHC
MODE
FLAG
,
;------,v.
CN..Ll.o R.......R.Al4--ALLOCAT IDr-....:
___________
_
•
;
C-2
JU~P
TO
MCNITOR
ceDE
; 3
IOBYT
(I/O
DEVIC~
ASSIGNM~NT)
_________
-'--
____
.
..:_~_lELA.G...
___
(..LNG.l.J_<ECT_CCh.S.CU=_ . .FLf..:Ef<.ENCE-F..LAGJ
_____________
.
__________
_
; 5
MSZl
(LC~
CkDFR
~E~O~Y
SIZE
BYTl)
; 6
~SZ2
(hIG~
CRU~~
NEMGRY
SIZE
BYTE)
; 7
eCASI
(8AUDOT
CASE
F~~
INFUT)
..
_.;
__
.EL~9_CI~.S
RR. ___
tC
UF~
S
UR-
P.O..s.l_LLC.l'.....EL
R-_CRI-C..LSP.LA
Y1_.
_____
.
A
CFSAV
(UFSCT
REGISTER
COpy
FOR
CRT
UISFLAY)
8
~IDC~
(C~APACTER
~IDDEN
UNDE~
CURSOR)
C
~PTFG
(kEPEAT
MODE
(KEYBOARD)
FLAG)
..
-.. -
..
----
..
----
..
--.-.------.
-c..
__
t:C~.c,\~
__
.{
ELHC/NO_..ECH£"._,_i',I.CCE..
__
FLPG
L.
__
._.
__
F
8CASu
(3AUUOT
CASE
FOF
OUTPUT)
F
SF
AK
E
lO-2C
~CNITUP
STACK
-
----
-.--.---
----------_._-_
.. _ ..
Page 39

aOSD
~AC~C
ASSE~BLEK.
VER
2.2
~Ct~-80aO
MC~IT8~
1.1
ERRnRS
= 0
PAGE
5
--------------------------------------
20-37
REGISTER
SAV~
STCRAGE
3a-~~
EXIT
CO~MA~U
ENT~Y
JLMP
(RST
7)
3B-3F
SPARE
MACRO
DEFINITIONS
1
TEST
~ACKC
1
ANA
A
;SET
FLAGS,
CY=O
ENDM
_____
8COO
____________
..
____________
-CRG.
____
e'O'On+=Hl--
___ . ------
--------------------------'---_.-----------
--.---
8000
C32880
JMP
BEGIN
;~O~lTOR
ENTRY
e003
C3S3S1
JMP
CI
;CONSOLE
INPUT
---------0
C.
Gc.--
C.::
II
D
l1------------
....
· l M P
____
RL--
____
;
F;
E A G
1::
R
..
IN
P U T
______________________________________
_
6CC9
C3C681
JMP
CO
;CONSCLE
OUTPUT
E00C
C:Fl~l
JMP
PC
;~UNCr
CUTPUT
ECCF
CJF9fl
JMP
LO
.LIST
OUTPUT
80
12..--C3
C
1.82-
.JMP.
CSTS
.-CU~
~OL2-S
TATUS
f.Cl~
C~EFe2
Jv,p
rnCHK
;10
ASSIGN
CHECK
BOlE
CJS3e2JMP
IOSET
;10
ASSIGN
SET
BOlt
C3S~t2
JMP
MEMCK
;~E~CF<Y
SIZE
CHECK
_________
.£..C
1
E-..--C
3..1
C.e:3
_Jr.tl
P_
F
x.ER;
E.XE.h.t.'SS.lON~ELTJ...EJ:R'__
________________________________
_
E'J21
C::;SA2J
8024
C372e3
8027
C3CA81
JMP
TVPMG
;NESSAGE
TYPER
JMP
evrOT
;SYTE
TYPER
JMP
WRCOT
;WC~C
TYPER
____
--BC2.A._-'C~q
RF
T ;
t=
N J 6
y-ED.R.JID--.SER..~
__________________________
.
______
c 0 .:;.2""8'---
__
.
8028
2140CO
tl02E
INITIALIZE
UART
.
•
EEGIN:
EGO:
LXl
H,40H
802c
2D
CCR L
;CLEAR
~ONITOR
RftM
AREA
__
-cE
C
2F
__
7_4.
tv.DV
M.
..
j .
.1.
___________________________________________________
_
B030
C22£80
JNZ
UGO
8032
3(C3
MVI
M,QC3H
;SET
UP
MDNITOR
RE~NTRY
803!:
2.3
INX
H ;E!Uf.l1=
ADDRESS
___________
-'-'8.C
3 6
....
c2.....,u'--
___________
-'VV I
..
t.LJ:lEG
IN
Al\.D_QEEJ-:_;El'..I.£tLLfuoLA,""-DuD.LRo.·
....
E_S""S""-
_________________________
_
e03€
23
INX H
;EUMP
ACCRESS
AGAIN
8CJ;
3680
MVI
~,BEGIN
SHR e
;ENTER
HIG~
ADDRESS
803E
2E38
MVI
L,3bH
;SET
uP
RESTART
ENTRY
(RST
7)
______
8020
__
-2£
0
MVl
____
M_t..ll.UH'-
________
'-
________
~-.--------------------------
803F
23
INX H
8040
3c45
MVI
M.RSTRT
AI\D
OFFH
e
042
23
II\X
H
.-
____
80.4
7
76
E.L
..M.\Ll
M
..
HS_LRI_<::;o..br:::J:lR,---"Bo.....
__
_
E
04
5 3 E ~ 6
t-IV
I A • P
t\
R
MD
;
SET
PAR
ALL E L
I/
0
MODE
8047
D3CF
OUT
PARcr
8049
3E8E
~VI
A,UARTI
;UART
MCDE
INSTRUCTION
--------------
----------------------------
._---_
..
_-----
Page 40

8080
~AC~O
~S5EMBLE~,
VEP
2.2
MCLM-80BO
MC~ITC~
1.1
LRRORS
= 0
PAGE
6
-----------------
.-
.---
.....
-
-_.
__
...
_-------------------------
e04H
D300
OUT URTCT ;
ISSUE
MODE:::
8
'J
-4
D
:3
l:
!: 5
MYI
A,UARTR
;UA~T
HESET
INST~U(.TIUN
804F
D30£1
OUT URTCT
;ISSUF
I~TERNAL
& ERRUR
RESET
------80
=
1----3FFA------
MV
I----IA-\-.URT-MO---; S E·T
..
··
FIN
AI..· -MC]
C E
... ----..
--------------
.---
..
---.--
;AUCV~
~REDEFINEC
PR~SENTLY
60!:3
0308
CUT
URTCT
;IS~LE
\.,ART
MODE'
INSH<_UCTION
;~E~T
MLST
BE
COMMAND
INSTR
----~ec-€
5---CBO
0---
---I
N---"-'U
RT-C T ;
-I--S-n
S E R-I Al. --!.,I.()-.HAuDO
T-1-----------------------
EO~7
E('130
ANI
DSR
;CSR=C
IS
BAUOOT
(+5VULTS)
EC59
C2E4eo
JNZ
8G2
;~O,
~GDE
IS
ASCII
aC5C
3E55
MVI
A.UARTR
;r:<ESE:T
LSART
----60SE---D3DB
-------CW-T
U~C-T--.-----.-.---
8()€O
31:::€.:::s
MVI
A.URTBM
;5ET
MODE
FCR 5 ElT.
1
1/2
EOt.;;
0300
OUT
URTeT
;
STCP.
f'.;O
PARITY.
X64
CLK
ECt4
eG2:
cCE
..
4--..JE27-----
______
~VI
____
_A
....
TXRXc-:ENAELE-.-IX_AND-..RX.
_______
_
ECf.6
D308
CUT
URTCT
Ecee
312COO
LXI
SP.MONST;SET
STACK
PCINTER
SCto
3ACOF8
LDA
DS~CK
;15
CISPLAY
ATTAC~ED?
8 C
cE---I=-E-A5
CR
I
O-A
5H
;.T
HI~-I-S----I-HE-I-c.-SL-.8Y_T_cc:._....
____________________
_
eC70
(CCAFe
CZ
SDPIO
;l..SE
THE
DISPLAY
~OUTINE
,
--------;.-..,~F--___.I_b<__I_U_Ai_l_ZA_T_LOA.__SE_CJJ£N.ct;;E
_______________________
------
MONITOR
~AIN
LOOP
-----+.---------_
..
-
SC73
~AIN:
CC73
312COO
LXI
SP.MONST;~ESET
MONITOR
STACK
POINTER
EC76
21E6E3
LXI
H.PMT~G
;~RCNPT
wITH
PERIOD
..
eOl
..
S
CC<;A83
CAL-l..L
__
---'-I_.¥PM~G--
eC7C
CDE581
CALL
ECHO
;GET
INPUT
Ec1F
OfC2
MVI
B,2'
;DEFAULT
PARA~ETER
COUNT
eCEI
FE4C
CPI
'L'
;LOAC
-----e;€
C
E.3..--CACE614-
---------..lZ
____
II-CAuD
___
•
YES--
ECtt
FE4A
CPI
'J'
;~TART
EXECUTION
(JUMP)?
seee
CAE880
JZ
GO
;YLS
seE8
FE49
CPI
'I'
.IN!::ERT?
____
8.G.E,['
C A
EDo..uO
________
.J..
1.LZ
__
-----1J'>.LSR.:_'['-
_
__4;--IVES--------
________________
-'-
_______
_
sese
FE52
CPI
'R'
;hETURN
TO
PROGRAM?
eCS2
CAEFEI
JZ
RLTRN
;vES
eC~5
FE44
CPI
'D'
;CISPLAY/DUMP?
___
~C.Sl.---L2
73
e a _IN
..... Z __
-----'M''-Al.L'>N<--
__
;.J\U
__
£AIL.CllM.M.AN-,-C...,-
.L-..LI-",R'-lY~A""-",G""ALIL.N,,,-
_______________
_
COMM~ND
SERVICE
ROUTI~ES
.
~~
..
------------------.--?------------~--,-.-.-------
..
,-.------------.-------~---.--.---
..
-.------------------~_.,-----_.,_
..
_--_.
__
._--.,--._-
DISFLAY
(DUMP)
MEMU~Y
TO
SEnIAL
OUTPUT
THE
FeRMAT
UF
THIS
DUMP
IS
COMPATIBLE
Page 41

8080
NAC~C
ASSEMOLER.
VER
2.2
MCcN-8080
MO~ITOR
1.1
Er.RORS
= 0
PAGE
7
WITH
ThE
LOAD
(...,EX)
RCliTlf\E
ECS.A
CD1C83
CAl.L
E:XPf.{
;(['T
2
~ARAMETERS
-------------l:
C
<,;
C----
0
1--
------------------
PUp---o
----------;
~
U T
--
< E
f\
C > - 1 N
DL
...
_.
-------.---.-----------------
8C<;E
E1
POP
h
;FUT
<START>
IN
I-L
eCSF
DISPl:
;LI~E
C~TPUT
LOOP
START
EC<,;F
70
MOV
A.L
;LC~eYTE
OF CURRENT
POINTER
---------<80
,.\.I.f----C-6-1-.vO---------AD
I
16·----·.;
EN
C-Tt:
S-T--AUu
R
E-S-S---.----------------------
ECA2
47
MOV
B.A
;GOES
INTO
(ebl(
)
SO~3
7C
MOV
A,H
;...,IG"" GYTE OF
CURRENT
POINTER
ECA4
CECO
ACI
0
;AD~
CARHY OF
PPEVIGUS
ADI
16
----------80A6-,----4F
r40v---.,-C-t-A;
(CO
)=(HL-H--lo----.-----------------------
seA7
CA7380
JC
MAIN
;EXIT
IF
WRAP
AROUND
eCAA
78MOV
A.E
;LOw
EYTE
OF
<ENC)
BOA£:
SC
SUO B
;E-(2+1(;)
------oCAC
47---_
MnV_~i.A
..;SAvE--DISPL,ACEMENT"""nlo6~
__________________
_
BOAD
7A
MOV
A,D
;t-IGt-
GYTE
OF
(ENC>
BOAt:
SS
SCB C
;D-C-CY
OF
[-(L+16)
BOAF
02E980
JNC
-
DISP5
;SKI~
IF
)15
LE~T
C
CD2-2S
MOV_-------A.B;
LPC
AT.£-.nE.CCR~EM;.I.H'-------..,..-------------
Boe3
C610
ADI
IOH
;{L-16)+16
eCE5
47
MOV
B,A
;B=DISPLACEMENT
IF
<16
BeEt
C~Bseo
~MP
DISP2
;SKIF
SINCE
(10
.
-
_____
1:
C t:
<;---
01
5 P 5 :
6Cd<;
0~10
MVI
S.lOH
;CO
16
BYTES
PER
IT~RATE
Baeo
DISP2:
80F.E
E5
PUS..., h
;~AvE
ADDRESS
FOR
MSG
-------ce
C
r:.
C--2_1B
4...e.3-
_____
-'-1
X
L_--tl..-CR
......
C
...... O .........
_.:LR.
L£ • __
'-_'-
_____
-=-
____________ ~ ________
_
aO[F
COED82
CALL
TYP~P
;Tyr-E
IT
cCC2
El
~OP
~
;qET~leVE
ADDRESS
ECC3
05
PUSH
D
;SAvE
<END>
---
___
BOC4
16.C'O
_____
,---_--'MV.L_
["I,
a ; Z.EfiC
__
SU~_1..CH£..CK.-aY.L-LT_'_E
_____________________
_
eecr.
78
MOV
A.S
;GET
LENGTt-
eOC7
CCAOE2
CALL
BYTDP
;~RI~T
THE
LENGTH
aCCA
CCE482
CALL
WRDOP
;lYPE
bEGIN
ADDRESS
8JCr:
AF.
Xt'.A A :_fl.AKL._I.'f.FE__.ZER
......
O'--
_______________________
_
aGCE
CDA082
CALL
SYTOP
;CUTFUT
TYPE
aOOl
7e
MUV
A.O
;TEST
FOR
FINISHED
1 +
TEST
;ZERC
LENGTh
IS
END
---'-
____
...,.c.EO
C£--1_.A7_
_---'
...
_____
~----'A~
;
~E_J_ELJ..
Gs....J.--C..'I'.E-....o'---=
______________________
_
e003
CA7380
JZ
MAIN
;~ET
NeXT
COMMAND
IF
DONE
ECDc
CISP3:
eo
c c 7 E
MOV
A.
M
;lYPE
RECOqCS
___
~-eCC_l
CC.AQB.2
CALL
BYIDP
;ERINL
___
IT
____________________________
_
BOCA
2~
INX
H
;eUNF
FeINTER
cCCB
O~
DCR S
;EU~P
PARM COUNTER
Ecce
C2C680JNZ
DISP3
--
__
8 CDF-
__ A F-
________
---XR"--~
___
_O;..EO
K
1J_...5
L.MC
HECK,
n
eOEC
<;2
SUB
D
;SUMCHECK = -D
8CE1
CCAO€2
CALL
EYTOP
;CUTFuT
SUMCHECK
80E4
01
POP
0
;~ElRrEVE
<END>
SAVED
._--------------
Page 42

eOEe
~AC~O
~SSEMBLER~
VER
2.2
MCE.~-8C80
MCNITCR
1.1
E~RORS
= 0 PAGE 8
BCE!:
C39FBO
Jt-1P
D I
SP
1
;00
ANUThER
RECORD
•
;---{;o-
-RDUTI
"'E
---
--------------------
EXITS
VIA
JUMP
T0
THE
USE~S
GOUTINE
AFTE~
RESTGRr~G
THE
~SERS
REGISTERS
-----(BCE-c:--.---
----
-----
GO-:-------------------------------------------------'----
80E8
C02683
8CE
E
Fe
ECte
E<;
-9-----
CALL
EI
_
PCHL
WRDIN
INSERT
DATA
COMMAND
;GET
JU~F·
AL)L)~ESS
;ENA2LE
EXIT
COMMAND
:JUI'JI='
THERE
ALLOWS HEX
~ATA
TO
BE
SECLENTIALLY
ENTER~D
;--_ -Tf-!
E--I
NSCK.L--f=
UNCTION--lS
__
I.EJ<M r
l\ATED
__
aY_A._CHAnR
___
_
AET~EE.N
G
AND
Z •
•
Eete
INSRT:
----.---vCED---CC26-8J3___
-_-----'C-'ALL....---...wRCIN-_;.GE_T
_INSER.T---ADDR._c;E~S,.;;S:>__
____________________
_
SCFe
INSTl:
eCFO
E~
PUS~
~
;SAVf
ADDRESS
ECFl
21~D83
LXI
H.CRMG
;TYPE
CR/LF
-----ECF..4.
(CA2.cac,,;3)-.-..----_
_C/,LL
LYR
1
----------------------
ECF7
El
POP
~
;~ETRrEVE
ACCRESS
8CFE
CDCAul
CALL
WRDOT
;TYFf.
ADDRESS
eeFe
7E
MOV
A.M
;(ET
P~ESCNT
CELL
VALUE
·--_--<€CE
C--U7u-8..;3>---
_____
-CALL-E-T_C:U
'-;.1 y_I;
£_-1-L
8CFF
CDF182
CALL
E1T
;CHECK
IF
C~ANGE
IS
DESIR~D
8102
FE2C
CPI
'.'
;LSE.
T8
OPEN
THE
Ct:.LL
8104
C2C881
JNZ
INST2
;SKIF
BYTE
READ
IF
NOT
•
-~-
B 1
C'_7-C04E83
C
Al.L---B-\('T-lAl---';CF.-T--NE-'\\--VAL
U E-(-E.X-I-L-F-RO-M-.J-iE..RLJ-)
----------------
Bl0A
77
MOV
MfA
;STCRE
IT
EIOG
lNST2:
8108
2.3
INX
H
________
~JMP-_-_II._IN.>I_.S~T
..
l
;~OVE
TC
NEXT
LDCATIUN
..;..5J-A&.T-~'\j£X-T--L_LN£_---------------------
LO'AD
/-lEX
RCUTINE.
THIS
RUUTlf'JE
IS
COMPATIBLE
wITH
6.QT.H-THL_I:.AI.A.-.G.£bIEHALE.C---i:.D~-IH£_-D _ _CDJlLt._1AND_A~S'_·_'I6i"'_'l;;.E~I
,..41
_______________
_
AS
T~E
HEX
FILES
G~NE~ATED
BY
THE
ASSEMdLERS
AND
COMP
IL
Ek~
•
,
____
~(HCF_._____
LD.nAu-D.w:
_____
_
810F
05
OCR
file
CDIC83
CALL
8113
LDO:
8
EXPR
;GET
BIAS
VALUE
;USE
NORMAL
PARA~
... ~ 11
3---CCAD81
____
-
-----CAI-I
~1
__
_R_L
_____
.;-SEAf<.O:L.EQR..-~-t-----------------
Bllt
Df3A
SUI
f : •
81lE
C21381
JNZ
Loe
S11E
57
MUV
etA
;ZERO
SUMCHECK
Page 43

,
_.---,-
-
..
-.~-.,
~ ~
---_.-_._----
d080
~_c~a
AS5~M6LER.
VER
2.2
MCEM-S080
MC~!TC~
1.1
ERHORS
= 0
PAGE
9
------------_._-----.
-----------
Blle
CDC6c2
CALL
8YTIR
;GET
RECORD
LENGTr.
~ll~
C~7380
Jl
MAIN
;EXIT
IF
ZERO
LE~GTH
8122
Cl
POP
P
;GET
BIAS
-...
0-----
812
J.
--
---F
e -----
--.-.--
-----
PUS
H------
PS
w----.
;
~
A
"E-R
e:
c
m~
C-L
E
f\.
G T H
----------------
-----
d124
C00682
CALL WPOIR
;GET
LOAD
ADDRESS
8127
O~
CAD e
:~DC
ElAS
E12E
Fl
POP
PSW
;~ETF;rEVE
hECO~O
LENGTH
---.--.
-8 1 2
9--C
5 P U
5;'
fl-------.-;
S A V
F.
13
I A
S-------
E12A
47
MOV
G.A
;FUT
LENGTh
IN
B
81~E
CD(682
CALL
SYTIR
JGET
~ECORD
TYPE
E12E
LDl:
-.-----
a
12
E--CDC6EZ-
CALL---D-Y-T-I-R'---~;
GE-1
--8
¥-1.t_--
8131
77
MOV
M.A
;STO~E
IT
IN
MEMORY
8132
23
INX H
;VCVE
TC NEXT
ADO~~SS
8133
05
OCR
B
;CECREMENT
~ECGPC
LENGTH
8 1-3
4--C2.
2
t.
81-------
-.
____
...J
N 1 L D
1--
;
Lee
P
n.
U
I\:
TI
L-
HE
CORD--LlUNE-...-
___________________
_
8137
COC6e2
(ALL
EYTIR
;GET
SU~CHtCK
EYTE
813ft
CA13El
JZ
LuJ
;5U~CHECK
W~S
ZE~O
BIJC
CE~8
MVI
C.'X'
;TYFE E FOR
SUMCHECK
ERROR
--------'(H~E_CDCOal_
CALL---C-O---------------------------'---------------
3142
C313€1
JMP
LDO
•
STACK
FOR~ATS
FOR
RESTA~TS:
USER
STACK
PCt-
PI-iL
H
L
_______________________________
; __
--A~
_____________________________________________________
_____________________
_
PS'.\
MONITOR
STACK
B ( ~ 7 )
C
~.~~)--------------------------------------------------------
__________________
__
D
(35)
E
(34)
; A
(3.3)
;--P.s.~
_____
C22
~)
___________
_
------------------------------_._--_._--
---
H
(:;1)
L
(::0
)
;
PCH
(2F)
_____
--:"-
____________
;
__
ECL-
__
12EJ,
_________________________________________________
_
SPh
(20)
SPL
(2C)
MONITOP
STACK
STARTS
AT
2R
---------0------------_._----------
•
;
EXIT
CCM~AND
PROCESSOf~.
~E
GOT HERE
BY
DOING
A
;
RST 7 (INrT
~EQUENCE
W~ITES
ThIS
ADDRESS
INTO
RAM
______
-'--
________
:_-"_I......3.E
H_L_S_G..l?C_
LS.._ALllE.A£.Y_GJ~_U
S
ER_SIA
C I<..__.
__
SA_\,I.E_ .
.H~
_____________________
_
AND
PSW
UN
USER
STACK
TC
~AK~
ROC~
TG
~OR~.
SAVE
REMAINING
RE~ISTERS
I~
~AM
I~
SAVE AREA
AN~
Th~N
;
TRANSFER
THOSE
STILL
C~
USER
STACK TO
SAVE
AREA.
Page 44

80EO
~AC~O
ASSEMBLER.
VEh
2
'}
.c:
MCE~-e080
MO~ITCR
1.1
ERRORS
= 0
PAGE
10
-----<>---
--->,,---_
...
--
--------------.---.-------.--->.-~----.--
..
------
..
; A TOTAL
OF
6
~YTES
OF
USFk
STACK ARE
~EEUED.
USER
;
SlACK
~UST
NOT
BE
THE
SAME
AS
ThE
MO~ITOR
STACK
; ONCE
FULL
RECCVERY
HAS
aEE~
ACOMPLISHLC.
WRITE
THE
>-.
,------.-~------;-
ADDRES~ThAT-G-CI-US-HEKE-C~-
THE-CONSOLE.
E
14
!:
RSTRT:
8145
E~
PUS~
H
;SAVE
HL
ON
USER
STACK
-----e
14
6--F
5,-----------'j:;US~
P-S
....
\II---.;~AV£-P--S
w~------~-
_____
~
_______________
_
E147
210000
LXl
H.O
;GET
SP
VALUE
IN
~L
814A
3~
DAD
SP
B14E
31~800
LXI
SP.RGSAV;SET
LP
SP
FOR
SAVE
AREA
----8
14E--C
5
PUSH
-9
; S
A.vE---Sw..C~------------------------------
e14F
05
PLJSr. 0
;SAIJE
DE
e15~
5E
MOV
E.M
;MOVE
A.PS~
TO
SAVE
AREA
flSl
23
INX H
-----cl!;
2---5
6-
MOV---~...M,----------
fl~3
23
INX H
el~4
05
FUSH
0
;THEV
AkE
IN
DE
~15~
5t
MUV
E.M
;~OV
HL
TO
SAVE
AREA
----->
--8
1
~.
C
.--.
2 3 1 N X-
H--------
El!:7
56
MUV
D.M
ElSE
23
INX H
El~S
05
PUS~
0
;THEY
ARE
IN
DE
--
__
~c15A
5E
MOV
E.
M
;Jv-DV-PC-TO-SA-"-E......AR£A
_______________________
_
815B
23
INX H
E15C
5E
MOV
D.M
E150
23
INX
H
----_E15
E 05...
_______
PU
Sb-...
__
D.
___
:_THE Y._ARE...
LN
__
DE_.
___
El!:F
E5
PUSr
H
elEO
218883
LXI
H,RSMG
8163
CCSA83
CALL
TYPMG
;SAVE
SP
IN
SAVE
AREA
;TY~E
EXIT
IDENTIFIER
t:·l-t~2-A?E
C0
--
---L-HLO--------FCSA-\l---;uGE"~T-.THE-uCALLING._AO.cRc.s.;;:S>__----------
___________
_
Bles
COCA81
CALL
WROOT
:.TYPE
IT
C~
CO~SCLE
elfC
C37380
JM~
MAIN
;GO
TO
~AtN
LOOP
---;-
-R
E-TURN-P-R
O-Cl;;S-SOR_--RECC-VEJ,--AL-L
...:.Rc..G.!--s'I£.l=<.S-_E
RO-~H1;;E~--
_____________
_
;
SAVE
AREA
AND
THEN RETURN
TO
~~ERE
EVER
THL
PC
SAV
;
INDICATES.
O~E
~AnAMETER
IS
G~THEREC.
AN9
IF
IT
;
IS
NON-ZERO.
ITS
VALUE
IS
SUBSTITuTED
FOR
THE
PC
___
:~
E f
EflH
E
RF
TUfUdNG.
.....
___
_
•
elEF
RETRN:
BltF
C02683
CALL
~RoIN
;GET
ONE
PARAMETER
IN
HL
-----£112
___
7C
MD.'''
___
....
A...J:i
___
-<;O-lt:
C.T I E
IT
1 S 7 FRO
8173
85
eRA
L
c174
CA7Ae1
JZ
RETRI
E177
222EOO
SHLC
PCSAV
-----..el.7
A
__ . ______
.
-------1t.£IR.l~
__
E17A
El
POP
El7S
01
POP
817C
(1
POP
H
o
B
;~L
=
O.
DONT
WRITE
P~
SAVE
;~TCRE
~EW
DESTI~ATION
VALUE
;eET
STACK
POINTER
;GET
PC
; (E:: T
HL
Page 45

80ee
~ACr:;C
.ASSEMBLER.
VER
2.2
MCEtJ-8000
.'-'ICNITOR
1.1
ERRORS = 0 PAGE
11
C17C
F~
SPHL
;RESTCRE
STACK
POINTER
El7E
D5 PUSH D
;FUT
PC
eN
STACK
E17F
C5
PUS~
8
;PUl
HL
ON
STACK
(TEMP)
-.-------.
e
180---·21
::200-----·-·-·
- ........
LX I ·----H
9
PSSAV-;
rJC"l
\If:··
A.
PSW;--F
hUM
5T
ACK--·--·~··
..
-·---
-------._----------.
8193
5E
MUV
E.M
;~SE
DE
AS
EUFFER
PAIR
9184
23
INX H
clee
56
MOV
D,M
-----e
166--2
3
IN
X
HI-------------
8187
05
PUSH
D
;SA~E
FOR A
WHILE
ON
SACK
BIbB
5E
tJov
E.M
;RECCVER
DE
SIES
23
INX H
----81dA---56
M(JV---D·...M------·-------,-----~--------~-----------
E 1 E B 2 ::
Ir-J
X . H
EleC4E
MUV
C,M
;RECCVER
BC
6120
23
INX H
-----t:H8E----4-6
----MOV---C
...
M----·
----_._---------------------------------
81BF
Fl
POP
PSw
;RECCVER
A.PSW
8190
El
POP H ;f-iECCVER
HL
SISl
Fe
EI
;ENAELE
INTERRUPTS
(RST
7)
-----S1-92
CC;
RET
...;~E..cCVG.R-
..
_P'_r--------------------------
CCNSCLE
I~PUT
FOUTINE.
T~E
DEVICe
INDICATED
~Y
THE BOTTOM
T~O
OITS
OF
IUBYT
IS
CALLED
AND
EXPECTED
----+--+T--I.C
....
J~£T.u.RN_A~A.RACI£R
• T t-:.E--C
~_AR.A
C-1"EJL.J...ET
~.s..........l.N_---------------
•
<.1l
<;
::
C I :
8l~3
3AC300
LDA
10DYT
;
GE
1
10
ASSIGNME'NT
11J.RCI:i :
------'S
1
se---------J....
----_._-
51St
E6'J3
ANI
3
;lE!:l
EOTTOM
E.l
ITS
819S
CA::882
JZ
CHI
;ZEf1C
IS
SE
RIAL
1 NPUT
elSB
3D
DCR
A
-------~a~yc
C~~F~6~------------~
12-
k!3I~
";"CNE
IS
KEY80Af:<D
IUfWI
51C;F
~D OCR A
8lAe
C240CO
JNZ
usnIN
;I\OT
TWC
IS
THREE
(PARALLLL)
•
---
______________
.....
; ....Q.A.R.ALl..-EL--...LNf>llT.-...Ji.CUT4..NE...... 7
F'I
T--AS.CU
__
LS
..
_EXQ.£.CJ:
c.E..l..CIL-
__________________
_
;
ON
THE B PORT OF THE
PPI.
TRUE DATA
IS
EXP~CTEU.
•
81A~
PARIN:
-----..,..'8~·
lA~-DBCt:;.E____
_
___
lbL
_____
E..SJ..A....tT
__
i.G.L:L-lliE-.E.OkL...SLAIulJ...:;S'---
_______________
----------------
81A~
EtC2
ANI
PIRDY
;TEST
INPUT
RLADY
8IT
SlA7
C~.A381
JZ
PARI~
;L(JCP
TIL
IT
IS
READY
SlAA
DPOD
IN
PINPT
;REAC
TbE
C~ARACTER
..alAe
C
s.............--__
----.RCTL-
________________________
.
READER
IN~UT.
BITS
2
A~D
3 OF
I08YT
ARE USED TO
DIRECT
CONTROL
TC
THE
PROPER
DEVICE.
AN
ASCII
CHAR
IS
RETURNED
IN
ThE A REGISTER
•
...
_-'-----------------------..,---
8lAe
RI:
81AlJ
3AC300
8lED
IF
LDA
KAR
IOEYT
;GLT
10
ASSIGNMENT
;~OVE
T~E
BITS
IN
QUESTION
Page 46

80SC
~AC~O
ASSEMBLE~,
VER
2.2
~CE~-808a
MC~ITC~
1.1
ERRORS = 0
PAGE
12
81
e 1
81132
IF
C3S6el
·
•
---------_._----------
-----
------------------------
18RCH
; TC THE BOTTOM
T~O
BITS
.;
EI< A
!'>.CH
TO
FROF
ER
ROUT 1
NE
-.----
...
--.--.------
----;-
--CQt;JSOL E
GCHG--f'GUTI·NE.-G-E-T--CHARAC-r
ER--A
!'>.D-··-=i
HEN-{.F-:-----------------
; THE
MODE
IS
ASCII.
ECHC
IT.
•
81E5
ECrO:
-----..<81B·!?--GI;.Q8·1---'------,(ALb---'=C,..;ll----..y;.<;E-T-CH-AR-·-~RO.M--..c.QNSQbb_----------~----------
81ee
4F
MOV
CtA
;~CVE
IT
INTO
C FOR OUTPUT
81e~
F5
PUSh
PSW
;CUTFUT
MIGrT
CESTROY
IT
SlLA
3AODOOLDA
ECHOM
;SHCLLD
~E
ECHO?
------------.-1-
..
------+
:fEST
.....;.ZF
[;C--1
S-YE:...So------------------------------
8lec
1
A7
+
ANA
A
;SET
FLAGS,
CY=O
8lEE
(2(881
JNZ
ECHOl
;CC~'T
ECHO ANYTHING
81Cl
3AC4CG
LDA
IFLAG
;DO~'T
ECHO
IF
INCIRECT
MODE
---1-----
....
------1
E
51----'-------
81(4
1
A7
+
ANA
A
;SET
FLAGS.
cY=o
81e5
(CC681
CZ
CO
;ECHC
IT
IF
NOT
I~DIRcCT
81Ce
ECHOl:
----81
(·E-·-F-I----------lFOP-----tP-Sww---~j
RF--:CCV
E~-+HE.-C.HAF
Ac.r..E~R--------------------
elC~
C<.:i
RET
...
ORC
CUT PUT RTN
---------~.-....JQbJ.\"IUl_J....'Tn.u...:r-S
4
AS-C--W---C-OO-U)....-HE;-X--tll-C
I·..T..S
___ ----------------------------
,
elC,A~RCOT:
;CE(CCES
AND
PRINTS
HEX
SlCA
C5
PUSH
B
:5AVE
BC
Rl.GISTLRS
81(6--7C---
-
_______
MO\L
__
.....
A_.H
___
-..
•.
l.-6
__
B.l.L_li_l..N_U-lL_L
€lCC
CD78B3
CALL
6TCTI
;SPIT
OUT
HIGH
BYTE
81CF
7C
MOV
A.L
;GET
LO~
BYTE
8100
C07883
(ALL
STOTI
;SPIT
OUT
LOW
BYTE
-----B-l-t:;;
C 1
POP
6 ;
~.E-.I.N
E.V£
8 C R
EG..LST..£R~S>-----------------------
SPACE'OUTPUT
PTN
•
-----8.l..C4
8104
___
........;;<:pA..CO.=-
_____________
_
OE20
MV
I
C,
•
,
; CONSOLE
UUTPUT
ROUTINE.
THE
10BYTE
IS
EXAMINED
-----
___
-------
__
...
_TJ).._D.E..I.ERM..L.'\l.E
T H
I::
P ROP.....ER-IO"' . .lJ.EV-I CE • T
HE_V...A>l...!
.....
!)..JI
Lr.;..·
-.!..Ou
E
=--
______________
_
; THE C
REGrSTE~
IS
TH~N
CUTFUT
VIA
THAT
CEVICE
•
•
clCE
CO:
-
___
-'-
..
.8
1 D
6.
__
..3AO.3.00-
__
.......
1 D
A'--
__
.........JI
.......
O..J.J8[;;.Y.L·..J-T_~+
• ....,GEL_UL..AS..5..LGNJ.ol.Eb1.L.
__________________
.
81C9
C8RCH:
tllC<;
EE03
ANI 3
;eRA~CH
eASED
ON
BOTTOM
JZ
CHO
;ZE~C
IS
SERIAL
10
81ce
CI\4882
----··--t
lCc--3C----
--,-,-0
CR--A-
_____
..
______ . _________ . _____
.. _ --'------
____
_
.
fleF
CI\C4f8
JZ
DSPOT
;CNE
IS
CRT
DISPLAY
SlE2
3D
OCR
A
8lE:'::
(24300
~NZ
USROT
;~OT
TwC
IS
THREE
(PARALLeL)
Page 47

8080
~AC~O
~SSEMBLERt
VER
2.2
MCEM-S080
MC~ITOR
1.1
ERRORS
= a
PAGE
13
PARALLEL
CUTPL;T ROlJT I r-.E. ALPHA CHARACTERS
ARE:.
OUTPUT ANC
C~~TPOL
CHARACTERS
A~ENT.
A LINE:.
FEED
IS
,-
.-.~
.......
,-.---~
...
----
.... ~ ..
-.-' _ ...
_----------->
liSFD
TO
C;ETF.l~
N r
/'.;E
THE E
I\DCF-·THF
LINE
ANC-DR I
VE:.S·-A-------
RUN
UUTPUT.
THIS
INTERFACE
IS
INTEND~D
TO
DRIVE
EASIC
LINE:.
PRII\TERS.
-----01
E
t-----·-----PARO-T-
;....:
---.---.
alEe
D~OE
IN
PSTAT
;GET
THE
PORT
STATUS
elEE
EcEO ANI PCRCY
;TEST
O~TPUT
REACY
BIT
81~~
CAE6Sl
~z
PAROT
;LOCP
TIL
IT
IS
REAGY
-.--
-.-------B
1
F.
G---7
C;
- .-
---
---
-MG
V
·----A.
C
___
;...1
H
t:-.-
CHA,,<-AC-lER-J-S-l-N--'-C------------------
81EE
D20C
CUT
FOTPT
;CUTFUT
THE DATA
131FO
C9
RET
•
-----~--.;--p
U I\;
Ck-DUTP
UT-RUJ-T-l-t-:E.--E.I.T-S--4--AN
c-
5-DF
__ T HE-LOEiYJ----------------
------c-lF--t,~----
8lF
1
3A0300
SIF4
07
81F5
07
-------cSl
F--
....
f--
... C.:u:: C 8 1
;
DETERMINE
THL PUNCH
DEVICE.
A
CHARACTER1S
EXPCE:.TED
;
IN
T~E
C
REGISTER
•
p~~-------------------
LDA
I08YT
;GET
10
ASSIGNMENT
PLC
;MOVE
8ITS
4 AI\D 5 TO 6
AND
7
RLC
;50
THAT THEY
CAN
uE
MOVED
JMR
_----'LL.-Cl.l
___
~J-O'--T.H~
CONSO.L..E-PCSJLl.1J.b1--------'-------------
.;
LIST
OUTPUT
RCUTINE.
eIT~
6
AND
7 OF
TrE
l08YT
DETERMINE
THE
LIST
DEVICE.
8IES
La:
81F~
3AC3CO
LOA
I08YT
;GET
THE
10
ASSIGNMENT
81FC
La!:
--------€
1
F-C.--'O'7---
______ ~ ___
.RLC
~ND
\J
E
___
.8US-.....L.A..ND
_"Z-TD-I.......,H""E_·
_________________
_
DIF
D
07
RL
C
;CO~SOLE
POSITION
SlFE
C3C981
JMP
08~CH
;eRA~CH
TO
PRCPLR
~CUTINE
•
-
_______
---...;.-'-CO
N
SCLE-.-Ll\.p..ur--S.I.AWS-RG.LI.
I.t--E~_.J.HE.......sELECT..J:;E
....
D'----------------------
; CONSOLE
DEVICE
IS
INTERCGATED
TO
D~TERMINE
IF
A
; CHARACTLR
IS
~AITING.
A ZERO
IS
RETURNED
IF
NO
; CHARACTER ANu A
-1
IF
THE~E
I S A
CHARACTER.
·
----.-----'--'----
e::Cl
CSTS:
8~Ol
3AC300
LDA
IOBYT
;~HAT
IS
CO~SOL~
C~VICE?
8204
E603
ANI 3 ;URAI\CH
ON
CONSOLE
ASSIGN
______
8.2 O.L-..c:.2...l1.u8.L;2
________
....
JN-'Z
___
.>...CS.lS.c.2
__
.....
:
LZ~EF.....LlS..-.S.t-:.E..LAG.-D.fL...LT'__
___________________
_
82CS
D~CB
IN URTCT
;G~T
USART
INPUT
STATUS
8201;';
CSTSl:
E2CE
E6C2
ANI RXRDY
----<,;;e.2
CJ:
__
-C
E
R.L
_________
...
;....I7~Fc...Jr&--LS
___
NQ_Cti.AR
__
._
~20E
3EFF
MVI
AtOFFH
;NO~
ZERO
IS
ChAR.
USE
-1
8210
CS KET
821
1
CSTS2:
Page 48

8:>Ee
MACRO
ASSEMBLER,
VER
2.2
rv,Ct:"'-BC80
MCI\ITCR
1.1
!=F.RORS = 0
PAGE
14
8';::
1 1
3D
LCR A
;ONE
IS
KEYBOARD
8,12
CAC7F8
JZ
KOSTS
e"l~
3D
DCR
A iTWC
ts
PARALLEL
82.l-G-C-Z4.6-0
....
0l-.----
---..JJN-Z----vi
tSRST----
PARALLtL
INPUT
STATUS
RCUTINE
--------~eh~~l~~~--~uHe~c~Er_------
8218
C3C882
--
...
Il'>JI--~------tP-S
TAT
JMP
CSTSl
; G
E-T-.T.HE--P-OR:r---S-l"-A.T-",U~S>---------------
____
-,-
_______________
_
;~SE
UART
TEST
AND
SET
; CI-'ARACTt.R
H~IJUT
ROUTINt=
<,SERlftL).
IF
TI-E
MODE
IS
---------9;-BAUOO·T.
__
T-H-E--l-l'.gu-L-CJ1A.R.Ac.:rE-F.-.rS-CO"'VEfJ..E~O'--TwOu-..$-Ao,..;S~C-.JI..4.-I
....
-----------------------
;
IF
Tt-L
CHARACTER
INPUT
IS A CASE
.shIFT
CHARACTER~
; THAT
SHIFT
IS
DONE
AND
ANCThER
CHARACTER
IS
WAITED
;
FOR.
---------,----_._-_._---'-------
8,lE
CHIl:
B.c
IE
E
~
PUS
I-
H
;SAVE
SCME
REGISTERS
e~lF
os
PUSt-
0
-----8"
2
0--2
1·8c~_3--------LX.I
H.EDT
A B
; G
E-T--
SET---r:U-CONV-ER:r
------------------
_____
-.-
______
_
8223
DECA
IN
URTDA
;GcT
THE 5
erT
CHAP
8,,2~
5F
MOV
E.A
;!:AV[
IT
IN
E
a~2f
3AC700
LOA
ECASI
;GET
THE
CASE
TO
MAKE
IT
6
-------8,22
<;--8'
(iRA
E
; A
Pf:E..N
D_THE-_
CASE:.-LO
__
illL2..OH~)_'
______________
........
.--
____
_
8~2A
SF
MOV
E,A
;GET
TOTAL
IN
DE
8228
leeo
~VI
0.0
8,,2C
l~
DAD 0
;CALCULATE
THE
TAELE
ADDRESS
822
E--_7
E
.MOV
A.-M'--
__
....
i.GEL
3
HE
_ASCLL_Ct-.AfL
_________________________
_
822F
01
POP
0
;R~CCVER
scrvE
P~(ISTERS
8230
El
POP
H
1 +
TEST
;~EGATIVE
INCICATES
THAT
IT
----~,
60:;~·1--l.-A7----*-
ANA
A ;.sE.L.FLAG.5....-.--CY.,;;:.O-
____
._.
8232
FO
RP
;CASE
C~AR.
IF
NCT,
RETURN
8Z3~
Ee20
ANI
2~H
;ALLCW
CNLY 0
OR
20H
AS
CASE
8,,3~
32C7CO
STA
UCASI
;FUT
C~SE
AwAY
FOR
LATER
------82:'.8-------.
CHL..!...---
---.--------.
E23E
DGeS
IN
URTCT
;GET
LiS~RT
STATUS
B23A
EfC2
ANI
RXROY
;IS
THERE
A
CHA~ACTER?
e23C
CA3882
~Z
CHI
;~O.
LOOP
UNTIL
T~~K~
IS
------Cs
23F--08..C
BIN
! IRT.C r
;.G
E~LJ
HE...-S T
ATUS......AGA~N_..1-MO
....
OLJ;E~)
___________________
_
e~41
EfED
ANI
DSR
;W~AJ
IS
THE
MOGE?
82
/
13
CfllE82
JZ
CHIl
;ZEF'C
IS
BALiDOT.
CONVI;:RT
824f
D8CA
IN
URTDA
;~OT
8ALiOOT.
SI~PLY
INPUT
____
-B2..llB.-----E67F
__ . ____
.AN.l-
____
7.E~_;J3UL..N.AK.F
I J
.LJ3.LlS_El.RS...lT
__________
~
________
_
824A
CS
RcT
;
SERIAL
CHARACTER
OUTPLT
R~UTINE.
ThE
WCDE
IS
.----_:
__
CHECKEILAND._
.. l ..
L_l.L
..
lS_EALDG...T
•.
_IHE
__
CHAR~
CTER
IN.
THL.
__________
_
C
REGlSTEH
[S
COI\V~RTED
Te
BAUCOT
PFIC~
TG
SENDING.
;
OTHEI<wISE.rT
IS
SI~f1LY
CUiPUT
TO
THE
USART.
IF
; A
CASe
CHftNGc
IS
INDICATEC.
THE
CASE
C~ARACTER
IS
Page 49

8180
~ACRO
~SSEM8LER.
VE~
2.2
MCEM-80aO
MC~ITCR
1.1
ERRORS
= 0
PAGE
15
;
TRANSMITTED
PRIOR
TO
ThE
ACTUAL CHARACTER
(BAUDOT
; M
CD
E 0
NL
Y ) •
.
•
-,,-.--
..
----
82
4 E
---
..
----.-------CHO
!-------
---.-----------
-
-.-----.
e24~
Oe~6
IN URTCT
;C~TEPMINE
MOCE
FIRST
8c4C
Ecce
ANI OSR
;O=EAUDOT
624F
CA~De2
JZ
CH02
;~A~COT
~ODE.
GO
CONVERT
IT
---.8.2
~
2------
..
----~C.._lH~O\.hl.l_:
________________
_
e2!2
DBCS
IN
URTCT
;TEST
FOR READY
A~D
OUTPUT
82~4
eeCl
ANI
TXR0Y
;THE
CHARACT~R
IN
ThE
C
R~G
c£!6
CA~2c2
JZ
CH01
------€2!<;--7S~-------____MOV
--.A~·...c
__
-------,---------'-C.-_------_------------------
e2~AC3CA
OUT URTDA
e 2.!: C C
C;
RET
S2!C
CHC2:
-------8
C.
5
c....--~_5piJ
S
H.--....jHr::-------t;.~
A V
E--SCM
E
__
R E Gl5..TERc..;S:>---
_____________________
_
e~5E
05
PUSH
D
e2!:F
21EE83
LXI
H,8DTAB
;SEARCH
THE:
TAbLE
FGR A MATCH
8262
1640
MVI
0.64
; THE
TABLE
IS
64
ChARS
LONG
____
8 2
~4---7
~--------_<MO
V A • C ;
CC N FAR
ES--
ARLC
Ol\..E
-IN-.A~
__________________
_
d2t!:
CH03
:
c2c5
BE
CMP
M
;COES
T~IS
CNE
M~TCH?
82ft
(A7082
Jl
CHC4
;VES.
EXIT
LOOP
ELc_S---2....;..,~
________
_.LINX
___
.JO:HI___
____
•
EU
.....
_P
__
ADCl-I.LS-S.
___
_
E2CA
1~
OCR
C
;tcC~E~SL
COUNT
82fE
C26582
JNZ
CH03
;CC~lINUE
TC
LCOP
TILL
ZE~O
826E
1640
MVI
D,64
;IF
~o
MATCH.
PRET~~D
8LA~K
a;.
7
c-
__
...
_____
....
C=H
Q4
:
£:270
3EL~O
MVI
A.64
;.lICTLAL VALUE
IS
f.4-COUNT
8272
92
SUB D
;CALCULATE
ftCTUAL VALUE
8273
57
MOV
Q.A
;SAVE ~ CUPY
IN
D FOR
LATER
827A------2-1--CE-O-o'-
____
--l...LX1.
___
nH
.•
BCASO;.IES
__
:LAI\.D-SE-I-.CASE-lF_.Af>.!=:'RLE-'-C.
_______________
_
~277
£620
ANI
20H
;tTh
BIT
IS
CASE
(O=LETTERS)
827S
BE
CMP
M
;CC~FARE
TO
PREVIOUS
CASE
€27A
CAE982
JZ
CH06
;~ATCH.
NO
~cED
TO
seND
CAS~
_______
62.7
C-......-7.:1 MO'I/ M •
.A'---
__
;.h
U_~N.AT._CH
.•
__
._S
E...I_CASLB...l..GH.I
___________________
_
827E
0EIF
MVI
C.LTRS
;SENe
CASE
(O=LETTcRS)
1 +
TEST
;CASE 0 OR
201-!1
828C
1 A7 +
ANA.lI
;SET
FLAGS.
CY=O
__ . ____
E2.E.l.~·
_-'C.-IM:._6.a&.2
____
.,---_~JL..7
___
_!Cl:LC'_'')
__
~;LLT_I£ES
__
CASL_.-.5.E"D
.....
I-'T'--
___________________
_
8284
OElS
MVI·
C.FIGS
;I\.OT
LETTeRS.
SENe
FIGURES
S286
(H05:
E2E6
(05282
CALL CHC1
;5END
THE CASE
S~IFT
CHAR'
_____
8289
________
~C~H~O~6~!
_______________
_
82e~
4A
MOV
c.o
;r.ECr,VER
T~E
ORIGINAL
CHAk
82eft
D1
POP
D
;RFCCVER
SO~E
RE:GISTE.RS
82SE
El
POP
H
_____
--B~'--<:2.S.2
.....
8c..:;2'__
______
.....
11_1.E
___
..>.C__'H--"Ou.l
.....
__
_____.;
....
G
D-S..EN.~E-CHAR.ACI.ER
_____________________
_
10
ChtCK
RUUTINE.
THE:
~ALUE
CF THE
IOEYT
IS
RETURNED
IN
ThE A REGISTER
-_
.•.
_----------------_._---
Page 50

doae
~ACkO
~SSEMaL~R.
VER
2.2
MC~~-8080
MC~ITOR
1.1
ERRORS
= 0 PAGE
16
8;:2F
IOC~K:
e2EF
3AC300
LDA
IOBYT
-------S2
'i
2--C~----------
-
-----RCT------
10
SET
ROUTINE.
THE VALUE
CF
THE C
R~GISTER
IS
;
SUBSTITUTED
FOR
THE VALUE
CF
THE
I08YT.
·
----'-----
t------------------'-------
S~g::
IOSET:
E2S3
7S
MOV
8294
32C300
STA
A.C
IOBYT
;SET
NEV.
IOBYT
--.--B--.2S-+---C-<;.-----------lR-E:..:tT=-------------------------------.--------------
ME~ORY
CHECK
ROUTINE.
TWC
RA~
LOCATIONS
AK~
USEU
TO
STOPE
THE
TOP
OF
PAM.
THLY
ARE
ReTURNED
IN
A
ANC
n.
LLASl
SIGNIF
lCANT
IN
A.
-
------------------------------
t
e;:
S E MEMCK:
t:L':9E
lAC6ca
LDA
~SZ2
;~CST
SIGNIFICANT
BYTE HERE
B':S
e;--~47
MOV----<E;;...·
.. 9 A,-
__
'; . .f:-UJ_IT_I.N
__
E
€2<;C
31-C500
LDA
~SZl
;LEAST
SIGNIFICANT
BYTE HERE
8~C;F
CS
RET
, .
______________
;-Y
UNCl:-LEY_T.E-OUlPl.lL.fi.Q
U-IJ.J\.E..----I
HE.....LCNSOLE
__ o Y.T E Oll
T.Eli.T!-
________________
_
;
~nUTINE
IS
USED
EXCEPT
THAT THE
rOBYT
IS
fIRST
;
RGTA1E~
SUCH
T~AT
THE
CC~SCLE
ASSIGN~~~T
AND
PUNCH
;
ASSIGNMENT
ARE
INTERCHA~GeC.
WHE~
FINISHED.
THEY
------..:.....-------
____
;_AEE
__
.AG/\II'i_lNI.ERLh.A..'\I.G£C-SO-IHA.LALL.LS--DK
...
________________________
_
82AC
BY10P:
82~O
CDA682
CALL
------.6
Z
.... A ..... : __ • ----'-C
... D ....
7-'-&-2
0.3--
CAL
L
puca
BYTOT
;INTEFCHANGE
PUNCH
AND
CONSOLE
;
CO
BY IE-DUJEc.o..II-IT'--
_________________________
_
ROUTINE
TO
INTERCHANGE
CON~OLE
AND
PUNCh
ASSIGN.
·
•
----08
~.A
c--
-.----
__
-E.UC.c...:
B
2A
E F 5 PUS h
PSW
;~AvE
SCME
REGISTERS
e2A7
E5
PUS~
H
82AE
21C300
LXI
H.!OBYT
;FOIl\1
hL
AT
IOBYTE
B
2/\
t..-----1:E
_________
-lMO_V
A • M ; IN..I£BCl:i..ANG f
-r
OP
.AND-.B.UII.D
.
.."ML-
______
--'-
__________
_
82AC
OF
PRC
82AC
CF
PRC
S2AE
OF
RRC
_____
.E2A
F.
OE
-RR."-c
________
_
e2EC
77
~OV
~,A
;FUTIT
BACK
8t:81
El
PO?
H ;~ECCVER SOME
REGISTERS
8282
F 1
PCP'
PSW
-------.64:
6.3--Ct;,;
ReI
WORD
PuNCH
OUTPUT
ROUTI~E.
PUNCH
AND
CONSOLE
;
ASSIGNMENTS
ARE
INTEkCHANGED
TO
USE CONSOLE
Page 51

---------------------------
8080
~~C~O
ASSeMBLER,
VER
2.2
MCEM-8080
MC~lTC~
1.1
ERRORS
= 0
PAGE
17
82134
-----------82
64----C
D~·~
2-
8287
CCCAS1
8~EA
C~A6€2
;
ROUTINES.
WRDOP:
---
--CALb.---tPUCO
CALL
wr·WOT
.JMP
PUCO
•
-
_______
;-P
UN C h-MES
SAG.G--T-¥-R~
• A
GA-I-~.--CONSCI..
E-ANC-P-UNCH-------------------
;
ASSIGNMLN1S
ARE
INTERCHANGED
TO
USE CUNSOLE
;
F;OUTINES.
•
----82
e
D-.
------------~-YPMP..!__---------_-
82EO
CCft682
CALL
PUCO
TYPMG
PUCO
82CO
CCSAe3
CALL
82C2
C3ft682
.JMP
-.--------.--~.---.-
..
----------.-----~-----
----<---.----
;
READ[R
BYTE
INPUT
ROUTI~E.
THE READER
ASSIGNMENT
;
IT
ROTATED
INTO
THE
CC~SOLE
PCSITICN
SO THAT THE
;
CONSCLE
RCUTfNES
CAN
BE
USED.
THE
ASSIGNMENTS
ARE
-----------------
..
-RES·"J:DRcO-WI:--EN-DCNE.--Sll\CE--AN--E.XI.."f'--CAN-BE-DON~£RDla."---------------_
;
TrE
EIT
RCUTIl\E.
A
FLAG
IS
SET
TO
INDICATE
THAT THE
CCE462
CC4Ee3
;
S~ITCH
HAS
BLEN
MftDE.
IF
AN
EXIT
IS
TAKEN
THE
;
P~OPER
ASSIGNMENT
WILL
CE
RESGTRED.
EYTIR:
CALL
CALL
RopeD
BYTIN
;~OVE
REftDEh
DEVICE
TO
CONSULE
;USE
CONSOLE
BYTE
INPUT
-------~------
----~----------------------------------------
RCUTINE
TO
RECOVER
THE
CLG
CCl\SGLE
AS~IGNMENT
AND
OLD READER
ASSIGNMENT
AFTER
USING
CONSOLE
ROUTrN~S.
------e2cc
----~RCV~~l~:____
____________________________
_
8cce
F5
PUSH
PSW
;SAVE
SCME
REGISTERS
a;::cc
E!:S
PUSI-
H
8;:CE
21C300
LXI
H.IOBYT
;FCII\T
HL
AT
IOBYT!:.
------~e2D
l---7-l::E~
________
MOV
____
14-A
....
-"'M'--
__
~;j;UI
ATE
rOSYT
2 I
EFT
82C
2
07
RLC
82C3
07
RLC
82C4
77
MOV
~tA
;!'ETLRN
IOEYTE
--'
------8.;:D'"
2C-
IN.R'---
__
LI
___
;,.F~l'J..J-jL_AT-IELA
.....
G'__
_____________________
_
'820f:
36CO
MVI
M.O
;RESET
IT
TO
.lH-<O
8CCS
El
POP
H
;RECCVER
SOME
REGISTf:.RS
a2CS
F 1
POP
PSW
82..CA
CS
REL-
scce
82CE
€2CE
CCE482
CD261;33
·
•
READEP
WORD
INPUT
ROUTII\E.
AGAIN.
THE CONSOLE
ROUTINe
IS
UTILIZED
BY
MOVING THE
IOBYTE.
-----.----------:----------------~-.-.---.
--
wRDIR:
CALL
CALL
RDRCO
wRDIN
Page 52

8080
~ACkO
~SSEMBLER.
VF.R
2.2
MC~M-8080
MCNITCR
1.1
ERRORS
= 0
PAGE
18
._---------------------------_._-----
at:
E 1
C3CC€2
JMP RCVRI
READER TO
CONSOLE
ASSIGNMENT
S~ITCHER.
·
..
-.-
------
..
-----------
-,
--------_.-
a2£:4
RCRca:
82E4
E5
PUSH
H
;SAVE
HL
e2l::.5
21C300
LXI
HoIOBYT
;r:Clf'.-T
HL
AT
IOBYTE
-----82E.a.....--....-7
E;.........-----~~--'-'MOV---...JII'+_.
+ •
.fI<M"----....,;.-;s·j,:j-:u~-+_I·O~
...
E~F:...Tl__--------------------
........
- --
..
.
82E
S
OF
RhC
82EA
CF RFC
82EE
77
rvov
M,
A ;r:<ESTORE
IT
-------8:2
E
(---2
c- r
NR:---4b=-----~;
~O-IN+-A.
T-l-F-L-A
...
Co-------------------------·
c2ED
3EFF
MVI
fJ,-l
;SET
FLAG
TO
-1
82Ef
E 1
POP
H ; RECOVER
HL
U.<:FO
CS
RET
---;
..
-----
;
ECHC
INPUT
AND
TEST
·
•
E2Fl
ElT:
-----d2F·l--
(OeS-B.l
(AL-cI..---t~O:
GE-T-~hAR-AN~C_H\JO'------------------------
82F4
FE20
CPl'
I
82FE
CAF182
JZ
EIT
;lGI\CRE
ELANKS
82F9
FE2C
CPI
,,,
;CO~~A
IS A DELIMITER
-----..e2~c--37
STC'----------
82FC
CE
PZ
;RETLPN
~ITH
CY
SET
FOR
DELIM
82FC
FEeD
CPI
CR
;CR
IS A DELIMITeR
82FF
37
5TC
----~8~O
O---C8
.
-R
z..
;-~.E...L-
w.L.T..r_-C...'L-SE.:t:-EDfLD£.L.!.M-
______
--'-
__________
_
8301
FE47
CPI
'G'
;STCF
IF
LARGER
THAN
~
8~03
3F
CMC
;INVERT
CARRY
elT
8304
DC
RNC
;NO
CARRY
IS
OK
CHARACTER
----.
-8~-1J..5
3.A-C-4-0-0
LDAA~~--.IHF=-t,L-+lAr\.;G_~~~--~--.-:~-~------'----------------------
1 +
TEST
8~C8
1 A7 +
ANA
A
;SET
FLAGS.
CY=Q
8~CS
C~7380
~z
~AIN
-----e-3CC-CDCC8-Z---------CALL.
___
RC-VRl-
___
_
e~CF
C37380
~MP
~AI~
;
NIB~LE
ROUTINE,
CONVERY
ASCII
TO
~EX
c:! 1 2
NIBBL:
8:;12
0641
:COM~ARING
FOR
>=10
8314
F21983
___
.-----S~.1-7._-C
...
E'""C~71__
__
_
8::
1
<;
8::19
CeCA
;/JAKE
IT
BINARY
8311:
Ct;
;THAiS
ALL
FeR
PERFECT
INPUT
EXP~ESSICN
(PAPAMETER
LIST)
G~A~eER
8.31
C
EXPR:
------_
..
_--------
-------------_
...
--
Page 53

aeee
~~c~C
~SSEMAL£R.
VER
2.2
~C~~-80Da
MCNITOR
1.1
E~RORS
= 0
PAG~
19
._-----------------------------------
B21C
CC2683
CALL
W~DIN
;RE~D
16
BIT
GROUP
INTO
HL
821F
E3
XTHL
;EU8BLE
PC
CO~N
ON
STACK
822C
E5
PUSb
~
;5TACK
IS
PARM
LIST
------8..;
21---0
5
-----·-----·-·OCf-:
----B----
-;
CEC--
PA
r.M--CGUN.::r.-.~·
----
8222
C21C83
JNZ
EXPR
;CUIT
WHEN
B
E~PTY
822=
CS
RET
WRDIN - READ
IN
16
8IT
ACCRESS
·
•
8::;2
c
~RDIN:
---B":=
2
c--
210
0 O
...
()
_____
~_.LX
I
.----l=H
....
>.J.O---;
CLSAI<_E
UEFER.--.
8J2S
C5
PUSb
B
;SAVE
PftRM
COUNT
a22A
oeC4
MVI
8.4
;G~T
4
HEX
DIGITS
IN
ASCII
8::;2C
WRD1:
____
8..:;2
C--CCF
lE2--
_____
._CALL
__
·_ElT
;
J;E.AC/Cl-ECK
..
CHARACTER-
8::;2F
D23B83
JNC
~RD2
;CARRY
SET
IMPLIES
DLLIMITER
S332
78
MOV
A.B
;'~ST
FOR
NEW
~ORD
8::;~~
FEC4
CPI
4
;E=4
~EA~S
JUST
STARTED
-------<8.::
3
~--.cA2
C.8.3----------1z.
\AI
PUI
;I.G
I.
C
fiE-
....
-AT.
-8
EGLNN..I.N
yG>----------------------
8228
C~48e3
JMP
~XIT
;VALID
DELI~ITEk
IF
NUT
1ST
8:2E
~RD2:
823E
CC1283
CALL
NIEBL
;EAT
SO~E
CHARS
------e..:;..:~..2c'=__---------_DAh\,.DJ--
___
H
______
.;HLi<2__
__
_
a:::::F
2<;
DAD
H
;:-L*2
e':4(.
2<;
DAD
H
;ML"'2
8241
2S
CAD H
;LO~C
LE~T
SHIFT 4 KIDDIES
8':4
Z---B.5.--------------WC.'RA...-
___
L ; e
R-ll\
C _LN.-J\j-LW-.
4--8
J.-IT.J....;;S>--
________
.
______________
_
8343
~F
MOVL.A
;hL
NOW
HAS
GOOD
DATA
e~44
05
OCR
8
;RECUCE
CHAR CCUNT
8~4=
C22ce3
JNZ
WRDl
;::;.2.1.0
AND
OUT
-----8~4
~'------
EX--J
=r
:
E24€
7A
MOV
AtD
;~PD~T~
CHECKSUM
834<;
€5
A~D
L
;CRDEP
IMMATERIAL
834A
e4
ADD
H
;CHK
SUM
IN A CORRECT
------e~48___S.7-----.----~MUV.
___
_lD_4_.-#oA'-----;..CHECKSLJK_UPD.A..l.£-CUM~P'_l.L..1E~T--'E:..._---------
__________
_
834C
C1
POP
li
;r:;ESTORE
834D
CS
RET
S:;4E
834E
C5
-
____
..8.:
liJ:=:
__
·_O
c.e
0
8351
CDFIE2
83~4
DAtC83
82E7
CD1253
--.-.-------8~
= A
----4-7.--..
835E
CCF182
83='E
DA6Cc3
8361
C012e3
BYTE
INP.~lJ~T~~R_lTwN~~·
_______________
~
________________________________________
_
•
8YTIN:
PUSh
8
;SAVE
IT
________
MV_l
___
.L8c...s
•.
Q,
____
;..lN
LI_-1ilN
AR.Y-V.ALULBUEE..E.oR"--
__________________
_
CALL
EIT
;REAC
NEW
DIGIT
JC
EXITB
;L~AVE
IF
DELIMITER,A=B=O
CALL
~r8BL
;GET
eI~ARY
VALUE
IN
A
__
-------.MCLV"----
.....
l3
.......
A ;
S.A.V
L
.. G IN
AKY
__
V
ALu
t:..._lN-B
__ . ____
-'-
_________________
_
CALL
EIT
;REAC
2~D
(LO~)
DIGIT.
IF
ANY
JC
EXITB
;CUIT
IF
DELIMITER.
A=U=DIGIT
CALL
NIGBL
;COI\VFRT
2ND
DIGIT
TO
~INARY
Page 54

8080
~ACRO
ASSEM8LER,
VE~
2.2
MCEM-8080
MC~ITCR
1.1
ERRORS
= 0
PAGE
20
-------------------------
~3E4
4F
MOV
C.A
;SAVE
CHAR
E 2 C
= 7 e
I'
0 V A , B ; GET F I H S T ( H A R
e~~e
07
PLC
;NO~E
TC
TOF
CHAR
-----c::t
t---G7-
---·---RLG--------------
€2EE
07
RLC
E'::fS
C7
RLC
E2c~
61
CRA
C
;OR
IN
FIRST
CHAR
-E2t£
4
7----------'-'--MG'\l-J----iB:l-o"'"
.A-fl----T;-S-A-VE-l-N---l3------~-----------------------
E36C
EXIT8:
82fC
78
MOV
A,B
;IN
CftSE
A~OLCS
OELIM
CHAR
8260
82
ADD
0
;ADC
CHECKSGM
------82Hii---S7
-------III4Q.v
D
,A
;+t:'-T-l,kN--UPD-,d.f:-E~UM_----------------------
e.::eF
7€
MOV
A,B
;RESTO~E
SA
FROM
$B
E27C
C1
POP
B
;RESTORE
B
e~71
CS RET
--o:-------...;j;E--l--DOl\;c---t:;!...-S~£_-----------------------
8YT E OUT
FUT ~ TN
CUTPUTS
2
H~X
ASCII
CCDED
DIGITS
---·------'-...;--HR~.w:NAT-E-S--R-R-I-N-T-F_·l_Ek.D-_W_I-1H--SPA_CE-·------------------'----------
E272
EYTOT:
8272
C~
¢USH
E
;CALLS
USE
58
-----~7
-3,--,-C
O--'"l.B~~----
__
-CAL_,-1
----08-+T~0I_Tlhl
........
-~;.c£c.nc(
~ t-EX---,DU-J.I-I.GhII.-T~5
______________________
_
8276
CD0481
CALL
S~ACO
;FRI~T
A
SPACE
TRAIL~R
C27S
C1
POP
(j
;t:.lSTCRE
837A
C9
RET
.
----------------~.-----.""----.-.------
BASIC
RYTE
OUTPUT
OECCDEH
RT~
FERFO~MS
SUMCHECK
AOOITIO~
ON
OUTPUT
;
HIGh
CROEF<
UIGIT
OUTFUT
FIRST
-----,----------------,t--i.L.-b-CW-G-FD-E-~E
~
01
c;
IT
0
L.
:rP~-~SECQ..l'I;O---------------------------
E27E
e27E
47
----~S~7C__-e2_
E'::7C
57
e37E
78
E37F
07
----cS.::.-C
C
07
8'::
81
07
8282
07
8283
C08783
8.-:.at
7€
•
ETOT
1:
MOV
B.A
;SAVE
8YTE
IN
B
ADD.---
....
().J-----
;.A
LJC--TO--
C
HE.CKSUM...------
-----------------
MOV
O.A
;SAVE
NE~
SLM
MOV
A.8
;~ET~IEVE
BYTE
RLC
;SWAP
HEX
DIGITS
-RLC~
__
-----------------
___
--------------
RLC
RLC
CALL
HXOUT
;FRI~ED
w/HIGH
DIGIT
_---1>'.DVJl.
___
~A
.......
_cB'__
____
;
-1.-1
NS.J.E.A.D-Ol=-sH.LEI.
.......
MxuD
........
V
____________________
_
;FALL
THRU
TO
HXOUT
HE)<
OUTPLT
RTN
------------~curJ;.U.r_S_..A.S_C
r I COD
ED
r.E-.lCru
Gl.!
FRCM
LOW
4
~ITS
OF A
REGISTER
,
8'::87
HXOUT:
;C-9,A-F
NOT
CONTIG-
Page 55

8080
~ftC~C
ftSSEMBLER,
vER
2.2
MCE~-8080
MCNITO~
1.1
ERRORS
= 0
PAGE
21
-------------------------------------------------------------
;UOUS
CaD~S, 2 CAS~S
E3B7
EtCF
ANI OFH
;~T~IP
hIGh
DIGIT
a2a~
DtCA
SUI
OAH
:>9
TEST
-----------
c:::
€
8----F £ <;483---------.JP--------HXG1-----.
2P
/lI'\.CH--.GE.-l 0 ---
-
e'::Et
Ct':.3A
ADI
19'+1
;AOD
;\SCI1
<;
+1
FOR
;ASCII
CHAR
COCE
O~
#
e~~c
4F
MDV
e.A
;F~I~E
P~GUMEI'\.T
FCR
CALL
-----------B.:;9-1----C-3-C6-&1-----------JMP----CG----.-;CU-TPUL-IX--AND-RE-T
83<;4
HX01:
;LETTE~
CASE
82<;4
C641
ADI
'A'
;ADD
ASCII
'A'
FeR
------8-3
<;.-tc---44
F-~-------
8::<;,
C.3C6E1
;ftSCII
COOt
OF
DIGIT
-Mav---->.c~'t_.
A.A-----.:
F
R--I
ME-A
RG
1.;,'.1
E
N-T--F-DR--CAA~L~L~------
__
-----------------------------
~MP
CO
;CUTFUT
AND
RET
;~O
ERkCR
ON
INPUT
;FOSSIRLE.
so
NO
CHKS
------------------~-------
----------
--------------------------------------------
TVPE
~ESSAGE ~OUTINE
(HL)
FaINTS
TO
MESSAGEAOO~ESS
MESSAGt
TERMINATED
BY
~rGATIVE
BYTE
E::SJo
TYPMG:
a'::SA
C5
PUSH
H
;FRI~T
PREFACE
MSSG
82<;E
21A083
LX!
H.CRMG
;POI~T
TO
PHEFACE
.----Q.6.~~r;;E--_I"C.~O,).,AI4:.2._c;c;:...-J.l__-----
____
C.ALL
___
-'T-J"'-=8""1
___
-..;nCR4_LF-+--c--._.~
_____________________________
--,--
_____
_
82A1
E1
POP
H
;~OI~T
TO
1ST
MSSG
AGN
;fALL
THRU
AND
P~INT
S3A2
TYPl:
---------S-~~--1E-----------lMO'V
___
_'A
.......
...M'-------+:.£E..-r-cJ-i-C.!cIAR-~E-M-----------_-----------------
1 +
TEST
;CHK
IT
1ST,
E~A3
1
A?
+
ANA
A
;SET
FLAGS
, CY=O
e~A4
Fe
~M
;~EGATIVE
IMPLIES
END
------
8JA5
4-F-
MOV
C.
A
';-FR.I-~I-~
S:;,A6
C00681
CALL
CO
;PUT
IT
OUT
a:::A9
23
INX H
;PCI~T
TC
NEXT
CHAR
----e::.AA----C
::.A2B-..l-----
.JMP-'-----+T~'(
F 1
:-UJ-CF
T I
L.1.-~E~G~C~ht:t_AA-PRe_-------------------------
83,AC
oeCAooan
C~MG:
DB
CR.LF,O.O.O,O,-l
E3B1
O::JCOFF
83Q4
3AFF
CRCO:
DB
':',-1
----------J:
38
6---2
r;
FF
-----P-M-'!
14-G-:---CdO'------!·
.....
o-!-·
+.
=-Jll.----------------------------------,.----,-------
S::EE
4:::::84954
RSMG:
CE
'EXIT'
,-1-
B2t:C
2CFF
S:::EE
C0450A41
EOTAe:
Db
O.·E'
,LF,
'A
SIU'
,CR,'
DRJNFCK'
'"
-_.
__
..
_--12.
~
C
Z----20!::
3 4
~
5.5
8'::Ct
OD44!:24A
e:;CA
4E46434B
t1::CI::
54~A4C57
DB
'TZLWHYFCCBG',OAOH,'MXV',80H
----··-------8
3D
~-4
~5.g5
05.1--.
-----------
-----------'----------------------
t2Ct
4F4247AO
e:;l.)A
40585680
8301:
CC330A20
DB
O,'3',LF,'-
*87',CR.'$4",',21H,':('
Page 56

eoec
~~c~o
~S5EMBLEP,
VER
2.2
~CE~-8C80
MCNITOR
1.1
EPRCRS
: 0
PAG~
22
e:::E2
2C2A3937
e::Ec
OD243427
83EA
2C21JA28
-----8.3
E
E---3
5
c;
B 2
932
--------IDB-----'-&++2-./I"6~
&--t....-~A-O~_"/=J-...aOH----------------------------------
83Fc
':::::::63031
a:::FE
3C;;::F26AO
E3F/l"""
2
E:::
F.:;t..:80
----------~~6ND-------------~----------------------------------------------------------
NC
F~CG~AM
ER~ORS
---------------------------------------------------
-----"----------------"--------------------------------------------~--------------------------------------
Page 57

808C
~AC~C
ASSEMBLER.
VER
2.2
MCEM-8080
MC~ITOR
1.1
ERRURS
= 0
PAG~
23
5
'1't-1
ceL
TAB LE
...
01
-~~-
----
--
-----~---
--------
- --
------
-
---
-~--~------
---_.
----
A
aOC7
8
0000
BCAS!
0007
BeASO
eCOE
P-CTAE
E3eE
BEGIN
e028
8GO ~02E
8G2
€O~4
bTCTl
E378
~YTIN
834E
BYTIR
E2Ct
BYTOP S2AQ
6-'yTC1----E.372
-C-
0.,)01
CH.I
E23-B-
Ch-l-l--~121f:.;..----------------------
cre
824F.
CHOt
8252
CH02
825D
er03
c2t5
ChC4
E27~
CHOS
b2B~
Ch06
B2BS
CI
8193
CC
Eloe
CR
ecaD
CRCO
E3U4
C~MG
E3AD
-CSl
S--8
2
Cl
G
S-T
-S·l----b
2\)
b
GST-S-2--8
21
1 0
DC
0
d--:------'--'-'-----------------
Dt~Fl
EO~F
CISP2
8088
CISP3
80D6
DISP5
SCb9
CSFCK
Fe~c
aSPOT
F~a4
DSR
oe80
E0003
EerC
elE~
ECrOl
B1CB
ECHC~
0000
EIT82Fl
-.-----
EX
11-
- f : 4 6 E X
IT
B-----
d
36
C
£:
X
PR---t
31
C-
FI
GS--CO
1
:J-----------------------
GC
SeEE
(TA
e319
H
0004
HXCI
E394
rXCLT
E387
lURCH
U196
tFLAG
OC04
INSRT
80~D
1~5Tl
eo~o
I~ST2
810B
IOBYT
0C03
ICCHK
8~dF
---------
leSE
1--8293
-.---
1<-
0 r N ---- F
Bcq
----K
as
T-5---
F
807
-----L
-------0
C
00---------------------
LOC
El1~
L01
512E
LF
OOJA LO
elFt]
LCl
81FC
LOAD
clOf
LlRS
OOIF
~
Cv06
~AIN
e073
~E~CK
U296
MONST
002C
MSZl
0005
------tI
S
l2---C,')
0
c-
1'\
I e
PL--3-31-2
CaRCH--B
1 C':;
PARCT--OO
OF-----------------------
PA~I~
EIA~
PAP~D
00A6
PAROT
€lEE
PCSAV
C02~
rII'\~T
GOCD
PIRCY
0002
PMTMG
e30e
PO
elF!
pcr.Cy
GCEC
POTPT
eooc
PSSAV
0032
PSTAT
CODE
----j:s~--___Ou
J.e
-fl-UCQ._-
-8-2A6
RCV-R 1 8-2-CC
RC
RCO--.82
E44----------------------
RETR1
E17A
RET~N
816F
RGSAV
CC38
~l
8lAO
R5~G
E3ee
RSTRT
8145
RXROY
CC02
SOPIO
FeOA
SF
caoe
SPA
CO
81G4
TEST
C3EO
TXRDY
ce01
---------T-XRX
E
J-O-2-=i
r-yp-l--f'~~A2
T'l'RMG 8 -'g
A
TY.P-M.P---82.£3·-l..Dl------------'------------
UA~TI
C08f.
UARTR
0055
URTBM
cce3
URTeT
acoo
URTCA
QOCA
URTMQ
OOFA
USRIN
OC40
USROT
0043
U5~5T
004e
~RDI
832C
WRD2
8~~E
WRDIN
E326
----~.s<.W~2DE
WJ:<CUR-.--8.2Ll4
lNRD
aT e lC
A
"
02
.--------------------'-----------------------------~----------------
",,'
C3
*-C~4_
_________
~
________________
____,r__-------------------------------
* O!:
------------_._--
..
at
""
C7
--~-
Page 58

8.
CIRCUIT
The
Corp.
current
HAL
without
units.
permission
Model
Communications
BOARD
following
MCEM-8080
circuit
incurring
The
diagrams
of
HAL
LAYOUT
pages
Microcomputer
connections
reserves
any
obligation
may
Communications Corp.
AND
contain
as
the
not
be
of
right
duplicated
SCHEMATIC
complete
System.
the
to
make
diagrams
printing
to
make
such
in
DIAGRAMS
of
the
These
changes
changes
any form
date
diagrams
of
in
in
HAL
reflect
this
manual.
the
circuitry
previously
without
Communications
the
sold
the
express
8-1
Page 59

MCEM-8080
Addendum
June,
Use
of
ribbon
No.
1976
the
The
MCEM-8080
cable
Processor
in
Table
2.6
corresponds
to
al
ign
it
plastic
should
pin
UPB
connectors.
be by
32
location.
connector.
2
UPB
cable
connections:
is
with a connector
Bus)
connector
on page
to
pin
2-12
1).
correctly
putting
a
This
furnished
of
of
When
as
indicated
If
your
small
should
with
on
one
the
MCEM.
the
MCEM
plugging
cable
piece
correspond
a two
end
that
The
manual
the
cable
by
the
small
connector
of
bare
to
foot
mates
cable
(the
has
wire
the
length
to
of
the
connections
red
stripe
into
the
arrows
NOT
into
embossed on
been
the
missing
40
conductor
UPB
are
on
MCEM,
polarized,
cable
pin
of
(Universal
explained
the
cable
be
sure
the
it
connector
the
MCEM
Connection
of
the
ribbon
connecting
THE
TWO
FOOT
attached
3417-0000,
to
which can be
cable,
the
wires
LENGTH
the
to
ribbon
Communications Corp.
a
3M
no.
3432-1002
is
designed
therefore
be
used
Installation
The 40
1.
2.
so
be
attached
to
attach
of
conductor
The
RED
The
ribbing
This
although
also
that
the
additional
stripe
can
best
dragging
indicate
ribbing.
Refer
to
the
attached
the
cable
stripping
as
required.
FURNISHED.
cable.
obtained
for
$6.00.
connector
it
clamps
to
the
3M
connector
connectors
cable
side
of
the
be
determined
of
which
Figure 2 for
can
be made
and
tinning
The
Alternately,
The
cable
from a
The
at
$4.00
directly
same
cable.
to
polarity
corresponds
cable
is
is
your
roughest
finger-nail
by
each
cable
connector
3M
distributor
mating
each
from
over
The
the
cable.
to
the
is
distiguished
to
heavier
by
looking
and
the
simply
separating
one
SHOULD
the
same
is a 3M
circuit
HAL.
the
cable
following
UPB
cable:
pin 1 of
on
one
at
the
across
therefore
following
required,
NOT
BE
EXTENDED
3M
connector
part
or
from
board
The
and
connector
cable
several
procedure
in two ways:
the
UPB
connector
side
END
the
has
than
of
two
the
instructions.
the
conductors
and
then
can be
no.
HAL
connector
can
should
the
other.
the
cable,
sides
heavier
BEYOND
is
will
The 40
larger
clamp
the
section
strip
protective
"sandwiched"
Attach
the
pin
connector
with
has a
protective
strip
between
connector
the
connector
is
removed
the
forks
to
the
(3M
cable
No.
paper
to
of
3417-0000)
pins
and a
covering
expose
the
using
the
connector
the
is a two-piece
smaller
over
adhesive
pins
following
an
adhesive.
clamp
and
and
procedure:
assembly,
strip.
the
the
clamp
The
In
assembly,
cable
strip.
the
is
Page 60

I.
2.
Locate
conductor
on
the
several
the
Carefully
from
and mark
the
same
cable,
end-most
the
the
cable.
cable
allowing
connectors
connector
remove
clamp
piece.
desired
Note
since
it
are
the
connector
that
to
has
protective
several
the
connectors
pass
intended,
been
connectors
through.
do
not
installed.
paper
location
simply
Therefore,
cut
BUT
NOT
clamp
the
the
on
the
can be
cable
adhesive
40
placed
around
if
until
3. Put
ribbed
the
4.
Locate
indicates
5.
Place
of
the
6.
Align
of
fingers
into
7.
RECHECK
8.
After
in a bench
between
If
scratching
the
side
paper
the
the
the
cable
red
the
the
pin
the
a.
The
b.
The
c.
The
checking.
the
vise
adhesive
of
and
not
embossed
the
location
pin
section
from
stripe
guide
section
until
cable.
THE
the
the
CABLE
red
heavily
connector
vice.
cable -too
has
of
the
surface
the
ribbon
the
the
on
the
pins
and
forks
AND
stripe
ribbed
the
Use
rough
connector
of
cable,
adhesive
arrow
of
two
on
of
pin I of
of
the
clamp
cable.
the
press
of
the
CONNECTOR
of
the
side
is
perpendicular
sections
only
surfaced
enough
much
the
clamp
taking
with
the
connector
the
connector
assembly,
clamp
cable
pressure
by
piece
the
two
connector
ALIGNMENT
is
of
the
can
pressure
jaws,
using
piece
care
it.
pin
connector.
on
the
aligning
into
pieces
pins
TO
adjacent
cable
to
the
be
completely
to
will
you
cardboard
break
may
on
the the
to
remove
section.
oppositie
the
the
mating
together
start
BE
SURE
to
is
against
cable.
close
the
wish
protective
heavily
only
arrow
with
to
"bite"
THAT:
the
arrow
the
pressed
the
connector.
to
prevent
This
side
with
holes
your
clamp.
together
gaps
shims.
9.
If
additional
any
cable
to
end
razor-blade
the
connector.
connector
the
cut
together
)0.
The
completed
piece
Notice
odd numbers
numbers on
the
of
that
location
and
edge
in
No.
connectors
cable
and
cut
Be
not
to
be
the
process
connector
22
bare
the
numbers
down
the
other
using
after
the
careful
on
sure
the
are
the
cable
the
that
of
should
wire
are
arrow
side.
required,
the
above
connector,
off
to
cut
processor
adjacent
cutting.
now
into
connector
marked on
side
{starting
they
procedure.
use a VERY
flush
on
with
the
"scrap"
end!
be keyed by
After
wires
pin
the
face
at
can be
If
SHARP
the
outside
end
cutting,
have
not
inserting
no.
32
of
the
arrow} and
attached
it
is
knife
of
been
position.
the
connector
at
desired
or
edge
the
inspect
shorted
a
short
even
of
-
Page 61

40
conductor
cable
pin
1 1
oca
t i
ng
of
connector
a.
3M
3417-0000
C
--------
1
'-;-~=------------------'~~i
~
Cable
Connector
~.-5Pin
~Req
section
"smooth" s ide
str;pe
of
(p;n
cable
1)
To
processo
c-
L-~~----------------~~~clamp
b.
Assembly
rl~pin
rj
~~~.~~.~
c.
Assembled
____
..
_~~~
~
of
connector
______
connector
c·
I
•.
~
__
~heavi
~~
___
~.~~~_;:~cable
,-_clamp
ly
strip
sect
strip
"Scrap-end"
ri
ion
bbed
side
of
of
cable
cable
'--
_________
d.
Cutting-off
Figure
2.
Preparation
-10
O[;J
El
--------------"
Cut
excess
of
cable
UPB
along
Cable
this I ine
Connector
with
razor
blade