Zilog Z16C35 User Manual
Page 295

Application Note
Technical Considerations When Implementing LocalTalk Link Access Protocol
14-7
1
00000488
1186 ok:
00000488 21Wwww
1187
ld
hl,recerrflg
;fetch receive error flag
0000048b cb8
1188
res
1,(hl)
;set bit1=0 for frame ok
1189
1190
0000048d
1191 crc_exit:
0000048d dbe9
1192
in
a,(scc_data)
;read 2nd crc (debug only) and
0000048f 2aWwww
1193
ld
hl,(rxpointer)
;load pointer
00000492 2b
1194
dec
hl
;adjust rx buff ptr for crc1
00000493 2b
1195
dec
hl
;adjust rx buff ptr for crc2
00000494 22Wwww
1196
ld
(rxpointer),hl
;
1197
00000497
1198 spexit:
00000497 3e38
1199
ld
a,038h
00000499 d3e8
1200
out
(scc_cont),a
;reset highest ius
1201
0000049b e1
1202
pop
hl
;restore hl
0000049c c1
1203
pop
bc
;restore be
0000049d f1
1204
pop
af
;restore af
0000049e fb
1205
ei
;enable int
0000049f c9
1206
ret
;return from int
1207
Page 289 of 316
UM011002-0808