home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Go64!
/
Go64_1997-09_1997_CSW_Side_B.d64
/
sweet dreams.msw
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
5KB
|
35 lines
100 print chr$(147):print " sidplayer song, words,
105 [153] " and stereo dissolver
110 print " by chamberlainNoglesby 8/87":print:sp=783:dn=8
130 wr=3290:wu=wr+70:a=wu+77
135 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 pa=wa+wl: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, word, and stereo
305 [153] " files for the following song:":[153]
310 [153] " " t$:[153]
320 [153] " insert a disk to receive the
325 print " music, word, and stereo files,":print " and press any key":print
330 poke 198,0:wait 198,15:get g$
400 open 2,dn,15:input#2,a,b$,c,d:if a goto 710
410 print " writing " f$ ".mus"
420 open 1,dn,2,f$+".mus,w,p":input#2,a,b$,c,d:if a goto 710
430 sys wr,ma,ma+ml:if peek(sp)and1 goto 700
440 close 1:input#2,a,b$,c,d:if a goto 710
510 print " writing " f$ ".wds"
520 open 1,dn,2,f$+".wds,w,p":input#2,a,b$,c,d:if a goto 710
530 sys wr,wa,wa+wl:if peek(sp)and1 goto 700
540 close 1:input#2,a,b$,c,d:if a goto 710
560 print " writing " f$ ".str"
570 open 1,dn,2,f$+".str,w,p":input#2,a,b$,c,d:if a goto 710
580 sys wu,pa:if peek(sp)and1 goto 700
590 close 1:input#2,a,b$,c,d:if a goto 710
600 print:print " scratch " f$ ".msw? ";
610 wait 198,15:get g$:if g$="n" then print "no":goto 690
620 if g$<>"y" goto 610
630 print "yes":print#2,"s0:"+f$+".msw":input#2,a,b$,c,d:if a>1 goto 710
690 close 2:end
700 input#2,a,b$,c,d
710 print:print " error: " b$:close 1:close 2:end