home *** CD-ROM | disk | FTP | other *** search
/ Commodore Disk User Volume 4 #5 / Commodore_Disk_User_Vol.4_5_1991_-.d64 / prob2 (.txt) < prev    next >
Commodore BASIC  |  2022-10-26  |  1KB  |  33 lines

  1. 10 rem  ********************************
  2. 20 rem  *   installation program for   *
  3. 30 rem  *         autoboot 128         *
  4. 40 rem  *                              *
  5. 50 rem  * cdu techno info - j.r. finch *
  6. 60 rem  ********************************
  7. 70 :
  8. 100 poke53280,14:poke53281,6:print"[147]insert cdu disk (volume 3, number 11)"
  9. 110 print"into drive with device number eight,"
  10. 120 print"and then press 'return' to continue.":poke198,0
  11. 130 geta$:ifa$<>chr$(13)then130
  12. 140 print"searching for autoboot file...":open15,8,15,"i0":open2,8,0,"autoboot 128"
  13. 150 input#15,e,e$:ifethenprint"disk error:":printe$:close2:close15:end
  14. 160 print"[145]autoboot file found. reading info...":get#2,a$,a$:fori=0to253:get#2,a$
  15. 170 poke49152+i,asc(a$+chr$(0)):next:close2:input#15,e,e$
  16. 180 ifethenprint"disk error:":printe$:close15:end
  17. 190 print"[145]all information read.                  "
  18. 200 print"please insert disk onto which you want"
  19. 210 print"the autoboot block to be written, and"
  20. 220 print"press 'return' to check block status.":poke198,0
  21. 230 geta$:ifa$<>chr$(13)then230
  22. 240 print#15,"i0":print#15,"b-a:8 1 0":input#15,e,e$:ife=0then280
  23. 250 ife<>65thenprint"disk error:":printe$:close15:end
  24. 260 print"sorry, can't continue!!":print"the autoboot block on this disk has"
  25. 270 print"already been written on by another":print"program!!!":close15:end
  26. 280 print"autoboot block is free. writing info...":open8,8,8,"#"
  27. 290 print#15,"b-p:8 0":fori=0to253:print#8,chr$(peek(49152+i));:next:close8
  28. 300 input#15,e,e$:ife<>0thenprint"disk error:":printe$:close15:end
  29. 310 print"success!!![146] - but don't validate the disk"
  30. 320 print"if you do then the d.o.s. will think"
  31. 330 print"that the autoboot block can be used and"
  32. 340 print"it may write another file over the info!":end
  33.