home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Light
/
Light_Vol.1_May_1992_Datasphere_Publications_Disk_1_of_2_Side_B.d64
/
cgsd.demo
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
2KB
|
57 lines
0 rem *********************************
1 rem * a basic demo program *
2 rem * bones *
3 rem *********************************
4 :
5 :
10 print"[147]please wait....loading data and machine code files";l+1
20 :
30 :
40 :
50 rem *** these are the lines of code *** you would use to load the
60 rem *** m/c proggy and the screen *** files (ramdisk), from disk..
70 :
75 :
80 l=l+1
90 ifl=1then load "cgsd.mc",8,1
100 ifl=2then load "ramdisk.chr",8,1
110 ifl=3then load "ramdisk.col",8,1
114 :
115 :
120 rem *** this line lowers the top of *** basic leaving 29345 bytes
125 rem *** of memory for basic proggy
130 :
140 poke 55,00:poke56,128:print"[147]29345 bytes for basic proggy"
145 forx=1to3000:next
150 :
155 :
160 rem *** these are quite simple lines *** of code to demonstrate how
170 rem *** you might use the m/c proggy *** and screenfiles within your
180 rem *** own basic programs.
190 :
200 bo=53280:ba=53281
210 x=1:b=15:a=0:gosub360:gosub440
220 x=2:b=8:a=0:gosub360:gosub440
230 x=3:b=6:a=10:gosub360:gosub440
240 x=4:b=6:a=15:gosub360:gosub440
250 forc=1to20
260 b=12:a=12:forx=5to7:gosub360:n=x:x=6:gosub450:x=n:nextx,c
270 x=8:b=8:a=9:gosub360:gosub440:gosub440
280 goto210
290 :
300 :
310 :
320 rem *** this subroutine pokes in the *** border/background colours.
330 rem *** it also pokes the screenfile *** value (x) into register 781
340 rem *** then calls the m/c routine *** to print it to the screen
350 :
360 pokebo,b:pokeba,a:poke781,x:sys53111:return
370 :
380 :
400 rem *** two delay loops, one for the *** file display and the other
410 rem *** slows down the animation *** sequence.
420 :
430 :
440 forde=1to4000:next:return: rem *** file display ***
450 forde=1to10:next:return: rem **** animation delay ***