home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Carousel Volume 2 #1
/
carousel.iso
/
comdore
/
64music
/
ben.sal
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
1989-01-22
|
3KB
|
27 lines
100 PRINT CHR$(147):PRINT " SIDPLAYER SINGALONG SONG DISSOLVER"
110 PRINT " BY CRAIG CHAMBERLAIN 5/10/86":PRINT:SP=783
130 WR=3051:A=WR+67:L=PEEK(A):FOR K=1 TO L:F$=F$+CHR$(PEEK(A+K)):NEXT:A=A+K
140 ML=PEEK(A)+256*PEEK(A+1):MA=A+2:A=MA+ML:WL=PEEK(A)+256*PEEK(A+1):WA=A+2
150 A=WA+1
155 P=PEEK(A):IF P<>34 THEN T$=T$+CHR$(P):A=A+1:GOTO 155
300 PRINT " THIS PROGRAM WRITES TO DISK":PRINT " THE MUSIC AND WORD FILES FOR
305 [153] " THE FOLLOWING SINGALONG SONG:":[153]
310 [153] " " T$:[153]
320 [153] " INSERT A DISK TO RECEIVE":[153] " THE MUSIC AND WORD FILES,
325 PRINT " AND PRESS ANY KEY":PRINT
330 POKE 198,0:WAIT 198,15:GET G$
500 OPEN 2,8,15,"I0:":INPUT#2,A,B$,C,D:IF A GOTO 710
510 PRINT " WRITING " F$ ".MUS":PRINT:PRINT#2,"S0:"+F$+".MUS"
515 INPUT#2,A,B$,C,D:IF A>2 GOTO 710
520 OPEN 1,8,2,F$+".MUS,W,P":INPUT#2,A,B$,C,D:IF A GOTO 710
530 SYS WR,MA,MA+ML:IF PEEK(SP)AND1 GOTO 700
540 CLOSE 1:INPUT#2,A,B$,C,D:IF A GOTO 710
550 PRINT " WRITING " F$ ".WDS":PRINT:PRINT#2,"S0:"+F$+".WDS"
555 INPUT#2,A,B$,C,D:IF A>2 GOTO 710
560 OPEN 1,8,2,F$+".WDS,W,P":INPUT#2,A,B$,C,D:IF A GOTO 710
570 SYS WR,WA,WA+WL:IF PEEK(SP)AND1 GOTO 700
580 CLOSE 1:INPUT#2,A,B$,C,D:IF A GOTO 710
590 CLOSE 2:END
700 INPUT#2,A,B$,C,D
710 PRINT " ERROR: " B$:CLOSE 1:CLOSE 2:END