home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Rockford Magazine
/
Rockford_Magazine_004_19xx_-_de_Disk_1_of_2_Side_A.d64
/
b.2
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
2KB
|
57 lines
50 print"[147]lege cav und int disc ein!"
60 poke198,0:wat198,1
100 n$=na$:u=8:d=0
110 v=16: q=32: f=256: n$=left$(n$,v)
120 h$="0123456789abcdef": z$=chr$(0)
130 t$=right$(str$(d),1): open 1,u,15,"i"+t$: gosub 620
140 t$=t$+":"+n$: open 2,u,2,t$+",p,r"
150 input#1,e,m$,j,k: if e=0 then 240
160 close 1: close 2: print " file: ";n$;
170 if e=62 then print " not found": goto 200
180 if e=64 then print " not a program": goto 200
190 print " disk read-error";e: end
200 for j=1 to 2000: next: goto 90
210 j=int(c/v): k=c-j*v
220 m$=m$+mid$(h$,j+1,1)+mid$(h$,k+1,1)
230 return
240 get#2,a$,b$: if st then 190
250 close 2: close 1: m$=""
260 a=asc(a$+z$): b=asc(b$+z$)
270 c=b: gosub 210: c=a: gosub 210
290 cp=b*f+a
330 p=48640
340 b=int(p/f): a=p-b*f: p$=chr$(a)+chr$(b): m$=""
350 c=b: gosub 210: c=a: gosub 210
390 j=len(n$): if j=v then 410
400 for x=j+1 to v:n$=n$+chr$(160):next
410 open 1,u,15: open 2,u,2,"#"
420 gosub 620: t=18: s=1
430 print#1,"u1:";2;d;t;s: gosub 620
440 print#1,"b-p:";2;0: get#2,a$,b$
450 t=asc(a$+z$): s=asc(b$+z$): h=2
460 print#1,"b-p:";2;h: get#2,t$
470 c=asc(t$+z$): if c<>130 then 510
480 get#2,a$,b$: f$="": for x=1 to v
490 get#2,t$: f$=f$+t$: next
500 if f$=n$ then 530
510 h=h+q: if h<f then 460
520 goto 430
530 a=asc(a$+z$): b=asc(b$+z$)
540 print#1,"u1:";2;d;a;b: gosub 620
550 print#1,"b-p:";2;2: print#2,p$;
560 print#1,"u2:";2;d;a;b: gosub 620
570 close 2: gosub 620: close 1
580 open1,8,15,"s:b.3":close1:print"boulderlevel gespeichert."
590 input" noch ein level editieren";x$
600 if x$="j" then 1993
610 print "[147]";: end
620 input#1,e,m$,j,k:if e=0 then return
630 print " fehler: ";e;m$;j;k
640 close 2: close 1: end
1035 goto1020
1040 n$=gl$:return
1993 print"[147]lege programmdisc ein!"
1994 poke198,0:wait198,1
2000 poke828,0:print"[147]load"+chr$(34)+"boulderedit v1.0"+chr$(34)+",8,1":print"run"
2010 poke631,13:poke632,13:poke198,2:printchr$(19);:end