-
Notifications
You must be signed in to change notification settings - Fork 85
/
Copy pathlcc.util
53 lines (53 loc) · 781 Bytes
/
lcc.util
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'
;
;
; * UTILIY 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