Intel MCS-80/85 Computer Hardware User Manual


 
CRT
and Cassette Code (Cont'd)
IS
I 5-I I
8080/8085
ASSEMBLER,
\/1,
8
8085
SERIAL
I/O
NOTE
APPENDI:~
1100ULE
PAGE
4
LO(:
OB!
SEQ
SOURCE
STATEMENT
eS77
C2760S
102
.INZ
CO2
eS7A
25
le?
[iCP
H
e87B
C2760S
104
.JNZ
CO2
087E
7,7
8a7F
79
98se
1F
13881
4F
0882
as
0SS?
C26Fe8
e886
E1
98S7
C1
B888
FB
1.3889
C9
eeSA
F~:
e88B
E5
eS8C
et.09
088E
213
eB8F
B7
eS90
FA8Eee
13891
2ACP.;)3
e8?S
2[:'
13897
C29608
eS9A
25
e898
C2?~e:::
(!89E
28C82e
138Ft1
2[)
e8A2
e2A1es
1388£
CAi0:::
0889
213
aSA'!
:17
H:?AE:
135
eSAC
CABt:B8
eSAF
79
eSBe
lF
13881
4F
13882
1:10
!?~~e~:
r:?:?E!~8
i38Bf
E1
l3::::E?
FE'
08B:?
C9
1as
106
1137
1e8
1139
1113
111
112
lE
114
115
116:
I::IN
:117;
118
eIN
1!9
1.29
121
CIi.
122
122
124
125
C12
:126
127
128
:129
en
D3
CI4
121
.j
7'~'
154
1::6
1
:'9
141:1
141
14~
14:,
(15
144
14':.
146
STC
MOil
RAR
~10V
DCR
JNZ
POP
POP
EI
RH
H,
,~
C,R
e
COi
H
e
,:
SET
~IHflT
~HLL
EVENTUALLY
BECONE
A
STOP
BIT
,:
ROTATE
CHARACTER
RIGHT
ONE
BIT,
;
\,
MOVING
NEi<:T
r,ATA
BIT
!NTO
CARRY
,;
CHECK
IF
CHARACTER
(At-I[i
STOP
BIHS)
DONE
,:
IF
NOL
CdJTPlIT
ClJRRENT
CAF.:R'r'
,:
RESTORE
STATUS
AND
RETURN
CC!N';OL
INPUT
SUBROUTINE
HAITS
FOR
A
r::E'r'STROKE
AND
PET!JP.NS
~JIiH
:3
8ITS
IN
PEG
C
DI
PUSH
H
1'11l!
PIN
ORA
,TN
UU'
i'10'··:
PAP
1'10'·"
EI
REi
B,.
enSI
.:
C'AT"
BITS
TO
8E
REACt
(LAST
F.:ETURNED
IN
CY)
:
HAIT
FOR
s'me
BIT
TRANSITION
H
CIi
HALFBiT
L
.'
;·JAIT
UNTIL
MIOfU
OF
START
BIT
C!2
H
C!2
8 I
TT
Hlf
.;
HA
IT
OUT
BiT
TH'lf
L
l'!4
H
CI4
CIS
H
:
CHECr:
S
IL'
L
WE
LEVEL
:
C'PTA
BIT
IN
CY
.
CHERrmlE
IF
THIS
IS
FIRST
STOP
BIT
,:
! F
SO.'
JUt1P
OUT
OF
L.OOP
.
ELSE
~OT'lTE
INTO
PHHIHL
CHARACTER
IN
C
'ACe
HOLl'S
UP[iATEO
CtlARACTER
..
E(llJALI2ES
COUT
AND
CIN
LOOP
TH'lES
;
CHARAC
rEF.'
CO~lPLEiE
14"
: '!"+"H"H't':t-'r:t-:+ +",""n"r"'f'Ho:
f·H·+
..
h·~:·h
..
t:·i<:+·f:t':H':+
..
f*';t':H·f:n·t:'f.:n
>t:h;;-'+:ljo,'"
H:,t:!t';f.****:+::t:**'>j-.:i<·+:*
148
149
,;
THE'
FC'L.!..mm·jG
II)['E
IS
USEr',
E','
THE
CASSETTE
INTERFACE.
lSi!
'
SUE:RO!)TINES
TAFE'
AN['
THPEIN
ARE
USEC;
RESPECTIVELY
151
TO
OUTPUT
(IF
RECEI'.,.'E
AN
EI!3HT
Bli
!.WTE
(iF
[lRTA,
REGISTER
C
15::'
40LPS
T~E
DAT~
IN
EITHE;;'
CAS£:
~:EGi5TERS
M.,
E:.I
S.C
ARE
tiLL
OEST~:O'r'E(;.
1S:
rS!)·iO
FOI!
154
HALFC'r't"'
EC'U
nHCE
THE
Ni.i~lBER
OF
CYCLES
PER
TONE
BURST
(:OETEPf'HNES
TONE
FRmJENC~!
A1-51