-
Notifications
You must be signed in to change notification settings - Fork 85
/
vector.src
76 lines (73 loc) · 2.27 KB
/
vector.src
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
.page vector
echksm .byte $3e ; $e-$f checksum
nmi jmp (vnmi)
;---------------------------------------------------
pea7a sta ledprt ; patch for power-on errors
sta ledout ; turn ddrb to output
jmp rea7d ; return to led blink code
;
;---------------------------------------------------
; patch area for 1541 disk with slow serial receive
;
slowd txa ; only affect .a
ldx #5 ; insert 40us of delay with this routine
slowe dex
bne slowe
tax
rts
;---------------------------------------------------
;
clkdat jsr clklow ; new clock low and...
jmp dathi ; data hi for patch area
;
;---------------------------------------------------
nnmi lda cmdbuf+2 ; new nmi routine check for
cmp #'-'
beq nnmi10 ; if ui- then no delay
sec
sbc #'+'
bne nmi ; if not ui+ then must be a real ui command
nnmi10 sta drvtrk+1
rts
;---------------------------------------------------
; patch 5 *rom-05 8/18/83*
;---------------------------------------------------
;clock line hi on pwr on
;
patch5 stx ddra1 ; set direction
lda #$02 ; set clock high
sta pb
lda #$1a ; set ddra reg b
sta ddrb1
jmp dkit10 ; return
;---------------------------------------------------
; patch 6 *rom-05 8/18/83*
;---------------------------------------------------
;fix eoi timing to wait all devices
;
patch6 lda pb ; test data line
and #$01 ; every one rdy ?
bne patch6
lda #$01 ; wait 255 usec
sta t1hc1 ; set timer
jmp acp00 ; return
;----------------------------------------------------
;
;default table for user command
;
*= $ffe6
.word format
.word trnoff
ublock .word ublkrd
.word ublkwt
.word $0500 ; links to buffer #2
.word $0503
.word $0506
.word $0509
.word $050c
.word $050f
*= $fffa
.word nnmi ; goto new nmi routine
.word dskint
.word sysirq
; .end