home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
8bitfiles.net/archives
/
archives.tar
/
archives
/
genie-commodore-file-library
/
C64Software
/
CADV3.ARC
/
%c5
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2019-04-13
|
694b
|
26 lines
1 GOTO16
2 GETA$:IFA$=""THEN10
3 IFA$>"/"ANDA$<":"THENSF=VAL(A$)-SS*(A$="0"):GOTO10
4 IFA$="[147]"THENSYS36888:GOTO10
5 IFA$="!"THENSYS36867:GOTO10
6 IFA$="="THENSYS36882:GOTO10
7 IFA$="&"THENSYS36879:GOTO10
8 IFA$=""THENSYS36885:GOTO10
9 A=USR(33),0:LOAD"CMND",D0
10 X=X+USR(121)*SF:Y=Y-USR(122)*SF
11 IFX>331THENX=331
12 IFX<12THENX=12
13 IFY>239THENY=239
14 IFY<40THENY=40
15 A=USR(34),X,Y,0:A=USR(34),16,Y,6:A=USR(34),X,231,7:RETURN
16 A=USR(32),0
17 GOSUB2:A=USR(117):IFA<>16THEN17
18 SYS36864:X1=X-12:Y1=Y-40:A=USR(34),X,Y,1:A=USR(32),1
19 A=USR(117):IFA<>0THEN19
20 GOSUB2:A=USR(117):IFA<>16THEN20
21 X2=X-12:Y2=Y-40:A=USR(34),X,Y,2:A=USR(32),2
22 A=USR(117):IFA<>0THEN22
23 IFY1>Y2THENX3=X2:X2=X1:X1=X3:Y3=Y2:Y2=Y1:Y1=Y3
24 A=USR(33),0:A=USR(33),1:A=USR(33),2
25 FORT=Y1TOY2:A=USR(67),X1,T,X2,T:NEXT:A=USR(32),0:GOTO16