home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
64'er 1993 January
/
64er_Magazin_93-01_1993_Markt__Technik_de.d64
/
zs-editor
(
.txt
)
< prev
Wrap
Commodore BASIC
|
2022-10-26
|
907b
|
50 lines
120 poke56334,0
130 poke1,peek(1) and 251
140 for t=0 to 2048
150 : poke 12288+t,peek(53248+t)
160 next
170 poke1,peek(1) or 4
180 poke56334,1
210 poke 53280,0:poke 53281,0:poke646,7
220 print chr$(147)
260 char=12288
320 print"[176][195][195][195][195][195][195][195][195][174]"
330 for t=1 to 8
340 : print"[221]--------[221]"
350 next
360 print"[173][195][195][195][195][195][195][195][195][189]"
400 poke 53248+24,28
450 a=a*8
460 for y=0 to 7
470 : for x=0 to 7
480 : if (peek(char+a+y)and2^(7-x))>0then poke 1105+y*40+x,42:goto500
490 : poke 1105+y*40+x,45
500 : next
520 next
530 x=0:y=0
531 p=1105+y*40+x
532 pokep,peek(p)+128:pokep,peek(p)-128
533 poke1324,a/8
540 geta$
550 ifa$=""thenify<7theny=y+1:goto531
560 ifa$="[145]"thenify>0theny=y-1:goto531
570 ifa$=""thenifx<7thenx=x+1:goto531
580 ifa$="[157]"thenifx>0thenx=x-1:goto531
590 ifa$=" "thengosub800
600 ifa$="+"thenifa<2042thena=a+8:goto460
610 ifa$="-"thenifa>7thena=a-8:goto460
620 ifa$="s"thengoto900
700 goto532
800 b=2^(7-x)
805 pz=peek(char+a+y)
810 if(pzandb)>0thenpoke(char+a+y),pz-b:pokep,45:goto830
820 poke(char+a+y),pz+b:pokep,42
830 return
900 open1,8,2,"zsatz,p,w"
910 print#1,chr$(01);chr$(08)
920 fora=12288to14335
930 : print#1,chr$(peek(a));
940 nexta
950 close1
960 end