forked from mist64/cbmsrc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lccutil.src
53 lines (53 loc) · 1021 Bytes
/
lccutil.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
.page 'lcc.util'
;
;
; * utility routines
;
;
errr ldy jobn ; return job code
sta jobs,y
;
lda gcrflg ; test if buffer left gcr
beq errr10 ; no
;
jsr wtobin ; convert back to binary
;
errr10
jsr trnoff ; start timeout on drive
;
ldx savsp
txs ; reset stack pointer
;
jmp top ; back to the top
;
;
;
turnon lda #$a0 ; turn on drive
; drvst=acel and on
sta drvst
;
;
lda dskcnt ; turn motor on and select drive
ora #$04 ; turn motor on
sta dskcnt
;
lda #60 ; delay 1.5 sec
sta acltim
;
rts
;
;
;
trnoff ldx cdrive ; start time out of current drive
lda drvst ; status=timeout
ora #$10
sta drvst
;
lda #255 ; 255*.025s time out
sta acltim
;
rts
;
;
;
;.end