home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Transactor
/
Transactor_27_1988_Transactor_Publishing.d64
/
shellram.sda
/
CSTART
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
812b
|
34 lines
10 rem f$="cstart":open1,8,15,"s0:"+f$:close1:savef$,8
20 if s then end
30 if a then 210
70 :
80 gosub 360: if a=0 then 320
130 print "initialize ram disk n[157][157][148]";: input a$
140 : f=0: if left$(a$,1)="y" then f=1
150 :
200 load "ramdos??????.bin",8,1
210 :
211 sys 25356 : rem print embedded copyright notice
213 :
220 sys 65418
230 :
240 rem set ramdisk unit# (u) and interface page (p) (note 22=$1600)
250 poke 780,9: poke 781,22 : rem lda #9: ldx #$16
260 :
270 rem install ramdisk to specified extent
280 sys 25350-3*(f=0)
290 :
300 if f=0 then d=9: print" exec profile"
310 if f<>0 then d=8: print" exec startup"
330 print"[145][145]";:poke 631,13: poke 632,13: poke 198,2
340 s=1:load"shellram",d,1
350 :
360 rem verify presence of ram card
370 r=57088:a=0
380 poke r,0:ifpeek(r)=0 then 420
390 forv=2to5:poker+v,v:next
400 a=1:forv=2to5:ifpeek(r+v)<>vthena=0
410 next
420 if a=0 then print" ram expander not present"
430 return