NorthStar HSIO-4 User's & Technical Manual page 54

Horizon serial input/output four port
Table of Contents

Advertisement

005A
005A
005A
005A
005A
CD0000
005D
C5
005E
0600
0060
3E10
0062
CD 910 0
0065
3E16
0067
CD9100
10F4
006A
006C
Cl
006D
006D
3E10
006F
CD9100
3E02
0072
0074
CD9100
0077
0077
0077
7E
0077
0078
CD9100
007B
3E10
007D
EDA1
007F
CC9100
EA7700
0082
0085
CD9100
0088
3E03
008A
CD9100
008D
CD 0 0 0 0
0090
C9
0091
0091
F5
DB13
0092
0094
E601
0096
28FA
0098
FI
0099
D312
009B
C9
009C
009C
North Star HSIO-4
Synchronous output routine
Outputs BC characters starting at address in HL
CALL
INIT
SYNO
PUSH
B
B, 0
MV I
A, DLE
HE ADR
MV I
CALL
OPCH
A, SYN
MV I
CALL
OPCH
DJNZ
HEADR
POP
B
t
MV I
A,DLE
CALL
OPCH
MV I
A, STX
CALL
OPCH
/
; Transfer message contents
f
NCHO
MOV
A,M
CALL
OPCH
MV I
A,DLE
C P U
i
CZ
OPCH
JPE
NCHO
OPCH
CALL
MV I
A, ETX
CALL
OPCH
CALL
INIT
RET
/
t
PUSH
PSW
OPCH
WTX
IN
CTRL
AN I
TXRDY
JRZ
WTX
PSW
POP
OUT
DATA
RET
f
END
Reset USART
Save byte count
Send 255 DLE-SYNCs
before message
Restore byte count
Send message header of
DLE STX
Output byte of data
DLE for comparison
Check if char was DLE and count
Output second DLE if it was
Loop till done
Output DLE from A
Send End of text
Stop SYNC characters
Return to calling program
Output Character
Get USART status
Check if ready for character
Wait till it is
Get character back and
output
User/Technical Manual
49

Advertisement

Table of Contents
loading

Table of Contents