home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
64'er 1991 June
/
64er_Magazin_91-06_1991_Markt__Technik_de.d64
/
diskmonitor
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
2KB
|
53 lines
0 rem diskmonitor von johannes timmer tel. 02821/48154
1 forz=49152to49335:reada:pokez,a:next
3 open1,8,15:print"[155][147]":poke53281,0:poke53280,0:t=18:gosub40
10 gosub90:ifa=17thener=80:gosub30
11 ifa=145thener=0:gosub30
12 ifa$="t"theninput"track";t:gosub31:a$="s"
13 ifa$="s"theninput"sector";s:gosub31
14 b=peek(49408):ifa$="n"andb>0andb<44thent=peek(49408):s=peek(49409):a$="r"
15 ifa$="r"thengosub40
16 ifa$="w"thenls=144:gosub20:print:gosub33
17 ifa$="m"thengosub50
19 goto10
20 print#1,"m-w"chr$(6)chr$(0)chr$(2)chr$(t)chr$(s)
22 print#1,"m-w"chr$(0)chr$(0)chr$(1)chr$(ls)
24 print#1,"m-r"chr$(0)chr$(0)chr$(1):get#1,a$:f=asc(a$):iff>127goto24
25 iff=11thenprint#1,"i":goto20
26 return
30 print"";:poke2,er:sys49213:print
31 print"[145] "
33 print"track:"t"[157] sector:"s"[157] error:"f"[157] "
34 print"read, write, modify, next[145][145][145]":return
40 ls=128:gosub20:print#1,"m-r"chr$(0)chr$(3)chr$(0):sys49152:gosub30:return
50 poke182,y:poke189,x*3+4:ifm=1thenpoke189,x+30
51 sys49174:sys49204:gosub90:b=aand127:sys49204
52 ifa=13thengosub30:return
53 ifm=1andb>31andb<91thenpoke189,x*3+4:sys49174:poke780,a:sys49316:gosub65
54 ifm=0and((a>47anda<58)or(a>64anda<71))thengosub60
55 ifa=29thenx=x+1:ifx>7thenm=1-m:x=0
56 ifa=157thenx=x-1:ifx<0thenm=1-m:x=7
57 ifa=17theny=y+1:ify>21theny=21:ifer=0thener=80:y=12:gosub30
58 ifa=145theny=y-1:ify<0theny=0:iferthener=0:y=9:gosub30
59 goto50
60 printa$;:ifa>64thena=a-7
61 b=(a-48)*16:sys49204
62 gosub90:ifnot((a>47anda<58)or(a>64anda<71))goto62
63 sys49204:printa$;:ifa>64thena=a-7
64 a=b+(a-48)
65 b=x+y*8+er:poke49408+b,a:print#1,"m-w"chr$(b)chr$(3)chr$(1)chr$(a)
66 poke189,x+30:sys49174:b=aand127:ifb<32thena=46
68 printchr$(a):a=0:x=x+1:ifx>7thenx=0:a=17
69 return
90 geta$:ifa$thena=asc(a$):return
91 goto90
200 data162,1,32,198,255,162,0,32,62,241,157,0,193,232,208,247,162,1,32,204,255
201 data96,169,19,32,210,255,169,17,166,182,240,6,32,210,255,202,208,250,169,29
202 data166,189,240,6,32,210,255,202,208,250,96,164,211,177,209,73,128,145,209
203 data96,165,2,141,0,194,173,0,194,170,24,105,8,141,1,194,138,32,164,192,169
204 data32,32,210,255,189,0,193,32,164,192,232,236,1,194,208,244,174,0,194,169
205 data32,32,210,255,32,210,255,189,0,193,168,41,127,201,32,176,4,169,46,208,1
206 data152,32,210,255,232,236,1,194,208,232,169,13,32,210,255,173,1,194,141,0
207 data194,56,229,2,201,176,144,172,96,24,105,48,201,58,144,2,105,6,32,210,255
208 data96,168,74,74,74,74,32,151,192,152,41,15,32,151,192,169,32,32,210,255,96