Mostek z80 User manual

MOSTEI(®
zao
MICROCOMPUTER SYSTEMS
Operations Manual
AIM-Z80AE
APPLICATION
INTERFACE
MODULE·


AIM-Z80AE
OPERATION
MANUAL
publication
Number
79650


i
TABLE
OF
CONTENTS
SECTION
PARAGRAPH
PAGE
NUMBER
NUMBER
TITLE
NUMBER
1
GENERAL
DESCRIPTION
1-1
1.1
INTRODUCTION
1-1
1.2
REFERENCES
1-4
1.3
CONVENTIONS
1-4
1.4
TERMINOLCXiY
1-5
1.5
BUl<'FER
MODULE
1-6
1.6
CONTROL
MODULE
1-9
1.7
HISTORY
MODULE
1-11
2
AIM-Z80AE
INSTALLATION
2-1
2.1
INTRODUCTON
2-1
2.2
COMPATIBLE
SYSTEMS
2-1
2.3
EQUIPMENT
REQUIRED
2-1
2.4
JUMPER
OPTIONS,
CONTROL
MODULE
2-2
2.5
JUMPER
OPTIONS,
HISTORY
MODULE
2-4
2.6
TARGET
SYSTEM
CONFIGURATION
2-6
2.7
INSTALLATION
2-7
2.8
INITIAL
CHECKOUT
PROCEDURE
2-9
3
AIM-Z80AE
OPERATION
3-1
3.1
INTRODUCTION
3-1
3.2
PREPARATION
3-3
3.3
INITIALIZATION
3-3
3.4
ERRORS
3-3
3.5
CCfv1MAND
FORMAT
3-7
3.6
HEXADECIMAL
NUMBERS
3-7
3.7
ASCII
LITERAL
3-7
3.8
MNEMONICS
3-7
3.9
RELATIVE
ADDRESS
3-9

ii
TABLE
OF
CONTENTS
SECTION
PARAGRAPH
PAGE
NUMBER
NUMBER
TI'rLE
NUMBER
3
3.10
IMPLIED
MEMORY
ADDHESS
POINTER
3-9
3.11
ADDED
OR
SUBTRACTED
NUMBERS
3-9
3.12
EQUAL
SIGN
3-9
3.13
SPECIAL
KEYS
3-10
3.14
B-BREAKPOINT
COMMAND
3-11
3.15
DESCRIPTION,
B
COMlVJAND
3-11
3.16
EXAMPLES,
B
COlYMAND
3-15
3.17
C-COPY
COMMAND
3-18
3.18
DESCRIPTION,
C
COMMAND
3-18
3.19
EXAMPLE,
C
COMMAND
3-18
3.20
D-DUMP
CCMVIAND
3-19
3.21
DESCRIPTION,
D
COMMAND
3-19
3.22
EXAMPLE,
D
COMMAND
3-19
3.23
E-EXECUTE
COMMAND
3-20
3.24
DESCRIPTION,
E
COMMAND
3-20
3.25
EXAMPLES,
E
COMMAND
3-21
3.26
ESCAPE-EXEC
UrI
ON
ESCAPE
COMMAND
3-22
3.27
DESCRIPTION,
ESCAPE
COMMAND
3-22
3.28
E~WLE,
ESCAPE
C~~D
3-22
3.29
F-FILL
COMMAND
3-23
3.30
DESCRIPTION,
F
COMMAND
3-23
3.31
EXAfVWLES,
F
COMIVJAND
3-23
3.32
G-GET
COMMAND
3-24
3.33
DESCRIPTION,
G
COMMAND
3-24
3.34
EXAMPLES,
G
COMYffiND
3-24
3.35
H-HEXADECIMAL
ARITHMETIC
3-25
3.36
DESCRIPTION,
H
CCMvlAND
3-25
3.37
EXAMPLES,
H
COMMAND
3-25
3.38
I-INITIALIZE
MEMORY
MAP
COMMAND
3-26
3.39
DESCRIPTION,
I
COMMAND
3-26

iii
TABLE
OF
CON'fENrrS
SECI'ION
PARAGRAPH
PAGE
NUMBER
NUMBER
TITLE
NUMBER
3
3.40
EXAMPLES,
I
C~~D
3-27
3.41 L-
LOCATE
COMMAND
3-29
3.42
DESCRIPTION,
L
COMMAND
3-29
3.43
EXAMPLES,
L
COMMAND
3-29
3.44
M-MODIFY
COMMAND
3-30
3.45
DESCRIPTION,
M
COlYMAND
3-30
3.46
EXAMPLE,
IV!
COMMAND
3-33
3.47
O-SET
OFf~ET
COMMAND
3-34
3.48
DESCRIPTION,
0
COMMAND
3-34
3.49
EXAMPLE,
0
C~ffiND
3-34
3.50
P-PORT
COMMAND
3-35
3.51
DESCRI
PTI
ON,
P
CavIMAND
3-35
3.52
EXAMPLES,
P
COMMAND
3-36
3.53
Q-Qurr
CCM~
3-37
3.54
DESCRIPTION,
Q
COMMAND
3-37
3.55
EXAMPLE,
Q
CavMAND
3-37
3.56
R-DISPLAY
REGISTERS
CO~~~~D
3-37
3.57
DESCRIPTION,
R
COMMAND
3-37
3.58
EXAMPLES,
R
CO~~D
3-38
3.59
S-STEP
COMMAND
3-39
3.60
DESCRIPTION,
S
CO~IIV\AND
3-39
3.61
EXAMPLES,
S
COMMAND
3-40
3.62
T-TRACE
HISTORY
CO~~
3-41
3.63
DESCRIPTION,
T
COMMAND
3-41
3.64
EXAMPLES,
T
COMlVlAND
3-43
3.65
V-VERIFY
COMMAND
3-48
3.66
DESCRIPTION,
V
CClMl'lAND
3-48
3.67
EXN~LE,
V
COMMAND
3-48
3.68
W-WRI'fE
TO
ALTERNATE
LUN
COMMAND
3-49

iv
TABLE
OF
CONTENTS
SECTION
PARAGRAPH
PAGE
NUMBER
NUMBER
TITLE
NUMBER
3 3.69
DESCRIPTION,
W
COMMAND
3-49
3.70
EXAMPLE,
W
C<N1AND
3-49
3.71 Z-INITIALIZE
COMMAND
3-49
3.72
DESCRIPTION,
z
COMMAND
3-49
3.73
%-TEST
MEMORY
COMMAND
3-50
3.74
DESCRIPTION,
%
COMMAND
3-50
3.75
EXAMPLES,
%
COMMAND
3-50
3.76
EXECUTION
TIMER
OPERATION
3-51
3.77
OPERATION
WITH
MD-SBCl
3-51
3.78
OPERATION
WITH
MDX
3-51
3.79
OPERATION
WITH
OEM-80
3-52
APPENDIX
A
FACTORY
NOTICES
A-I
APPENDIX
B
SPECIFICA'l'IONS
B-1
APPENDIX
C
SCHD~TIC
DIAGRAMS
BUFFER
BOX
SCHEMATIC
C-l
BUFFER
BOX
ASSEMBLY
DRAWING
C-4
BUFFER
BOX
PARTS
LIST
C-5
HISTORY
l"10DULE
SCHEMATIC
C-6
HISTORY
MODULE
ASSEMBLY
DRAWING
C-10
HISTORY
PARTS
LIST
C-ll
CONTROL
MODULE
SCHEMATIC
C-12
CONTROL
MODULE
ASSEMBLY
DRAWING
C-16
CONTROL
MODULE
PARTS
LIST
C-17

v
LIST
OF
lo'IGURES
FIGURE
DESCRIPTION
NUMBER
1.1
AIM-ZS0AE
SYSTEM
1-3
1.2
BUFFER
MODULE
I-S
1.3
CONTROL
MODULE
1-10
1.4
HISTORY
MODULE
1-12
2.1
INSTALLATION
IN
MATRIX
OR
SYS-80F
2-9
2.2
MINIMUM
TARGET
SYSTEM
2-14
3.1
AIM-ZS0
COMMAND
SUl't'llVJARY
3-1

vi
LIST
OF
TABLES
TABLE
DESCRIPTION
PAGE
3.1
ERRORS
3-4
3.2
AIM-Z80
MNEMONICS
3-8
3.3
SPECIAL
KEYS
3-10

1.1
INTRODUCTION
SECTION
1.0
GENERAL
DESCRIPTION
1-1
AIM-Z80AE
is
an advanced developnent
tool
which
provides
debLg
assistance
for
both
software
and hardware
via
in-circuit
emulation
of
the
Z80
microprocessor.
Use
of
the
AIM-Z80AE
is
completely
transparent
to
the
Target
system
configuration.
No
memory
space
or
polrts
are
used and
all
signals
inclLrling
RESET,
INT,
NMI,
BUSRQ
and
WAIT
are
functional
during
emulation.
Single
step
circui
try
allows
user
to
execute
Target
instructions
one
at
a
time
to
see
the
exact
effect
of
each
instruction.
Single
step
is
functional
in
R(lv1
as
well
as
RAM.
Sixteen
K
bytes
of
emUlation
RAM
may
be
mapped
into
the
Target
memory
space
at
any
desired
address
so
that
software
may
be developed even
before
Target
memory
is
available.
Breakpoint
detect
circuitry
allows
real
time
execution
to
proceed
to
any
desired
point
in
the
users
program and
then
terminate
with
all
registers
and
status
information
saved so
that
execution
may
later
be resumed. Real time
execution
may
also
be
terminated
at
any time
with
the
Escape key.
EVENT
and
DELAY
counters
give
added
flexibility
for
viewing
the
exact
point
of
interest
in
the
users
program.
The
48
channel
history
module
will
simultaneously
record any bus
transaction
which
the
user
may
desire
to
see.
Address
bus,
Data bus and
Control
signals
plus
eighteen
external
probes which can be used
to
moni
tor
the
Target
circuitry
at
other
points
are
sampled by
the
history
RAM.

1-2
AIM-Z8~AE
is
partitioned
into
three
modules.
The
Control
and
History
modules
are
.installed
directly
into
the
MOSTEK
disk-based
developnent
system.
cables
from
these
modules
connect
to
the
Buffer
module which
plugs
directly
into
the
Target
system
Z8~
CPU
socket.
After
AIM-Z8~AE
is
installed,
the
developnent
systan
is
powered up and
the
systan
booted
up
as
nonnal.
All
developnent
system
software
and hardware
is
still
functional.
AIM-Z8~AE
systan
software
(AIMZ8~)
may
be
initialized
by
using
the
implied
rtm
conunand.
AIMZ8~
will
sign
on,
take
control
of
the
Target
system
and
allow
the
user
to
initialize
the
Target
systan
and
use
any
of
the
AIM-Z8~AE
conunands
to
load,
test
and debug
his
Target
program.

FIGURE
1.1
AI~Z80AE
SYSTEM

1-4
1.2
REFERENCES
MATRIX
Operation
manual,
MK79730
FLP-80DOS
Operation manual,
MK78557
Z80
DATA
BOOK,
MK79602
Z80
Micro Reference manual,
MK78516
Z80
programming manual,
MK78515
1.3
CONVENTIONS
The
following
conventions
apply
throughout
this
manual.
1.
Hexadecimal
input
to
the
system does
not
require
a
leading
numeric
digit
and cannot have a
subscript
H.
2.
(CR)
represents
carriage
Return.
3.
(LF)
represents
Line Feed.
4.
(UP)
represents
Upcaret
(ASCII
code 5EH).
5.
(SP)
represents
Space
bar.
6.
(.)
represents
period.
7.
Bracketed items []
in
a
command
line
are
optional.
8.
Items
in
a
command
line
which must be
entered
exactly
as
they
appear
are
shown
as
upper
case.
9.
Items
in
a
command
line
which
are
variables
are
shown
as
lower
case.
10.
Characters
in
a
command
line
which
are
entered
by
the
user
are
under-
lined.

1-5
11.
Signal
names
are
upper
case.
i.e.
the
signal
EXECl1I'ING.
12.
(ESC)
represents
the
ESCAPE
key
(ASCII
code
IBH).
13.
Characters
referenced
in
Text
are
enclosed
wi
th
double
quotes.
(i
.e.
when
the
character
"Y"
is
entered)
•
1.4
TERMINOLOOY
1.
Target.
'!he
Target
is
the
users
system
under
developnent.
When
using
A]M-Z80AE,
the
Target
CPU
is
contained
in
the
Buffer
module,
but
the
re-
mainder
of
the
Target
system
is
the
users
hardware.
'!he
Target
program
is
the
users
program
under
developnent.
2.
System. '!he System
refers
to
the
MOSTEK
disk-based
developnent
system
including
the
AIM-Z80AE
har:;dware. '!he System
software
includes
the
MOSTEK
disk-based
developnent
systems
software
as
well
as
the
AIM-Z80AE
software.
3.
Emulation
RAM.
'!he Emulation
RAM
is
the
16k
byte
(expandable
to
64k
byte)
dynamic
RAM
on
the
Control
module.
The
Emulation
Ram
can
be
map-
ped
to
any
address
in
the
Target
memory
map
and
is
normally
used
to
em-
ulate
PROM
or
ROM
which
will
eventually
contain
the
Target
program.
4.
Interface
RAM.
'!he
Interface
RAM
is
a
lk
byte
static
RAM
on
the
Control
module which
is
used
for
interface
between
the
system
and
the
Target.
This
RAM
can
be
accessed
only
by
the
system
and
is
loaded
with
the
interface
control
program. '!he
Interface
RAM
does
not
appear
in
the
Target
memory
map
when
the
Target
program
is
executed
or
examined,
but
is
shadowed
in
during
debug.
5.
Sampling.
'!his
refers
to
the
operation
of
the
History
module.
When
the
History
module
is
storin;J
bus
cycles
into
the
History
RAM,
it
is
sampling.

1.5
BUFFER
MODULE
The
Buffer
module
is
located
near
the
Target
system
and
contains
the
Target
Z810
microprocessor,
Target
adaptor
connector
and
interface
buffers.
cables
connect
the
Buffer
module
to
the
Control
and
History
modules
which
are
installed
in
the
development
system.
'I'he
Target
adapter
connector
is
attached
to
the
Buffer
module
with
eighteen
inches
of
flat
cable
and
plugs
directly
into
the
'rarget
Z810
CPU
socket.
There
are
five
test
sockets
available
on
the
edge
of
the
of
the
Buffer
module
with
the
following
signals.
rfEST
POINtf
SIGNAL
BLUE
FETCH
(Ml
for
first
opcode
of
instruction)
GREEN
PHI
(Z80
clock)
YELLCM
SHAM
(Active
when
Emulation
RAM
is
accessed)
RED
+5
VOLTS
BLACK
GND
The
signal
SHAM
is
an
active
high
signal
which becomes
active
when
the
I1nulation
RAM
is
accessed.
'rhis
si<.jnal may
be
used
to
reverse
the
direction
of
buffers
in
the
Target
system
so
that
RETI
(Return
from
Interupt)
instructions
executed
from
the
Einulation
RA!Vl
can
be
recognized
by
the
Target
system.
There
are
also
two
sets
of
nine
probes
designated
the
A and B which
plug
into
the
upper
left
corner
of
the
Buffer
module.
The
probes
are
color
coded
with
standard
EIA
color
codes
as
follows:
10
BLACK
1
BROtJN

1-7
2
RED
3
ORANGE
4
YELLCW
5
GREEN
6
BLUE
7
VIOLET
8
GREY
When
a
probe
is
referenced
in
this
manual
or
in
a
print
out,
P(for
Probe)
will
be
followed
by
ei
ther
A
or
B and
then
the
probe
nunber.
PB6
for
example
refers
to
the
blue
probe
of
the
B
set.
--
--
When
the
AIM-Z80AE
is
initialized,
the
control
signals
Ml,
MREQ,
RD
and
WR
are
disabled
to
the
Target
system.
'!he
signals
are
disabled
without
introducin:J
any
gli
tches
which
could
interfere
with
proper
dynamic
RAM
operation.
'!hese
control
signals
are
not
disabled
during
execution
from
the
Emulation
RAM
so
Z80
peripheral
devices
can
recognize
the
RETI
instruction
when
it
is
fetched
from
Emulation
RAM.
'!his
requires
that
the
user
disable
any
memory
in
the
Target
systan
from resfX)ndin:J
on
the
CPU
data
bus
when
Emulation
RAM
is
accessed.

1-8
FIGURE
1.2
BUFFER
MODULE

1-9
l.6
CONTROL
MODULE
The
Control
module
interfaces
to
the
development
system
bus
and
has
circuitry
for
detecting
the
breakpoint
conditions
and
forcing
execution
to
begin
in
the
System
Interface
RAM.
Connectors
Jl
and
J2
bring
the
Address,
Il:lta and
Control
signals
from
the
Target
Z80
CPU
in
the
Buffer
module.
Connector
J3
brings
the
hardware
breakpoint
signal
from
the
History
module.
The System
Interface
RAM
which
is
loaded
with
an
interface
program
is
shadowed
into
the
Target
memory
space.
This
control
program makes
the
Target
CPU
a
slave
to
the
development
system.
When
the
user
desires
to
resume
execution,
the
control
program
activates
the
execution
control
circuit
and
execution
resumes
at
the
desired
address.
'!he
memory
control
circuit
is
used
to
map
the
sixteen
k
byte
emulation
RAM
to
appear
at
any
address
in
the
Target
memory
space.

FIGURE
1.3
CONTROL
MODULE
Other manuals for z80
1
This manual suits for next models
1
Table of contents
Other Mostek Computer Hardware manuals
Popular Computer Hardware manuals by other brands

NEC
NEC N8151-106 Startup guide

DirectOut Technologies
DirectOut Technologies PRODIGY.MP user manual

Synology
Synology NAS RS822+ Hardware installation guide

Hauppauge
Hauppauge WinTV-PVR-250 Installation and reference manual

PRYME
PRYME BT-523 quick start guide

Protech Systems
Protech Systems BH-1105 Quick reference guide