home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
8bitfiles.net/archives
/
archives.tar
/
archives
/
genie-commodore-file-library
/
C64Toolkit
/
DOSIT54.ARC
/
LOCK
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2019-04-13
|
1KB
|
54 lines
100 REM:LOCK/UNLOCK
110 :
290 DI=18:AB=19
295 PRINT"[147]":POKE53265,27
300 PRINT"[147]"TAB(10)"*** LOCK - UNLOCK[146] ***"
310 INPUT"L[146]OCK OR U[146]NLOCK L[157][157][157]";C$
320 C$=LEFT$(C$,1):AK$=CHR$(34)
330 IFC$<>"L"ANDC$<>"U"THEN300
340 PRINT"[145]";TAB(16);:OS=0
350 IFC$="L"THENAC$="LOCK":PRINTAC$:OS=64:GOTO370
360 AC$="UNLOCK":PRINTAC$
370 O1=64-OS
380 INPUT"WHICH FILE *[157][157][157]";F$
390 IFF$="*"THENPRINT"[145][145]";:GOTO380
400 D=0
420 INPUT"TYPE OF FILE PRG[157][157][157][157][157]";TY$
430 TY=128-(TY$="SEQ")-2*(TY$="PRG")-3*(TY$="USR")-4*(TY$="REL")
450 IFTY=128THENPRINT"[145]";:GOTO420
460 :
490 OPEN15,8,15:NL$=CHR$(0):N$=F$
500 OPEN2,8,2,"#":GET#2,A$
540 PRINT"LOOK FOR "TY$" FILE "AK$F$AK$
560 FORS=1TOAB
600 PRINT#15,"U1:";2;0;DI;S
610 FORI=0TO7
620 PRINT#15,"B-P:";2;(2+32*I)
630 GET#2,FT$
640 IFFT$=""THENFT$=NL$
650 FT=ASC(FT$):IFFT<>TY+O1THEN770
690 H$="[160][160][160][160][160][160][160][160][160][160][160][160][160][160][160][160]":F$=LEFT$(F$+H$,16)
700 PRINT#15,"B-P:";2;(5+32*I)
710 W$=""
720 FORQ=1TO16
730 GET#2,A$:IFA$=""THENA$=NL$
740 W$=W$+A$
750 NEXTQ
760 IFF$=W$THEN800
770 NEXTI
780 NEXTS:PRINT""TY$" FILE "AK$N$AK$" NOT FOUND[146]":GOTO940
800 PRINT"FOUND: "AK$N$AK$" ,"AC$
840 I1=I:S1=S
890 PRINT#15,"B-R:";2;0;DI;S1
900 PRINT#15,"B-P:";2;(2+32*I1)
910 PRINT#2,CHR$(TY+OS);
920 PRINT#15,"U2:";2;0;DI;S1
940 CLOSE2:CLOSE15
1000 GETWE$:PRINT"[145][145]INSERT DOSIT V5.0 DISK AND PRESS ANY KEY":IFWE$=""THEN1000
1005 PRINT"[147]"
1010 PRINT""
1015 POKE53265,11
1020 PRINT"LOAD"+CHR$(34)+"DOSIT5.0" +CHR$(34);:PRINT",8,1[145][145][145]"
1040 POKE631,13:POKE632,82:POKE633,85:POKE634,78:POKE635,13:POKE198,5
2000 END