-
Notifications
You must be signed in to change notification settings - Fork 85
/
i_odef.sf
60 lines (60 loc) · 1.51 KB
/
i_odef.sf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
.PAGE 'I/ODEF.SF'
;*****************************
;* I/O DEFINITIONS *
;*****************************
;
UNLSN =$3F ; IEEE UNLISTEN COMMAND
UNTLK =$5F ; IEEE UNTALK COMMAND
NOTRDY =$0 ; NOT READY
TALKER =$80 ; IEEE TALKER FLAG
LISNER =1 ; IEEE LISTENER FLAG
EOIOUT =$80 ; TALK WITH EOI
EOISND =$08 ; NOT(EOI) TO SEND
EOI =$08 ; NOT(EOI) TO SEND
RDYTLK =$88 ; TALK NO EOI
RDYLST =$1 ; READY TO LISTEN
RNDRDY =RDYTLK+RDYLST ; RANDOM CHNRDY
RNDEOI =EOIOUT+RDYLST ; RANDOM W/ EOI
.SKI 3
;I/O REGISTERS
.SKIP
; MOS 6522-A
.SKI
* =$1800
;IEEE CONTROL PORT
PB *=*+1 ; SERIAL PORT
PA1 *=*+1 ; UNUSED PORT
DDRB1 *=*+1
DDRA1 *=*+1 ;IEEE DATA DIR
T1LC1 *=*+1 ; TIMER 1 LOW COUNTER
T1HC1 *=*+1 ; TIMER 1 HI COUNTER
T1LL1 *=*+1 ; TIMER 1 LOW LATCH
T1HL1 *=*+1 ; TIMER 1 HI LATCH
T2LC1 *=*+1 ; TIMER 2 LOW COUNTER
T2HC1 *=*+1 ; TIMER 2 HI COUNTER
SR1 *=*+1 ; SHIFT REG
ACR1 *=*+1 ; AUX CONTROL REG
PCR1 *=*+1
IFR1 *=*+1
IER1 *=*+1
POTA1 *=*+1 ; BIT 0: TRACK 0 SENSE, 1=TRK0
;
;
;
; BITS FOR SERIAL HANDSHAKE
;
DATIN =$1 ;DATA IN LINE
DATOUT =$2 ; DATA OUT
CLKIN =$4 ;CLOCK IN
CLKOUT =$8 ;CLOCK OUT
ATNA =$10 ;ATNA ACK
ATN =$80 ; ATN IN
;
;
LED0 =8 ; ACT LED
LED1 =0 ; NO LED
LEDPRT=$1C00 ; ON PB OF $1C00
LEDOUT=$1C02 ; DDRB OF $1C00 FOR OUTPUT-LED
;
;
.END