Home » Personal collection » Commodore disks » disk42b_unlabelled.d64 » conversation
conversation
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
| Tape/disk: | Home » Personal collection » Commodore disks » disk42b_unlabelled.d64 |
| Filename: | conversation |
| Read OK: | ✔ |
| File size: | 0272 bytes |
| Load address: | 0801 |
| Exec address: | 0000 |
File contents
10 DIM W$(100)
20 GOSUB 1000
30 FOR W=0 TO R
40 IF W$(W)="IS" AND W<>0 AND W<>R THEN PRINTW$(W-1);"=";W$(W+1)
50 IF W$(W)="WAS" AND W<>0 AND W<>R THEN PRINTW$(W-1);"<";W$(W+1)
60 IF W$(W)="ARE" AND W<>0 AND W<>R THEN PRINTW$(W-1);"=";W$(W+1)
70 IF W$(W)="AM" AND W<>0 AND W<>R THEN PRINT"I=";W$(W+1)
80 NEXT
90 END
990 :
1000 GOSUB 2000
1010 IF LEN(R$)<2 THEN 1000
1020 W$="":R=0:FOR L=1 TO LEN(R$)
1030 IF MID$(R$,L,1)=" " THEN GOSUB1500
1040 IF ASC(MID$(R$,L,1))>48 THEN W$=W$+MID$(R$,L,1)
1050 NEXT
1060 GOSUB 1500
1070 RETURN
1500 W$(R)=W$:R=R+1:W$="":RETURN
1990 :
2000 REM GET STRING
2010 R$=""
2020 GET K$:IF K$="" THEN 2020
2030 IFASC(K$)=20ANDLEN(R$)>0THENR$=LEFT$(R$,LEN(R$)-1):PRINTCHR$(20);:GOTO2020
2040 IF ASC(K$)=13 THEN PRINT:RETURN
2050 IF ASC(K$)<32 THEN 2020
2060 R$=R$+K$:PRINTK$;:GOTO 2020
� W$(100) � 1000 ( � W�0 � R ^( � W$(W)�"IS" � W��0 � W��R � �W$(W�1);"=";W$(W�1) �2 � W$(W)�"WAS" � W��0 � W��R � �W$(W�1);"<";W$(W�1) �<