home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
8bitfiles.net/archives
/
archives.tar
/
archives
/
genie-commodore-file-library
/
MusGraph
/
CG-VIEWER
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2019-04-13
|
768b
|
27 lines
10 POKE53280,0:POKE53281,0:PRINT"[147]"
11 PRINT:PRINT" COLOR GRAFIX VIEWER BY ANDY PRINCE"
15 PRINT:PRINT"ENTER FILE TO VIEW"
20 PRINT"-->";:OPEN1,0:INPUT#1,NA$:CLOSE1
25 PRINT:PRINT"PLEASE WAIT....";
30 OPEN3,8,0,"0:"+NA$+",S,R"
35 OPEN15,8,15
40 INPUT#15,A$,B$
42 A=VAL(A$)
43 IFA=0THEN100
45 IFA$="62"THENPRINT"[157][157][157][157][157][157][157][157][157][157][157][157][157][157][157]FILE NOT FOUND!":END
46 IFA<>64THEN75
50 IFA$="64"THENPRINT"[157][157][157][157][157][157][157][157][157][157][157][157][157][157][157]FILE TYPE MISMATCH!"
55 IFA$="64"THENPRINT"TRYING TO READ IT AS A PRG FILE..."
60 IFA$="64"THENCLOSE3:OPEN3,8,0,"0:"+NA$+",P,R"
65 IFA$="64"THENCLOSE15:OPEN15,8,15:INPUT#15,A$,B$
70 IFA$="62"THEN45
71 A=VAL(A$):IFA=0THEN100
75 PRINT:PRINT"DISK ERROR #";A$
100 PRINT"[147]":PRINT:PRINT" PRESS ANY KEY AFTER VIEWING"
101 GETA$:IFA$=""THEN101
105 GET#3,D$
110 IFST=>64THENCLOSE3:GOTO120
115 PRINTD$;:GOTO105
120 GETA$:IFA$=""THEN120
125 RUN