-
Notifications
You must be signed in to change notification settings - Fork 85
/
romsf.src
48 lines (39 loc) · 934 Bytes
/
romsf.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
.page
.subttl 'romsf.src'
*=rom ; +$300 rom patch area
cchksm *=*+1 ; <<<<< TO BE DETERMINED
.byte '(C)1985 COMMODORE ELECTRONICS LTD., ALL RIGHTS RESERVED'
ptch0a and #$ff-3
ora tmp
sta dskcnt
ptch0b lda pcr2 ; disable SO
and #$ff-2
sta pcr2
rts
; track cutoffs
trackn .byte 41,31,25,18
worktable ; table of track densities extras for those who address tracks > 35
.byte $60,$60,$60,$60,$60,$60,$60,$60,$60,$60
.byte $60,$60,$60,$60,$60,$60,$60
.byte $40,$40,$40,$40,$40,$40,$40
.byte $20,$20,$20,$20,$20,$20
.byte $00,$00,$00,$00,$00
.byte $00,$00,$00,$00,$00,$00
ptch0c sta cmd ; save off cmd for DOS
pha
lda #1 ; trk one
sta hdrs,x
pla
rts ; return
ptch0d sei ; no irq's
lda pcr2
ora #$0e
sta pcr2 ; enable SO
jsr jclear ; clear track (val in .x)
jsr kill ; disable write
lda pcr2
and #$ff-$0e
sta pcr2 ; disable SO
cli
rts
*=rom+256 ; c0 patch space