home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
64'er Special 19
/
64er_Magazin_Sonderheft_19_19xx_Markt__Technik_de.d64
/
fill-muster-edi
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
4KB
|
121 lines
0 rem fill-muster-editor
1 rem (c) 1987 by stephan thelen
2 rem postfach 1965 5040 bruehl
3 rem ruf 02232/24012
4 rem *** bildschirm/variablen init ****
5 poke53281,0:poke53280,0:poke646,1
10 printchr$(142)chr$(8)"[147] hires - master ";
15 t$="0123456789abcdef"
20 print" fill - muster editor "
30 fori=1to16:print"[158] ................":next:x=1:y=1:poke1149,43:ma=46:tx=1
35 print"[156] [167][165] [167][165] [167][165] ":ty=1
40 print"";tab(23);" befehle: [146]"
41 printtab(23);"steuerung:cursor"
42 printtab(23);" tasten"
43 printtab(23);"punkt setzen:' '"
45 printtab(23);"mehr befehle: b [146]"
46 printtab(23);"e[146] ende "
47 printtab(23);",[146] zeilenanfang "
48 printtab(23);".[146] zeilenende "
49 printtab(23);"d[146] datenausgabe "
50 printtab(23);"x[146] x-tab setzen "
51 printtab(23);"y[146] y-tab setzen "
52 printtab(23);"a[146] x-tab springen"
53 printtab(23);"b[146] y-tab springen"
54 printtab(23);"z[146] & s[146] : "
55 printtab(23);"normal :loeschen"
56 printtab(23);"<shift>:setzen "
57 printtab(23);"<c=> :invert. "
98 :
99 rem **** steuer-tastatur-abfrage ****
100 a$="":poke198,0:wait198,1:geta$
104 ifa$<>""then130
105 ifx=16andy=16thengosub1000:x=1:y=1:goto500
110 ifx=16thengosub1000:x=1:y=y+1:goto500
120 ifx<16thengosub1000:x=x+1:goto500
130 ifa$="b"thenpoke53280,2:goto1900
135 ifa$<>"[157]"then165
150 ifx=1andy>1thengosub1000:x=16:y=y-1:goto500
160 ifx>1thengosub1000:x=x-1:goto500
165 ifa$<>""then185
170 ify=16thengosub1000:y=1:goto500
180 ify<16thengosub1000:y=y+1:goto500
185 ifa$<>"[145]"then202
190 ify=1thengosub1000:y=16:goto500
200 ify>1thengosub1000:y=y-1:goto500
202 ifa$<>" "then499
203 ifx=16andma=81andy=16thengosub1000:x=1:y=1:ma=46:goto500
204 ifx=16andma=46andy=16thengosub1000:x=1:y=1:ma=81:goto500
205 ifx=16andma=46thengosub1000:x=1:y=y+1:ma=81:goto500
210 ifx=16andma=81thengosub1000:x=1:y=y+1:ma=46:goto500
215 ifma=46thengosub1000:x=x+1:ma=81:goto500
220 ifma=81thengosub1000:x=x+1:ma=46:goto500
499 a$="":goto100
500 mn=peek(1108+x+y*40):poke1108+x+y*40,43:poke1108+xa+ya*40,ma:a$="":ma=mn
510 goto100
998 :
999 rem *** uprog x -> xa y -> ya *****
1000 xa=x:ya=y:return
1897 :
1898 rem **** zusaetzliche befehle ****
1900 print" befehlseingabe[146]"
1950 poke198,0:wait198,1:geta$
2000 ifa$<>"[147]"then2010
2005 x=1:y=1:gosub1000:print"":fori=1to16:print"[158]................":next
2006 ma=43:goto2600
2010 ifa$=""thengosub1000:x=1:y=1:goto2600
2020 ifa$="e"theninput"wirklich beenden";f$:iff$="j"thenend
2025 print" ":f$=""
2030 ifa$=","andx<>1thengosub1000:x=1:goto2600
2040 ifa$="."andx<>16thengosub1000:x=16:goto2600
2050 ifa$="z"thenforj=0to15:poke1109+y*40+j,46:next:j=0:ma=46:goto2700
2051 ifa$="[218]"thenforj=0to15:poke1109+y*40+j,81:next:j=0:ma=81:goto2700
2052 ifa$<>"[173]"then2059
2053 forj=0to15:ifpeek(1109+y*40+j)=46thenpoke1109+y*40+j,81:goto2055
2054 ifpeek(1109+y*40+j)=81thenpoke1109+y*40+j,46
2055 next:j=0:ifma=46thenma=81:goto2700
2056 ifma=81thenma=46:goto2700
2058 ifa$="s"thenforj=1to16:poke1109+j*40+x-1,46:next:j=0:ma=46:goto2700
2059 ifa$="[211]"thenforj=1to16:poke1109+j*40+x-1,81:next:j=0:ma=81:goto2700
2060 ifa$="x"thentx=x:print" ":poke1108+x,93:goto2700
2061 ifa$<>"[174]"then2070
2062 forj=1to16:ifpeek(1109+j*40+x-1)=46thenpoke1109+j*40+x-1,81:goto2065
2063 ifpeek(1109+j*40+x-1)=81thenpoke1109+j*40+x-1,46
2065 next:j=0:ifma=46thenma=81:goto2700
2066 ifma=81thenma=46:goto2700
2070 ifa$="y"thenty=y:forj=1to17:poke1107+j*40,96:next:j=0:poke1107+y*40,64:goto2700
2080 ifa$="a"andx<>txthengosub1000:x=tx:goto2600
2090 ifa$="b"andy<>tythengosub1000:y=ty:goto2600
2100 ifa$=chr$(13)thengosub1000:x=1:y=y+1:goto2600
2110 ifa$<>"i"then2400
2114 :
2115 rem *** befehl ' invertieren ' ****
2120 poke1108+x+y*40,ma
2130 fori=1to16
2140 forj=1to16
2150 ifpeek(1108+i+j*40)=46thenpoke1108+i+j*40,81:goto2170
2160 ifpeek(1108+i+j*40)=81thenpoke1108+i+j*40,46
2170 next
2180 next
2190 ifma=46thenma=81:goto2210
2200 ifma=81thenma=46
2210 a$="":goto105
2398 :
2399 rem *** datenberechnung ****
2400 ifa$<>"d"then2500
2404 print" datenberechnung[146][145][145][145]"
2405 poke1108+x+y*40,ma:w=0
2410 forz=1to16
2412 :forc=0to3
2414 : fors=1to4
2416 : ifpeek(1108+z*40+c*4+s)=81thenw=w+2^(4-s)
2418 :
2420 : next:te$=mid$(t$,w+1,1):s$=s$+te$:printte$;:w=0:te$=""
2422 :next
2424 next:s$=""
2425 poke1108+x+y*40,43
2500 print" ":poke53280,0:goto100
2600 print" ":poke53280,0:goto500
2700 print" ":poke53280,0:a$="":goto110
9999 print"[147]"chr$(9):poke53280,0:poke646,1:list2100-2299