Home » CEEFAX disks » telesoftware16.adl » 25-06-89/CardInd

25-06-89/CardInd

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 » CEEFAX disks » telesoftware16.adl
Filename: 25-06-89/CardInd
Read OK:
File size: 157C bytes
Load address: FFFF0E00
Exec address: FFFF802B
Duplicates

There are 2 duplicate copies of this file in the archive:

File contents
   10REM Card Index
   20REM by Frank McGreal
   30REM (c) The Micro User
   40MODE7:PROCinit
   50ON ERROR PROCerror
   60REPEAT X%=FNmenu
   70IF X%=1 PROCbrowse
   80IF X%=2 PROCenter
   90IF X%=3 PROCsrch
  100IF X%=4 PROCamend
  110IF X%=5 PROCdelete
  120IF X%=6 PROCsort
  130IF X%=7 PROCprint
  140UNTIL X%>7:*FX4
  150CLOSE#file%:CLS:END
  160:
  170DEFPROCbrowse:PROCcheckcds
  180PROClobox:PRINT"Use up & down keys to browse"'"and Return to exit...";
  190IF m$="" cd%=0 ELSE P%=1:L%=LENm$:cd%=ASCm$
  200REPEAT PROCdisplay(cd%)
  210G%=FNget(CHR$138+CHR$139+CHR$13)
  220IF G%=1 PROCdn ELSEIF G%=2 PROCup
  230UNTIL G%=3:ENDPROC
  240:
  250DEFPROCdn
  260IF m$="" cd%=cd%-1:IF cd%<0 cd%=nmcds%-1
  270IF m$="" ENDPROC
  280P%=P%-1:IF P%=0 P%=L%
  290cd%=FNnm(P%):ENDPROC
  300:
  310DEFFNnm(P%)=ASCMID$(n$,P%)*256+ASCMID$(m$,P%)
  320:
  330DEFPROCup
  340IF m$="" cd%=cd%+1:IF cd%=nmcds% cd%=0
  350IF m$="" ENDPROC
  360P%=P%+1:IF P%>L% P%=1
  370cd%=FNnm(P%):ENDPROC
  380:
  390DEFPROCdelete:PROCcheckcds
  400m$="":cd%=FNgetcd("delete")
  410PROCdisplay(cd%):PROClobox
  420PRINTTAB(4,1)"Delete this cd"
  430PRINTTAB(4,3)"Are you sure (Y/N) ?";
  440IF FNget("YyNn")<3 PROCdeletecd
  450ENDPROC
  460:
  470DEFPROCdeletecd
  480IF cd%=nmcds%-1 PROCnmcds(-1):ENDPROC
  490FOR C%=cd%+1 TO nmcds%-1
  500PROCrd1(C%):PROCwr1(C%-1)
  510NEXT:PROCnmcds(-1):ENDPROC
  520:
  530DEFPROCsrch:m$="":n$="":s$=""
  540PROCcheckcds:PROClobox
  550PRINT"Search on:"
  560FOR F%=1 TO mxfld%
  570PRINTfld$(F%,0)" (Y/N) ?";
  580IF FNget("YyNn")<3 s$=s$+CHR$F%
  590PRINT:NEXT:IFs$=""ENDPROC ELSE CLS
  600INPUTTAB(1,1)"Search text: "t$:IF t$="" ENDPROC
  610t$=FNlo(t$):CLS
  620PRINTCHR$136"Searching...";
  630FOR cd%=0 TO nmcds%-1:m%=FALSE
  640PROCrd1(cd%):FOR L%=1 TO LENs$
  650j$=FNlo(fld$(ASCMID$(s$,L%),1))
  660IFLENj$>LENt$ m%=m%ORINSTR(j$,t$)
  670NEXT:IF m% m$=m$+CHR$cd%:n$=n$+CHR$(cd%DIV256)
  680NEXT:IF m$=""PROCerr("None found")
  690ENDPROC
  700:
  710DEFFNlo($buf%):LOCALB%,L%
  720FOR L%=0 TO LEN$buf%-1:B%=buf%?L%
  730IF B%>64 IF B%<92 buf%?L%=B%+32
  740NEXT:=$buf%
  750:
  760DEFFNmenu:VDU26,12:FOR I%=1 TO 2
  770VDU31,0,I%,129,157,131,141
  780PRINTSPC7"CARD INDEX"SPC14CHR$156;:NEXT:VDU28,12,17,29,7,12
  790PROClobox:PRINT''"Use up/down to choose"'"and Return to select"
  800VDU28,12,17,29,4,12
  810VDU23,1,0;0;0;0;0;
  820PRINTTAB(3,1)"BROWSE"TAB(3)"ENTER"TAB(3)"SEARCH"TAB(3)"AMEND"TAB(3)"DELETE"TAB(3)"SORT"TAB(3)"PRINT"TAB(3)"END";
  830M%=1:*FX4,1
  840FORI%=1TO8:VDU31,12,I%,156:NEXT
  850REPEAT VDU31,0,M%,157,129
  860G%=FNget(CHR$138+CHR$139+CHR$13)
  870VDU31,0,M%,32,32
  880IF G%=1 M%=M%+1:IF M%>8 M%=1
  890IF G%=2 M%=M%-1:IF M%<1 M%=8
  900UNTIL G%=3:VDU26,12:=M%
  910:
  920DEF PROCsort:PROClobox
  930m$="":PRINTCHR$136"Sorting...";
  940LOCAL G%,J%,K%,T%,g%
  950g%=1:REPEAT g%=g%+g%
  960UNTIL g%>nmcds%:g%=g%-1
  970REPEAT g%=g%DIV2
  980FOR K%=0 TO nmcds%-g%-1:J%=K%
  990REPEAT G%=J%+g%:PROCcomp
 1000J%=J%-1:UNTIL J%<0
 1010NEXT:UNTIL g%=1:ENDPROC
 1020:
 1030DEF PROCcomp
 1040PROCrd1(J%):PROCrd2(G%)
 1050IF fld$(1,1)>fld$(1,2) PROCwr1(G%):PROCwr2(J%) ELSE J%=0
 1060ENDPROC
 1070:
 1080DEFPROCwr1(C%)PROCwr(C%,1):ENDPROC
 1090:
 1100DEFPROCwr2(C%)PROCwr(C%,2):ENDPROC
 1110:
 1120DEFPROCwr(C%,N%)
 1130PROCpointto(C%,file%)
 1140FOR F%=1 TO mxfld%
 1150PRINT#file%,fld$(F%,N%)
 1160NEXT:ENDPROC
 1170:
 1180DEFPROCrd1(C%)PROCrd(C%,1):ENDPROC
 1190:
 1200DEFPROCrd2(C%)PROCrd(C%,2):ENDPROC
 1210:
 1220DEFPROCrd(C%,N%)
 1230PROCpointto(C%,file%)
 1240FOR F%=1 TO mxfld%
 1250INPUT#file%,fld$(F%,N%)
 1260NEXT:ENDPROC
 1270:
 1280DEFPROCbox(C%)
 1290PROChibox(C%):FOR F%=1 TO mxfld%
 1300PRINTTAB(3)fld$(F%,1):NEXT:ENDPROC
 1310:
 1320DEFPROChibox(C%):LOCAL I%
 1330VDU28,6,16,33,0,12
 1340FOR I%=0 TO 16
 1350VDU31,26,I%,156,13,157,129,132
 1360NEXT:VDU28,9,17,31,1,12
 1370PRINTTAB(0,1)"Card "C%+1:ENDPROC
 1380:
 1390DEFPROClobox
 1400LOCAL I%:VDU28,1,23,37,18,12
 1410FOR I%=0 TO 5:VDU31,34,I%,156
 1420VDU13,129,157,131:NEXT
 1430VDU28,4,23,33,18,30:ENDPROC
 1440:
 1450DEFPROCspace:PROClobox
 1460PRINTTAB(2,4)"Press space to continue";
 1470G%=FNget(" "):ENDPROC
 1480:
 1490DEFPROCenter
 1500REPEAT cd%=nmcds%
 1510IF cd%=mxcds% PROCerr("Box is full")
 1520PROCblank:PROCedit(cd%)
 1530IF fld$(1,1)>"" PROCwr1(cd%):PROCnmcds(+1)
 1540UNTIL fld$(1,1)="":ENDPROC
 1550:
 1560DEFPROCamend:PROCcheckcds
 1570cd%=FNgetcd("amend")
 1580PROCrd1(cd%):PROCedit(cd%)
 1590PROCwr1(cd%):ENDPROC
 1600:
 1610DEFFNgetcd(t$):LOCAL cd%
 1620REPEAT PROClobox
 1630PRINTTAB(2)"Card to "t$" (1-";nmcds%") :";
 1640INPUT""cd%
 1650IFcd%<1ORcd%>nmcds%PROCerr("No such cd")
 1660UNTILcd%>0ANDcd%<nmcds%+1:=cd%-1
 1670:
 1680DEFPROCedit(cd%):m$="":LOCAL E%
 1690REPEAT PROCbox(cd%):PROClobox
 1700FOR F%=1 TO mxfld%
 1710PRINTfld$(F%,0)": ";:INPUT""i$
 1720IF i$>"" fld$(F%,1)=LEFT$(i$,flen%(F%)) ELSEIF fld$(1,1)="" F%=mxfld%
 1730NEXT:PROCbox(cd%)
 1740IF fld$(1,1)="" E%=TRUE ELSE PROClobox:PRINT'"Are these correct (Y/N) ";:E%=FNget("YyNn")<3
 1750UNTIL E%:ENDPROC
 1760:
 1770DEFPROCinit
 1780m$=STRING$(255," "):m$=""
 1790READ mxfld%:size%=0
 1800DIM fld$(mxfld%,2),flen%(mxfld%)
 1810FOR F%=1 TO mxfld%
 1820READ fld$(F%,0),flen%(F%)
 1830size%=size%+flen%(F%)+2:NEXT
 1840lns%=6:DIM ln$(lns%-1)
 1850mxcds%=50:nmcds%=0
 1860PROCblank:fname$="cards"
 1870REPEAT file%=OPENUP fname$
 1880IF file%=0 PROCcreatefile
 1890UNTIL file%>0:INPUT#file%,nmcds%
 1900DIM buf%256:ax%=2:wx%=35:ex%=3
 1910ENDPROC
 1920:
 1930DATA 8
 1940DATA Family name,20
 1950DATA Given name,20
 1960DATA Address 1,20
 1970DATA Address 2,20
 1980DATA Address 3,20
 1990DATA Post code,10
 2000DATA Phone,16
 2010DATA Notes,20
 2020:
 2030DEFPROCcreatefile
 2040LOCAL file%,cd%:PROClobox
 2050PRINT'"Card file not found..."'"Make a new file (Y/N) ";
 2060IF FNget("YyNn")>2 ENDPROC
 2070CLS:PRINT'"Making new file..."
 2080PROCblank:file%=OPENOUT fname$
 2090PROCnmcds(0)
 2100FOR cd%=0 TO mxcds%-1:PROCwr1(cd%)
 2110PRINTTAB(3,3)cd%+1" records...";
 2120NEXT:CLOSE#file%:ENDPROC
 2130:
 2140DEFPROCnmcds(I%)
 2150PTR#file%=0:nmcds%=nmcds%+I%
 2160PRINT#file%,nmcds%:ENDPROC
 2170:
 2180DEFPROCdisplay(C%):PROCrd1(C%)
 2190PROCbox(C%):ENDPROC
 2200:
 2210DEFPROCpointto(C%,F%)
 2220PTR#F%=C%*size%+10:ENDPROC
 2230:
 2240DEFFNget(k$):LOCAL I%:*FX21
 2250REPEAT I%=INSTR(k$,GET$)
 2260IF I% VDUASCMID$(k$,I%)
 2270UNTIL I%>0:=I%
 2280:
 2290DEFPROCwait:LOCAL T%:T%=TIME+300
 2300REPEATUNTILTIME>T%:ENDPROC
 2310:
 2320DEFPROCblank:LOCAL F%
 2330FOR F%=1 TO mxfld%
 2340fld$(F%,1)=STRING$(flen%(F%)," ")
 2350fld$(F%,1)="":NEXT:ENDPROC
 2360:
 2370DEFPROCcheckcds
 2380IF nmcds%=0 PROCerr("No cards")
 2390ENDPROC
 2400:
 2410DEFPROCprint:PROClobox
 2420PRINTCHR$136"Printing...";
 2430IF m$>"" P%=1:L%=LENm$:cd%=ASCm$ ELSE cd%=0:L%=nmcds%-1
 2440REPEATFORJ%=0TOlns%-1:ln$(J%)=""
 2450NEXT:FORA%=1TOax%:PROCrd1(cd%)
 2460ln$(0)=ln$(0)+FNf(fld$(2,1)+" "+fld$(1,1),wx%)
 2470FORK%=1TO4:ln$(K%)=ln$(K%)+FNf(fld$(K%+2,1),wx%):NEXT
 2480IF m$>"" P%=P%+1:cd%=FNnm(P%):IF P%>L% A%=&7FFFFFF:J%=A%
 2490IF m$="" cd%=cd%+1:IF cd%=nmcds% A%=&7FFFFFF:J%=A%
 2500NEXT:*FX3,10
 2510FORK%=0TOlns%-1:PRINTln$(K%):NEXT
 2520FORK%=0TOex%:PRINT:NEXT:*FX3,4
 2530UNTIL J%=&7FFFFFF:ENDPROC
 2540:
 2550DEFFNf(t$,N%)=LEFT$(t$+STRING$(N%," "),N%)
 2560:
 2570DEFPROCerr(t$):PROClobox
 2580PRINTt$'"Press space to continue";
 2590G%=FNget(" "):*FX125
 2600:ENDPROC
 2610:
 2620DEFPROCerror:*FX3,4
 2630IF ERR=17:ENDPROC
 2640CLOSE#0:REPORT:*FX4
 2650PRINT" at line ";ERL:END

� Card Index
� by Frank McGreal
� (c) The Micro User
(�7:�init
2� � �error
<� X%=�menu
F� X%=1 �browse
P� X%=2 �enter
Z� X%=3 �srch
d� X%=4 �amend
n� X%=5 �delete
x� X%=6 �sort
�� X%=7 �print
�� X%>7:*FX4
��#file%:�:�
�:
���browse:�checkcds
�C�lobox:�"Use up & down keys to browse"'"and Return to exit...";
�'� m$="" cd%=0 � P%=1:L%=�m$:cd%=�m$
�� �display(cd%)
�G%=�get(�138+�139+�13)
�� G%=1 �dn �� G%=2 �up
�� G%=3:�
�:
���dn
*� m$="" cd%=cd%-1:� cd%<0 cd%=nmcds%-1

� m$="" �
P%=P%-1:� P%=0 P%=L%
"cd%=�nm(P%):�
,:
6"ݤnm(P%)=��n$,P%)*256+��m$,P%)
@:
J��up
T(� m$="" cd%=cd%+1:� cd%=nmcds% cd%=0
^
� m$="" �
hP%=P%+1:� P%>L% P%=1
rcd%=�nm(P%):�
|:
���delete:�checkcds
�m$="":cd%=�getcd("delete")
��display(cd%):�lobox
��4,1)"Delete this cd"
�!�4,3)"Are you sure (Y/N) ?";
�� �get("YyNn")<3 �deletecd
��
�:
���deletecd
�� cd%=nmcds%-1 �nmcds(-1):�
�� C%=cd%+1 � nmcds%-1
��rd1(C%):�wr1(C%-1)
��:�nmcds(-1):�
:
��srch:m$="":n$="":s$=""
�checkcds:�lobox
&�"Search on:"
0� F%=1 � mxfld%
:�fld$(F%,0)" (Y/N) ?";
D� �get("YyNn")<3 s$=s$+�F%
N�:�:�s$=""� � �
X%�1,1)"Search text: "t$:� t$="" �
bt$=�lo(t$):�
l�136"Searching...";
v� cd%=0 � nmcds%-1:m%=�
��rd1(cd%):� L%=1 � �s$
�j$=�lo(fld$(��s$,L%),1))
��j$>�t$ m%=m%��j$,t$)
�&�:� m% m$=m$+�cd%:n$=n$+�(cd%�256)
��:� m$=""�err("None found")
��
�:
�ݤlo($buf%):�B%,L%
� � L%=0 � �$buf%-1:B%=buf%?L%
�!� B%>64 � B%<92 buf%?L%=B%+32
��:=$buf%
�:
�ݤmenu:�26,12:� I%=1 � 2
�31,0,I%,129,157,131,141
/�7"CARD INDEX"�14�156;:�:�28,12,17,29,7,12
<�lobox:�''"Use up/down to choose"'"and Return to select"
 �28,12,17,29,4,12
*�23,1,0;0;0;0;0;
4X�3,1)"BROWSE"�3)"ENTER"�3)"SEARCH"�3)"AMEND"�3)"DELETE"�3)"SORT"�3)"PRINT"�3)"END";
>M%=1:*FX4,1
H�I%=1�8:�31,12,I%,156:�
R� �31,0,M%,157,129
\G%=�get(�138+�139+�13)
f�31,0,M%,32,32
p� G%=1 M%=M%+1:� M%>8 M%=1
z� G%=2 M%=M%-1:� M%<1 M%=8
�� G%=3:�26,12:=M%
�:
�� �sort:�lobox
�m$="":�136"Sorting...";
�� G%,J%,K%,T%,g%
�g%=1:� g%=g%+g%
�� g%>nmcds%:g%=g%-1
�
� g%=g%�2
�� K%=0 � nmcds%-g%-1:J%=K%
�� G%=J%+g%:�comp
�J%=J%-1:� J%<0
��:� g%=1:�
�:
� �comp
�rd1(J%):�rd2(G%)
2� fld$(1,1)>fld$(1,2) �wr1(G%):�wr2(J%) � J%=0
$�
.:
8��wr1(C%)�wr(C%,1):�
B:
L��wr2(C%)�wr(C%,2):�
V:
`��wr(C%,N%)
j�pointto(C%,file%)
t� F%=1 � mxfld%
~�#file%,fld$(F%,N%)
��:�
�:
���rd1(C%)�rd(C%,1):�
�:
���rd2(C%)�rd(C%,2):�
�:
���rd(C%,N%)
��pointto(C%,file%)
�� F%=1 � mxfld%
��#file%,fld$(F%,N%)
��:�
�:

��box(C%)

�hibox(C%):� F%=1 � mxfld%
�3)fld$(F%,1):�:�
:
(��hibox(C%):� I%
2�28,6,16,33,0,12
<� I%=0 � 16
F �31,26,I%,156,13,157,129,132
P�:�28,9,17,31,1,12
Z�0,1)"Card "C%+1:�
d:
n��lobox
x� I%:�28,1,23,37,18,12
�� I%=0 � 5:�31,34,I%,156
��13,129,157,131:�
��28,4,23,33,18,30:�
�:
���space:�lobox
�$�2,4)"Press space to continue";
�G%=�get(" "):�
�:
���enter
�� cd%=nmcds%
�$� cd%=mxcds% �err("Box is full")
��blank:�edit(cd%)
�'� fld$(1,1)>"" �wr1(cd%):�nmcds(+1)
� fld$(1,1)="":�
:
��amend:�checkcds
"cd%=�getcd("amend")
,�rd1(cd%):�edit(cd%)
6�wr1(cd%):�
@:
Jݤgetcd(t$):� cd%
T� �lobox
^'�2)"Card to "t$" (1-";nmcds%") :";
h
�""cd%
r'�cd%<1�cd%>nmcds%�err("No such cd")
|�cd%>0�cd%<nmcds%+1:=cd%-1
�:
���edit(cd%):m$="":� E%
�� �box(cd%):�lobox
�� F%=1 � mxfld%
��fld$(F%,0)": ";:�""i$
�?� i$>"" fld$(F%,1)=�i$,flen%(F%)) �� fld$(1,1)="" F%=mxfld%
��:�box(cd%)
�P� fld$(1,1)="" E%=� � �lobox:�'"Are these correct (Y/N) ";:E%=�get("YyNn")<3
�
� E%:�
�:
�
��init
�m$=�255," "):m$=""
�� mxfld%:size%=0
"� fld$(mxfld%,2),flen%(mxfld%)
� F%=1 � mxfld%
� fld$(F%,0),flen%(F%)
&size%=size%+flen%(F%)+2:�
0lns%=6:� ln$(lns%-1)
:mxcds%=50:nmcds%=0
D�blank:fname$="cards"
N� file%=� fname$
X� file%=0 �createfile
b� file%>0:�#file%,nmcds%
l � buf%256:ax%=2:wx%=35:ex%=3
v�
�:
�� 8
�� Family name,20
�� Given name,20
�� Address 1,20
�� Address 2,20
�� Address 3,20
�� Post code,10
�� Phone,16
�� Notes,20
�:
���createfile
�� file%,cd%:�lobox
8�'"Card file not found..."'"Make a new file (Y/N) ";
� �get("YyNn")>2 �
�:�'"Making new file..."
 �blank:file%=� fname$
*
�nmcds(0)
4 � cd%=0 � mxcds%-1:�wr1(cd%)
>�3,3)cd%+1" records...";
H�:�#file%:�
R:
\��nmcds(I%)
f�#file%=0:nmcds%=nmcds%+I%
p�#file%,nmcds%:�
z:
���display(C%):�rd1(C%)
��box(C%):�
�:
���pointto(C%,F%)
��#F%=C%*size%+10:�
�:
�ݤget(k$):� I%:*FX21
�� I%=�k$,�)
�� I% �k$,I%)
�� I%>0:=I%
�:
���wait:� T%:T%=�+300
����>T%:�
	:
	��blank:� F%
	� F%=1 � mxfld%
	$fld$(F%,1)=�flen%(F%)," ")
	.fld$(F%,1)="":�:�
	8:
	B��checkcds
	L� nmcds%=0 �err("No cards")
	V�
	`:
	j��print:�lobox
	t�136"Printing...";
	~3� m$>"" P%=1:L%=�m$:cd%=�m$ � cd%=0:L%=nmcds%-1
	���J%=0�lns%-1:ln$(J%)=""
	��:�A%=1�ax%:�rd1(cd%)
	�1ln$(0)=ln$(0)+�f(fld$(2,1)+" "+fld$(1,1),wx%)
	�2�K%=1�4:ln$(K%)=ln$(K%)+�f(fld$(K%+2,1),wx%):�
	�9� m$>"" P%=P%+1:cd%=�nm(P%):� P%>L% A%=&7FFFFFF:J%=A%
	�4� m$="" cd%=cd%+1:� cd%=nmcds% A%=&7FFFFFF:J%=A%
	�
�:*FX3,10
	��K%=0�lns%-1:�ln$(K%):�
	��K%=0�ex%:�:�:*FX3,4
	�� J%=&7FFFFFF:�
	�:
	�ݤf(t$,N%)=�t$+�N%," "),N%)
:

��err(t$):�lobox
"�t$'"Press space to continue";
G%=�get(" "):*FX125
(:�
2:
<��error:*FX3,4
F� �=17:�
P�#0:�:*FX4
Z�" at line ";�:�
�
00000000  0d 00 0a 10 f4 20 43 61  72 64 20 49 6e 64 65 78  |..... Card Index|
00000010  0d 00 14 16 f4 20 62 79  20 46 72 61 6e 6b 20 4d  |..... by Frank M|
00000020  63 47 72 65 61 6c 0d 00  1e 18 f4 20 28 63 29 20  |cGreal..... (c) |
00000030  54 68 65 20 4d 69 63 72  6f 20 55 73 65 72 0d 00  |The Micro User..|
00000040  28 0c eb 37 3a f2 69 6e  69 74 0d 00 32 0e ee 20  |(..7:.init..2.. |
00000050  85 20 f2 65 72 72 6f 72  0d 00 3c 0e f5 20 58 25  |. .error..<.. X%|
00000060  3d a4 6d 65 6e 75 0d 00  46 12 e7 20 58 25 3d 31  |=.menu..F.. X%=1|
00000070  20 f2 62 72 6f 77 73 65  0d 00 50 11 e7 20 58 25  | .browse..P.. X%|
00000080  3d 32 20 f2 65 6e 74 65  72 0d 00 5a 10 e7 20 58  |=2 .enter..Z.. X|
00000090  25 3d 33 20 f2 73 72 63  68 0d 00 64 11 e7 20 58  |%=3 .srch..d.. X|
000000a0  25 3d 34 20 f2 61 6d 65  6e 64 0d 00 6e 12 e7 20  |%=4 .amend..n.. |
000000b0  58 25 3d 35 20 f2 64 65  6c 65 74 65 0d 00 78 10  |X%=5 .delete..x.|
000000c0  e7 20 58 25 3d 36 20 f2  73 6f 72 74 0d 00 82 11  |. X%=6 .sort....|
000000d0  e7 20 58 25 3d 37 20 f2  70 72 69 6e 74 0d 00 8c  |. X%=7 .print...|
000000e0  0f fd 20 58 25 3e 37 3a  2a 46 58 34 0d 00 96 0f  |.. X%>7:*FX4....|
000000f0  d9 23 66 69 6c 65 25 3a  db 3a e0 0d 00 a0 05 3a  |.#file%:.:.....:|
00000100  0d 00 aa 16 dd f2 62 72  6f 77 73 65 3a f2 63 68  |......browse:.ch|
00000110  65 63 6b 63 64 73 0d 00  b4 43 f2 6c 6f 62 6f 78  |eckcds...C.lobox|
00000120  3a f1 22 55 73 65 20 75  70 20 26 20 64 6f 77 6e  |:."Use up & down|
00000130  20 6b 65 79 73 20 74 6f  20 62 72 6f 77 73 65 22  | keys to browse"|
00000140  27 22 61 6e 64 20 52 65  74 75 72 6e 20 74 6f 20  |'"and Return to |
00000150  65 78 69 74 2e 2e 2e 22  3b 0d 00 be 27 e7 20 6d  |exit...";...'. m|
00000160  24 3d 22 22 20 63 64 25  3d 30 20 8b 20 50 25 3d  |$="" cd%=0 . P%=|
00000170  31 3a 4c 25 3d a9 6d 24  3a 63 64 25 3d 97 6d 24  |1:L%=.m$:cd%=.m$|
00000180  0d 00 c8 13 f5 20 f2 64  69 73 70 6c 61 79 28 63  |..... .display(c|
00000190  64 25 29 0d 00 d2 1a 47  25 3d a4 67 65 74 28 bd  |d%)....G%=.get(.|
000001a0  31 33 38 2b bd 31 33 39  2b bd 31 33 29 0d 00 dc  |138+.139+.13)...|
000001b0  1a e7 20 47 25 3d 31 20  f2 64 6e 20 8b e7 20 47  |.. G%=1 .dn .. G|
000001c0  25 3d 32 20 f2 75 70 0d  00 e6 0c fd 20 47 25 3d  |%=2 .up..... G%=|
000001d0  33 3a e1 0d 00 f0 05 3a  0d 00 fa 08 dd f2 64 6e  |3:.....:......dn|
000001e0  0d 01 04 2a e7 20 6d 24  3d 22 22 20 63 64 25 3d  |...*. m$="" cd%=|
000001f0  63 64 25 2d 31 3a e7 20  63 64 25 3c 30 20 63 64  |cd%-1:. cd%<0 cd|
00000200  25 3d 6e 6d 63 64 73 25  2d 31 0d 01 0e 0d e7 20  |%=nmcds%-1..... |
00000210  6d 24 3d 22 22 20 e1 0d  01 18 18 50 25 3d 50 25  |m$="" .....P%=P%|
00000220  2d 31 3a e7 20 50 25 3d  30 20 50 25 3d 4c 25 0d  |-1:. P%=0 P%=L%.|
00000230  01 22 11 63 64 25 3d a4  6e 6d 28 50 25 29 3a e1  |.".cd%=.nm(P%):.|
00000240  0d 01 2c 05 3a 0d 01 36  22 dd a4 6e 6d 28 50 25  |..,.:..6"..nm(P%|
00000250  29 3d 97 c1 6e 24 2c 50  25 29 2a 32 35 36 2b 97  |)=..n$,P%)*256+.|
00000260  c1 6d 24 2c 50 25 29 0d  01 40 05 3a 0d 01 4a 08  |.m$,P%)..@.:..J.|
00000270  dd f2 75 70 0d 01 54 28  e7 20 6d 24 3d 22 22 20  |..up..T(. m$="" |
00000280  63 64 25 3d 63 64 25 2b  31 3a e7 20 63 64 25 3d  |cd%=cd%+1:. cd%=|
00000290  6e 6d 63 64 73 25 20 63  64 25 3d 30 0d 01 5e 0d  |nmcds% cd%=0..^.|
000002a0  e7 20 6d 24 3d 22 22 20  e1 0d 01 68 18 50 25 3d  |. m$="" ...h.P%=|
000002b0  50 25 2b 31 3a e7 20 50  25 3e 4c 25 20 50 25 3d  |P%+1:. P%>L% P%=|
000002c0  31 0d 01 72 11 63 64 25  3d a4 6e 6d 28 50 25 29  |1..r.cd%=.nm(P%)|
000002d0  3a e1 0d 01 7c 05 3a 0d  01 86 16 dd f2 64 65 6c  |:...|.:......del|
000002e0  65 74 65 3a f2 63 68 65  63 6b 63 64 73 0d 01 90  |ete:.checkcds...|
000002f0  1e 6d 24 3d 22 22 3a 63  64 25 3d a4 67 65 74 63  |.m$="":cd%=.getc|
00000300  64 28 22 64 65 6c 65 74  65 22 29 0d 01 9a 18 f2  |d("delete").....|
00000310  64 69 73 70 6c 61 79 28  63 64 25 29 3a f2 6c 6f  |display(cd%):.lo|
00000320  62 6f 78 0d 01 a4 1a f1  8a 34 2c 31 29 22 44 65  |box......4,1)"De|
00000330  6c 65 74 65 20 74 68 69  73 20 63 64 22 0d 01 ae  |lete this cd"...|
00000340  21 f1 8a 34 2c 33 29 22  41 72 65 20 79 6f 75 20  |!..4,3)"Are you |
00000350  73 75 72 65 20 28 59 2f  4e 29 20 3f 22 3b 0d 01  |sure (Y/N) ?";..|
00000360  b8 1e e7 20 a4 67 65 74  28 22 59 79 4e 6e 22 29  |... .get("YyNn")|
00000370  3c 33 20 f2 64 65 6c 65  74 65 63 64 0d 01 c2 05  |<3 .deletecd....|
00000380  e1 0d 01 cc 05 3a 0d 01  d6 0e dd f2 64 65 6c 65  |.....:......dele|
00000390  74 65 63 64 0d 01 e0 1f  e7 20 63 64 25 3d 6e 6d  |tecd..... cd%=nm|
000003a0  63 64 73 25 2d 31 20 f2  6e 6d 63 64 73 28 2d 31  |cds%-1 .nmcds(-1|
000003b0  29 3a e1 0d 01 ea 19 e3  20 43 25 3d 63 64 25 2b  |):...... C%=cd%+|
000003c0  31 20 b8 20 6e 6d 63 64  73 25 2d 31 0d 01 f4 17  |1 . nmcds%-1....|
000003d0  f2 72 64 31 28 43 25 29  3a f2 77 72 31 28 43 25  |.rd1(C%):.wr1(C%|
000003e0  2d 31 29 0d 01 fe 12 ed  3a f2 6e 6d 63 64 73 28  |-1).....:.nmcds(|
000003f0  2d 31 29 3a e1 0d 02 08  05 3a 0d 02 12 1c dd f2  |-1):.....:......|
00000400  73 72 63 68 3a 6d 24 3d  22 22 3a 6e 24 3d 22 22  |srch:m$="":n$=""|
00000410  3a 73 24 3d 22 22 0d 02  1c 14 f2 63 68 65 63 6b  |:s$="".....check|
00000420  63 64 73 3a f2 6c 6f 62  6f 78 0d 02 26 11 f1 22  |cds:.lobox..&.."|
00000430  53 65 61 72 63 68 20 6f  6e 3a 22 0d 02 30 13 e3  |Search on:"..0..|
00000440  20 46 25 3d 31 20 b8 20  6d 78 66 6c 64 25 0d 02  | F%=1 . mxfld%..|
00000450  3a 1a f1 66 6c 64 24 28  46 25 2c 30 29 22 20 28  |:..fld$(F%,0)" (|
00000460  59 2f 4e 29 20 3f 22 3b  0d 02 44 1e e7 20 a4 67  |Y/N) ?";..D.. .g|
00000470  65 74 28 22 59 79 4e 6e  22 29 3c 33 20 73 24 3d  |et("YyNn")<3 s$=|
00000480  73 24 2b bd 46 25 0d 02  4e 13 f1 3a ed 3a e7 73  |s$+.F%..N..:.:.s|
00000490  24 3d 22 22 e1 20 8b 20  db 0d 02 58 25 e8 8a 31  |$="". . ...X%..1|
000004a0  2c 31 29 22 53 65 61 72  63 68 20 74 65 78 74 3a  |,1)"Search text:|
000004b0  20 22 74 24 3a e7 20 74  24 3d 22 22 20 e1 0d 02  | "t$:. t$="" ...|
000004c0  62 10 74 24 3d a4 6c 6f  28 74 24 29 3a db 0d 02  |b.t$=.lo(t$):...|
000004d0  6c 18 f1 bd 31 33 36 22  53 65 61 72 63 68 69 6e  |l...136"Searchin|
000004e0  67 2e 2e 2e 22 3b 0d 02  76 1b e3 20 63 64 25 3d  |g...";..v.. cd%=|
000004f0  30 20 b8 20 6e 6d 63 64  73 25 2d 31 3a 6d 25 3d  |0 . nmcds%-1:m%=|
00000500  a3 0d 02 80 1a f2 72 64  31 28 63 64 25 29 3a e3  |......rd1(cd%):.|
00000510  20 4c 25 3d 31 20 b8 20  a9 73 24 0d 02 8a 1c 6a  | L%=1 . .s$....j|
00000520  24 3d a4 6c 6f 28 66 6c  64 24 28 97 c1 73 24 2c  |$=.lo(fld$(..s$,|
00000530  4c 25 29 2c 31 29 29 0d  02 94 1a e7 a9 6a 24 3e  |L%),1))......j$>|
00000540  a9 74 24 20 6d 25 3d 6d  25 84 a7 6a 24 2c 74 24  |.t$ m%=m%..j$,t$|
00000550  29 0d 02 9e 26 ed 3a e7  20 6d 25 20 6d 24 3d 6d  |)...&.:. m% m$=m|
00000560  24 2b bd 63 64 25 3a 6e  24 3d 6e 24 2b bd 28 63  |$+.cd%:n$=n$+.(c|
00000570  64 25 81 32 35 36 29 0d  02 a8 1f ed 3a e7 20 6d  |d%.256).....:. m|
00000580  24 3d 22 22 f2 65 72 72  28 22 4e 6f 6e 65 20 66  |$="".err("None f|
00000590  6f 75 6e 64 22 29 0d 02  b2 05 e1 0d 02 bc 05 3a  |ound").........:|
000005a0  0d 02 c6 16 dd a4 6c 6f  28 24 62 75 66 25 29 3a  |......lo($buf%):|
000005b0  ea 42 25 2c 4c 25 0d 02  d0 20 e3 20 4c 25 3d 30  |.B%,L%... . L%=0|
000005c0  20 b8 20 a9 24 62 75 66  25 2d 31 3a 42 25 3d 62  | . .$buf%-1:B%=b|
000005d0  75 66 25 3f 4c 25 0d 02  da 21 e7 20 42 25 3e 36  |uf%?L%...!. B%>6|
000005e0  34 20 e7 20 42 25 3c 39  32 20 62 75 66 25 3f 4c  |4 . B%<92 buf%?L|
000005f0  25 3d 42 25 2b 33 32 0d  02 e4 0c ed 3a 3d 24 62  |%=B%+32.....:=$b|
00000600  75 66 25 0d 02 ee 05 3a  0d 02 f8 1c dd a4 6d 65  |uf%....:......me|
00000610  6e 75 3a ef 32 36 2c 31  32 3a e3 20 49 25 3d 31  |nu:.26,12:. I%=1|
00000620  20 b8 20 32 0d 03 02 1c  ef 33 31 2c 30 2c 49 25  | . 2.....31,0,I%|
00000630  2c 31 32 39 2c 31 35 37  2c 31 33 31 2c 31 34 31  |,129,157,131,141|
00000640  0d 03 0c 2f f1 89 37 22  43 41 52 44 20 49 4e 44  |.../..7"CARD IND|
00000650  45 58 22 89 31 34 bd 31  35 36 3b 3a ed 3a ef 32  |EX".14.156;:.:.2|
00000660  38 2c 31 32 2c 31 37 2c  32 39 2c 37 2c 31 32 0d  |8,12,17,29,7,12.|
00000670  03 16 3c f2 6c 6f 62 6f  78 3a f1 27 27 22 55 73  |..<.lobox:.''"Us|
00000680  65 20 75 70 2f 64 6f 77  6e 20 74 6f 20 63 68 6f  |e up/down to cho|
00000690  6f 73 65 22 27 22 61 6e  64 20 52 65 74 75 72 6e  |ose"'"and Return|
000006a0  20 74 6f 20 73 65 6c 65  63 74 22 0d 03 20 15 ef  | to select".. ..|
000006b0  32 38 2c 31 32 2c 31 37  2c 32 39 2c 34 2c 31 32  |28,12,17,29,4,12|
000006c0  0d 03 2a 14 ef 32 33 2c  31 2c 30 3b 30 3b 30 3b  |..*..23,1,0;0;0;|
000006d0  30 3b 30 3b 0d 03 34 58  f1 8a 33 2c 31 29 22 42  |0;0;..4X..3,1)"B|
000006e0  52 4f 57 53 45 22 8a 33  29 22 45 4e 54 45 52 22  |ROWSE".3)"ENTER"|
000006f0  8a 33 29 22 53 45 41 52  43 48 22 8a 33 29 22 41  |.3)"SEARCH".3)"A|
00000700  4d 45 4e 44 22 8a 33 29  22 44 45 4c 45 54 45 22  |MEND".3)"DELETE"|
00000710  8a 33 29 22 53 4f 52 54  22 8a 33 29 22 50 52 49  |.3)"SORT".3)"PRI|
00000720  4e 54 22 8a 33 29 22 45  4e 44 22 3b 0d 03 3e 0f  |NT".3)"END";..>.|
00000730  4d 25 3d 31 3a 2a 46 58  34 2c 31 0d 03 48 1b e3  |M%=1:*FX4,1..H..|
00000740  49 25 3d 31 b8 38 3a ef  33 31 2c 31 32 2c 49 25  |I%=1.8:.31,12,I%|
00000750  2c 31 35 36 3a ed 0d 03  52 16 f5 20 ef 33 31 2c  |,156:...R.. .31,|
00000760  30 2c 4d 25 2c 31 35 37  2c 31 32 39 0d 03 5c 1a  |0,M%,157,129..\.|
00000770  47 25 3d a4 67 65 74 28  bd 31 33 38 2b bd 31 33  |G%=.get(.138+.13|
00000780  39 2b bd 31 33 29 0d 03  66 12 ef 33 31 2c 30 2c  |9+.13)..f..31,0,|
00000790  4d 25 2c 33 32 2c 33 32  0d 03 70 1e e7 20 47 25  |M%,32,32..p.. G%|
000007a0  3d 31 20 4d 25 3d 4d 25  2b 31 3a e7 20 4d 25 3e  |=1 M%=M%+1:. M%>|
000007b0  38 20 4d 25 3d 31 0d 03  7a 1e e7 20 47 25 3d 32  |8 M%=1..z.. G%=2|
000007c0  20 4d 25 3d 4d 25 2d 31  3a e7 20 4d 25 3c 31 20  | M%=M%-1:. M%<1 |
000007d0  4d 25 3d 38 0d 03 84 15  fd 20 47 25 3d 33 3a ef  |M%=8..... G%=3:.|
000007e0  32 36 2c 31 32 3a 3d 4d  25 0d 03 8e 05 3a 0d 03  |26,12:=M%....:..|
000007f0  98 12 dd 20 f2 73 6f 72  74 3a f2 6c 6f 62 6f 78  |... .sort:.lobox|
00000800  0d 03 a2 1c 6d 24 3d 22  22 3a f1 bd 31 33 36 22  |....m$="":..136"|
00000810  53 6f 72 74 69 6e 67 2e  2e 2e 22 3b 0d 03 ac 14  |Sorting...";....|
00000820  ea 20 47 25 2c 4a 25 2c  4b 25 2c 54 25 2c 67 25  |. G%,J%,K%,T%,g%|
00000830  0d 03 b6 13 67 25 3d 31  3a f5 20 67 25 3d 67 25  |....g%=1:. g%=g%|
00000840  2b 67 25 0d 03 c0 17 fd  20 67 25 3e 6e 6d 63 64  |+g%..... g%>nmcd|
00000850  73 25 3a 67 25 3d 67 25  2d 31 0d 03 ca 0d f5 20  |s%:g%=g%-1..... |
00000860  67 25 3d 67 25 81 32 0d  03 d4 1e e3 20 4b 25 3d  |g%=g%.2..... K%=|
00000870  30 20 b8 20 6e 6d 63 64  73 25 2d 67 25 2d 31 3a  |0 . nmcds%-g%-1:|
00000880  4a 25 3d 4b 25 0d 03 de  14 f5 20 47 25 3d 4a 25  |J%=K%..... G%=J%|
00000890  2b 67 25 3a f2 63 6f 6d  70 0d 03 e8 12 4a 25 3d  |+g%:.comp....J%=|
000008a0  4a 25 2d 31 3a fd 20 4a  25 3c 30 0d 03 f2 0e ed  |J%-1:. J%<0.....|
000008b0  3a fd 20 67 25 3d 31 3a  e1 0d 03 fc 05 3a 0d 04  |:. g%=1:.....:..|
000008c0  06 0b dd 20 f2 63 6f 6d  70 0d 04 10 15 f2 72 64  |... .comp.....rd|
000008d0  31 28 4a 25 29 3a f2 72  64 32 28 47 25 29 0d 04  |1(J%):.rd2(G%)..|
000008e0  1a 32 e7 20 66 6c 64 24  28 31 2c 31 29 3e 66 6c  |.2. fld$(1,1)>fl|
000008f0  64 24 28 31 2c 32 29 20  f2 77 72 31 28 47 25 29  |d$(1,2) .wr1(G%)|
00000900  3a f2 77 72 32 28 4a 25  29 20 8b 20 4a 25 3d 30  |:.wr2(J%) . J%=0|
00000910  0d 04 24 05 e1 0d 04 2e  05 3a 0d 04 38 18 dd f2  |..$......:..8...|
00000920  77 72 31 28 43 25 29 f2  77 72 28 43 25 2c 31 29  |wr1(C%).wr(C%,1)|
00000930  3a e1 0d 04 42 05 3a 0d  04 4c 18 dd f2 77 72 32  |:...B.:..L...wr2|
00000940  28 43 25 29 f2 77 72 28  43 25 2c 32 29 3a e1 0d  |(C%).wr(C%,2):..|
00000950  04 56 05 3a 0d 04 60 0f  dd f2 77 72 28 43 25 2c  |.V.:..`...wr(C%,|
00000960  4e 25 29 0d 04 6a 16 f2  70 6f 69 6e 74 74 6f 28  |N%)..j..pointto(|
00000970  43 25 2c 66 69 6c 65 25  29 0d 04 74 13 e3 20 46  |C%,file%)..t.. F|
00000980  25 3d 31 20 b8 20 6d 78  66 6c 64 25 0d 04 7e 17  |%=1 . mxfld%..~.|
00000990  f1 23 66 69 6c 65 25 2c  66 6c 64 24 28 46 25 2c  |.#file%,fld$(F%,|
000009a0  4e 25 29 0d 04 88 07 ed  3a e1 0d 04 92 05 3a 0d  |N%).....:.....:.|
000009b0  04 9c 18 dd f2 72 64 31  28 43 25 29 f2 72 64 28  |.....rd1(C%).rd(|
000009c0  43 25 2c 31 29 3a e1 0d  04 a6 05 3a 0d 04 b0 18  |C%,1):.....:....|
000009d0  dd f2 72 64 32 28 43 25  29 f2 72 64 28 43 25 2c  |..rd2(C%).rd(C%,|
000009e0  32 29 3a e1 0d 04 ba 05  3a 0d 04 c4 0f dd f2 72  |2):.....:......r|
000009f0  64 28 43 25 2c 4e 25 29  0d 04 ce 16 f2 70 6f 69  |d(C%,N%).....poi|
00000a00  6e 74 74 6f 28 43 25 2c  66 69 6c 65 25 29 0d 04  |ntto(C%,file%)..|
00000a10  d8 13 e3 20 46 25 3d 31  20 b8 20 6d 78 66 6c 64  |... F%=1 . mxfld|
00000a20  25 0d 04 e2 17 e8 23 66  69 6c 65 25 2c 66 6c 64  |%.....#file%,fld|
00000a30  24 28 46 25 2c 4e 25 29  0d 04 ec 07 ed 3a e1 0d  |$(F%,N%).....:..|
00000a40  04 f6 05 3a 0d 05 00 0d  dd f2 62 6f 78 28 43 25  |...:......box(C%|
00000a50  29 0d 05 0a 1e f2 68 69  62 6f 78 28 43 25 29 3a  |).....hibox(C%):|
00000a60  e3 20 46 25 3d 31 20 b8  20 6d 78 66 6c 64 25 0d  |. F%=1 . mxfld%.|
00000a70  05 14 16 f1 8a 33 29 66  6c 64 24 28 46 25 2c 31  |.....3)fld$(F%,1|
00000a80  29 3a ed 3a e1 0d 05 1e  05 3a 0d 05 28 14 dd f2  |):.:.....:..(...|
00000a90  68 69 62 6f 78 28 43 25  29 3a ea 20 49 25 0d 05  |hibox(C%):. I%..|
00000aa0  32 14 ef 32 38 2c 36 2c  31 36 2c 33 33 2c 30 2c  |2..28,6,16,33,0,|
00000ab0  31 32 0d 05 3c 0f e3 20  49 25 3d 30 20 b8 20 31  |12..<.. I%=0 . 1|
00000ac0  36 0d 05 46 20 ef 33 31  2c 32 36 2c 49 25 2c 31  |6..F .31,26,I%,1|
00000ad0  35 36 2c 31 33 2c 31 35  37 2c 31 32 39 2c 31 33  |56,13,157,129,13|
00000ae0  32 0d 05 50 16 ed 3a ef  32 38 2c 39 2c 31 37 2c  |2..P..:.28,9,17,|
00000af0  33 31 2c 31 2c 31 32 0d  05 5a 17 f1 8a 30 2c 31  |31,1,12..Z...0,1|
00000b00  29 22 43 61 72 64 20 22  43 25 2b 31 3a e1 0d 05  |)"Card "C%+1:...|
00000b10  64 05 3a 0d 05 6e 0b dd  f2 6c 6f 62 6f 78 0d 05  |d.:..n...lobox..|
00000b20  78 1a ea 20 49 25 3a ef  32 38 2c 31 2c 32 33 2c  |x.. I%:.28,1,23,|
00000b30  33 37 2c 31 38 2c 31 32  0d 05 82 1c e3 20 49 25  |37,18,12..... I%|
00000b40  3d 30 20 b8 20 35 3a ef  33 31 2c 33 34 2c 49 25  |=0 . 5:.31,34,I%|
00000b50  2c 31 35 36 0d 05 8c 15  ef 31 33 2c 31 32 39 2c  |,156.....13,129,|
00000b60  31 35 37 2c 31 33 31 3a  ed 0d 05 96 17 ef 32 38  |157,131:......28|
00000b70  2c 34 2c 32 33 2c 33 33  2c 31 38 2c 33 30 3a e1  |,4,23,33,18,30:.|
00000b80  0d 05 a0 05 3a 0d 05 aa  12 dd f2 73 70 61 63 65  |....:......space|
00000b90  3a f2 6c 6f 62 6f 78 0d  05 b4 24 f1 8a 32 2c 34  |:.lobox...$..2,4|
00000ba0  29 22 50 72 65 73 73 20  73 70 61 63 65 20 74 6f  |)"Press space to|
00000bb0  20 63 6f 6e 74 69 6e 75  65 22 3b 0d 05 be 12 47  | continue";....G|
00000bc0  25 3d a4 67 65 74 28 22  20 22 29 3a e1 0d 05 c8  |%=.get(" "):....|
00000bd0  05 3a 0d 05 d2 0b dd f2  65 6e 74 65 72 0d 05 dc  |.:......enter...|
00000be0  10 f5 20 63 64 25 3d 6e  6d 63 64 73 25 0d 05 e6  |.. cd%=nmcds%...|
00000bf0  24 e7 20 63 64 25 3d 6d  78 63 64 73 25 20 f2 65  |$. cd%=mxcds% .e|
00000c00  72 72 28 22 42 6f 78 20  69 73 20 66 75 6c 6c 22  |rr("Box is full"|
00000c10  29 0d 05 f0 15 f2 62 6c  61 6e 6b 3a f2 65 64 69  |).....blank:.edi|
00000c20  74 28 63 64 25 29 0d 05  fa 27 e7 20 66 6c 64 24  |t(cd%)...'. fld$|
00000c30  28 31 2c 31 29 3e 22 22  20 f2 77 72 31 28 63 64  |(1,1)>"" .wr1(cd|
00000c40  25 29 3a f2 6e 6d 63 64  73 28 2b 31 29 0d 06 04  |%):.nmcds(+1)...|
00000c50  14 fd 20 66 6c 64 24 28  31 2c 31 29 3d 22 22 3a  |.. fld$(1,1)="":|
00000c60  e1 0d 06 0e 05 3a 0d 06  18 15 dd f2 61 6d 65 6e  |.....:......amen|
00000c70  64 3a f2 63 68 65 63 6b  63 64 73 0d 06 22 17 63  |d:.checkcds..".c|
00000c80  64 25 3d a4 67 65 74 63  64 28 22 61 6d 65 6e 64  |d%=.getcd("amend|
00000c90  22 29 0d 06 2c 18 f2 72  64 31 28 63 64 25 29 3a  |")..,..rd1(cd%):|
00000ca0  f2 65 64 69 74 28 63 64  25 29 0d 06 36 0f f2 77  |.edit(cd%)..6..w|
00000cb0  72 31 28 63 64 25 29 3a  e1 0d 06 40 05 3a 0d 06  |r1(cd%):...@.:..|
00000cc0  4a 15 dd a4 67 65 74 63  64 28 74 24 29 3a ea 20  |J...getcd(t$):. |
00000cd0  63 64 25 0d 06 54 0c f5  20 f2 6c 6f 62 6f 78 0d  |cd%..T.. .lobox.|
00000ce0  06 5e 27 f1 8a 32 29 22  43 61 72 64 20 74 6f 20  |.^'..2)"Card to |
00000cf0  22 74 24 22 20 28 31 2d  22 3b 6e 6d 63 64 73 25  |"t$" (1-";nmcds%|
00000d00  22 29 20 3a 22 3b 0d 06  68 0a e8 22 22 63 64 25  |") :";..h..""cd%|
00000d10  0d 06 72 27 e7 63 64 25  3c 31 84 63 64 25 3e 6e  |..r'.cd%<1.cd%>n|
00000d20  6d 63 64 73 25 f2 65 72  72 28 22 4e 6f 20 73 75  |mcds%.err("No su|
00000d30  63 68 20 63 64 22 29 0d  06 7c 1e fd 63 64 25 3e  |ch cd")..|..cd%>|
00000d40  30 80 63 64 25 3c 6e 6d  63 64 73 25 2b 31 3a 3d  |0.cd%<nmcds%+1:=|
00000d50  63 64 25 2d 31 0d 06 86  05 3a 0d 06 90 1a dd f2  |cd%-1....:......|
00000d60  65 64 69 74 28 63 64 25  29 3a 6d 24 3d 22 22 3a  |edit(cd%):m$="":|
00000d70  ea 20 45 25 0d 06 9a 16  f5 20 f2 62 6f 78 28 63  |. E%..... .box(c|
00000d80  64 25 29 3a f2 6c 6f 62  6f 78 0d 06 a4 13 e3 20  |d%):.lobox..... |
00000d90  46 25 3d 31 20 b8 20 6d  78 66 6c 64 25 0d 06 ae  |F%=1 . mxfld%...|
00000da0  1a f1 66 6c 64 24 28 46  25 2c 30 29 22 3a 20 22  |..fld$(F%,0)": "|
00000db0  3b 3a e8 22 22 69 24 0d  06 b8 3f e7 20 69 24 3e  |;:.""i$...?. i$>|
00000dc0  22 22 20 66 6c 64 24 28  46 25 2c 31 29 3d c0 69  |"" fld$(F%,1)=.i|
00000dd0  24 2c 66 6c 65 6e 25 28  46 25 29 29 20 8b e7 20  |$,flen%(F%)) .. |
00000de0  66 6c 64 24 28 31 2c 31  29 3d 22 22 20 46 25 3d  |fld$(1,1)="" F%=|
00000df0  6d 78 66 6c 64 25 0d 06  c2 0f ed 3a f2 62 6f 78  |mxfld%.....:.box|
00000e00  28 63 64 25 29 0d 06 cc  50 e7 20 66 6c 64 24 28  |(cd%)...P. fld$(|
00000e10  31 2c 31 29 3d 22 22 20  45 25 3d b9 20 8b 20 f2  |1,1)="" E%=. . .|
00000e20  6c 6f 62 6f 78 3a f1 27  22 41 72 65 20 74 68 65  |lobox:.'"Are the|
00000e30  73 65 20 63 6f 72 72 65  63 74 20 28 59 2f 4e 29  |se correct (Y/N)|
00000e40  20 22 3b 3a 45 25 3d a4  67 65 74 28 22 59 79 4e  | ";:E%=.get("YyN|
00000e50  6e 22 29 3c 33 0d 06 d6  0a fd 20 45 25 3a e1 0d  |n")<3..... E%:..|
00000e60  06 e0 05 3a 0d 06 ea 0a  dd f2 69 6e 69 74 0d 06  |...:......init..|
00000e70  f4 16 6d 24 3d c4 32 35  35 2c 22 20 22 29 3a 6d  |..m$=.255," "):m|
00000e80  24 3d 22 22 0d 06 fe 14  f3 20 6d 78 66 6c 64 25  |$=""..... mxfld%|
00000e90  3a 73 69 7a 65 25 3d 30  0d 07 08 22 de 20 66 6c  |:size%=0...". fl|
00000ea0  64 24 28 6d 78 66 6c 64  25 2c 32 29 2c 66 6c 65  |d$(mxfld%,2),fle|
00000eb0  6e 25 28 6d 78 66 6c 64  25 29 0d 07 12 13 e3 20  |n%(mxfld%)..... |
00000ec0  46 25 3d 31 20 b8 20 6d  78 66 6c 64 25 0d 07 1c  |F%=1 . mxfld%...|
00000ed0  1a f3 20 66 6c 64 24 28  46 25 2c 30 29 2c 66 6c  |.. fld$(F%,0),fl|
00000ee0  65 6e 25 28 46 25 29 0d  07 26 1d 73 69 7a 65 25  |en%(F%)..&.size%|
00000ef0  3d 73 69 7a 65 25 2b 66  6c 65 6e 25 28 46 25 29  |=size%+flen%(F%)|
00000f00  2b 32 3a ed 0d 07 30 18  6c 6e 73 25 3d 36 3a de  |+2:...0.lns%=6:.|
00000f10  20 6c 6e 24 28 6c 6e 73  25 2d 31 29 0d 07 3a 16  | ln$(lns%-1)..:.|
00000f20  6d 78 63 64 73 25 3d 35  30 3a 6e 6d 63 64 73 25  |mxcds%=50:nmcds%|
00000f30  3d 30 0d 07 44 19 f2 62  6c 61 6e 6b 3a 66 6e 61  |=0..D..blank:fna|
00000f40  6d 65 24 3d 22 63 61 72  64 73 22 0d 07 4e 14 f5  |me$="cards"..N..|
00000f50  20 66 69 6c 65 25 3d ad  20 66 6e 61 6d 65 24 0d  | file%=. fname$.|
00000f60  07 58 19 e7 20 66 69 6c  65 25 3d 30 20 f2 63 72  |.X.. file%=0 .cr|
00000f70  65 61 74 65 66 69 6c 65  0d 07 62 1c fd 20 66 69  |eatefile..b.. fi|
00000f80  6c 65 25 3e 30 3a e8 23  66 69 6c 65 25 2c 6e 6d  |le%>0:.#file%,nm|
00000f90  63 64 73 25 0d 07 6c 20  de 20 62 75 66 25 32 35  |cds%..l . buf%25|
00000fa0  36 3a 61 78 25 3d 32 3a  77 78 25 3d 33 35 3a 65  |6:ax%=2:wx%=35:e|
00000fb0  78 25 3d 33 0d 07 76 05  e1 0d 07 80 05 3a 0d 07  |x%=3..v......:..|
00000fc0  8a 07 dc 20 38 0d 07 94  14 dc 20 46 61 6d 69 6c  |... 8..... Famil|
00000fd0  79 20 6e 61 6d 65 2c 32  30 0d 07 9e 13 dc 20 47  |y name,20..... G|
00000fe0  69 76 65 6e 20 6e 61 6d  65 2c 32 30 0d 07 a8 12  |iven name,20....|
00000ff0  dc 20 41 64 64 72 65 73  73 20 31 2c 32 30 0d 07  |. Address 1,20..|
00001000  b2 12 dc 20 41 64 64 72  65 73 73 20 32 2c 32 30  |... Address 2,20|
00001010  0d 07 bc 12 dc 20 41 64  64 72 65 73 73 20 33 2c  |..... Address 3,|
00001020  32 30 0d 07 c6 12 dc 20  50 6f 73 74 20 63 6f 64  |20..... Post cod|
00001030  65 2c 31 30 0d 07 d0 0e  dc 20 50 68 6f 6e 65 2c  |e,10..... Phone,|
00001040  31 36 0d 07 da 0e dc 20  4e 6f 74 65 73 2c 32 30  |16..... Notes,20|
00001050  0d 07 e4 05 3a 0d 07 ee  10 dd f2 63 72 65 61 74  |....:......creat|
00001060  65 66 69 6c 65 0d 07 f8  16 ea 20 66 69 6c 65 25  |efile..... file%|
00001070  2c 63 64 25 3a f2 6c 6f  62 6f 78 0d 08 02 38 f1  |,cd%:.lobox...8.|
00001080  27 22 43 61 72 64 20 66  69 6c 65 20 6e 6f 74 20  |'"Card file not |
00001090  66 6f 75 6e 64 2e 2e 2e  22 27 22 4d 61 6b 65 20  |found..."'"Make |
000010a0  61 20 6e 65 77 20 66 69  6c 65 20 28 59 2f 4e 29  |a new file (Y/N)|
000010b0  20 22 3b 0d 08 0c 16 e7  20 a4 67 65 74 28 22 59  | ";..... .get("Y|
000010c0  79 4e 6e 22 29 3e 32 20  e1 0d 08 16 1c db 3a f1  |yNn")>2 ......:.|
000010d0  27 22 4d 61 6b 69 6e 67  20 6e 65 77 20 66 69 6c  |'"Making new fil|
000010e0  65 2e 2e 2e 22 0d 08 20  19 f2 62 6c 61 6e 6b 3a  |e...".. ..blank:|
000010f0  66 69 6c 65 25 3d ae 20  66 6e 61 6d 65 24 0d 08  |file%=. fname$..|
00001100  2a 0d f2 6e 6d 63 64 73  28 30 29 0d 08 34 20 e3  |*..nmcds(0)..4 .|
00001110  20 63 64 25 3d 30 20 b8  20 6d 78 63 64 73 25 2d  | cd%=0 . mxcds%-|
00001120  31 3a f2 77 72 31 28 63  64 25 29 0d 08 3e 1d f1  |1:.wr1(cd%)..>..|
00001130  8a 33 2c 33 29 63 64 25  2b 31 22 20 72 65 63 6f  |.3,3)cd%+1" reco|
00001140  72 64 73 2e 2e 2e 22 3b  0d 08 48 0f ed 3a d9 23  |rds...";..H..:.#|
00001150  66 69 6c 65 25 3a e1 0d  08 52 05 3a 0d 08 5c 0f  |file%:...R.:..\.|
00001160  dd f2 6e 6d 63 64 73 28  49 25 29 0d 08 66 1e cf  |..nmcds(I%)..f..|
00001170  23 66 69 6c 65 25 3d 30  3a 6e 6d 63 64 73 25 3d  |#file%=0:nmcds%=|
00001180  6e 6d 63 64 73 25 2b 49  25 0d 08 70 14 f1 23 66  |nmcds%+I%..p..#f|
00001190  69 6c 65 25 2c 6e 6d 63  64 73 25 3a e1 0d 08 7a  |ile%,nmcds%:...z|
000011a0  05 3a 0d 08 84 1a dd f2  64 69 73 70 6c 61 79 28  |.:......display(|
000011b0  43 25 29 3a f2 72 64 31  28 43 25 29 0d 08 8e 0e  |C%):.rd1(C%)....|
000011c0  f2 62 6f 78 28 43 25 29  3a e1 0d 08 98 05 3a 0d  |.box(C%):.....:.|
000011d0  08 a2 14 dd f2 70 6f 69  6e 74 74 6f 28 43 25 2c  |.....pointto(C%,|
000011e0  46 25 29 0d 08 ac 16 cf  23 46 25 3d 43 25 2a 73  |F%).....#F%=C%*s|
000011f0  69 7a 65 25 2b 31 30 3a  e1 0d 08 b6 05 3a 0d 08  |ize%+10:.....:..|
00001200  c0 18 dd a4 67 65 74 28  6b 24 29 3a ea 20 49 25  |....get(k$):. I%|
00001210  3a 2a 46 58 32 31 0d 08  ca 0f f5 20 49 25 3d a7  |:*FX21..... I%=.|
00001220  6b 24 2c be 29 0d 08 d4  12 e7 20 49 25 20 ef 97  |k$,.)..... I% ..|
00001230  c1 6b 24 2c 49 25 29 0d  08 de 0e fd 20 49 25 3e  |.k$,I%)..... I%>|
00001240  30 3a 3d 49 25 0d 08 e8  05 3a 0d 08 f2 18 dd f2  |0:=I%....:......|
00001250  77 61 69 74 3a ea 20 54  25 3a 54 25 3d 91 2b 33  |wait:. T%:T%=.+3|
00001260  30 30 0d 08 fc 0c f5 fd  91 3e 54 25 3a e1 0d 09  |00.......>T%:...|
00001270  06 05 3a 0d 09 10 10 dd  f2 62 6c 61 6e 6b 3a ea  |..:......blank:.|
00001280  20 46 25 0d 09 1a 13 e3  20 46 25 3d 31 20 b8 20  | F%..... F%=1 . |
00001290  6d 78 66 6c 64 25 0d 09  24 1e 66 6c 64 24 28 46  |mxfld%..$.fld$(F|
000012a0  25 2c 31 29 3d c4 66 6c  65 6e 25 28 46 25 29 2c  |%,1)=.flen%(F%),|
000012b0  22 20 22 29 0d 09 2e 15  66 6c 64 24 28 46 25 2c  |" ")....fld$(F%,|
000012c0  31 29 3d 22 22 3a ed 3a  e1 0d 09 38 05 3a 0d 09  |1)="":.:...8.:..|
000012d0  42 0e dd f2 63 68 65 63  6b 63 64 73 0d 09 4c 1f  |B...checkcds..L.|
000012e0  e7 20 6e 6d 63 64 73 25  3d 30 20 f2 65 72 72 28  |. nmcds%=0 .err(|
000012f0  22 4e 6f 20 63 61 72 64  73 22 29 0d 09 56 05 e1  |"No cards")..V..|
00001300  0d 09 60 05 3a 0d 09 6a  12 dd f2 70 72 69 6e 74  |..`.:..j...print|
00001310  3a f2 6c 6f 62 6f 78 0d  09 74 17 f1 bd 31 33 36  |:.lobox..t...136|
00001320  22 50 72 69 6e 74 69 6e  67 2e 2e 2e 22 3b 0d 09  |"Printing...";..|
00001330  7e 33 e7 20 6d 24 3e 22  22 20 50 25 3d 31 3a 4c  |~3. m$>"" P%=1:L|
00001340  25 3d a9 6d 24 3a 63 64  25 3d 97 6d 24 20 8b 20  |%=.m$:cd%=.m$ . |
00001350  63 64 25 3d 30 3a 4c 25  3d 6e 6d 63 64 73 25 2d  |cd%=0:L%=nmcds%-|
00001360  31 0d 09 88 1c f5 e3 4a  25 3d 30 b8 6c 6e 73 25  |1......J%=0.lns%|
00001370  2d 31 3a 6c 6e 24 28 4a  25 29 3d 22 22 0d 09 92  |-1:ln$(J%)=""...|
00001380  19 ed 3a e3 41 25 3d 31  b8 61 78 25 3a f2 72 64  |..:.A%=1.ax%:.rd|
00001390  31 28 63 64 25 29 0d 09  9c 31 6c 6e 24 28 30 29  |1(cd%)...1ln$(0)|
000013a0  3d 6c 6e 24 28 30 29 2b  a4 66 28 66 6c 64 24 28  |=ln$(0)+.f(fld$(|
000013b0  32 2c 31 29 2b 22 20 22  2b 66 6c 64 24 28 31 2c  |2,1)+" "+fld$(1,|
000013c0  31 29 2c 77 78 25 29 0d  09 a6 32 e3 4b 25 3d 31  |1),wx%)...2.K%=1|
000013d0  b8 34 3a 6c 6e 24 28 4b  25 29 3d 6c 6e 24 28 4b  |.4:ln$(K%)=ln$(K|
000013e0  25 29 2b a4 66 28 66 6c  64 24 28 4b 25 2b 32 2c  |%)+.f(fld$(K%+2,|
000013f0  31 29 2c 77 78 25 29 3a  ed 0d 09 b0 39 e7 20 6d  |1),wx%):....9. m|
00001400  24 3e 22 22 20 50 25 3d  50 25 2b 31 3a 63 64 25  |$>"" P%=P%+1:cd%|
00001410  3d a4 6e 6d 28 50 25 29  3a e7 20 50 25 3e 4c 25  |=.nm(P%):. P%>L%|
00001420  20 41 25 3d 26 37 46 46  46 46 46 46 3a 4a 25 3d  | A%=&7FFFFFF:J%=|
00001430  41 25 0d 09 ba 34 e7 20  6d 24 3d 22 22 20 63 64  |A%...4. m$="" cd|
00001440  25 3d 63 64 25 2b 31 3a  e7 20 63 64 25 3d 6e 6d  |%=cd%+1:. cd%=nm|
00001450  63 64 73 25 20 41 25 3d  26 37 46 46 46 46 46 46  |cds% A%=&7FFFFFF|
00001460  3a 4a 25 3d 41 25 0d 09  c4 0d ed 3a 2a 46 58 33  |:J%=A%.....:*FX3|
00001470  2c 31 30 0d 09 ce 1b e3  4b 25 3d 30 b8 6c 6e 73  |,10.....K%=0.lns|
00001480  25 2d 31 3a f1 6c 6e 24  28 4b 25 29 3a ed 0d 09  |%-1:.ln$(K%):...|
00001490  d8 18 e3 4b 25 3d 30 b8  65 78 25 3a f1 3a ed 3a  |...K%=0.ex%:.:.:|
000014a0  2a 46 58 33 2c 34 0d 09  e2 13 fd 20 4a 25 3d 26  |*FX3,4..... J%=&|
000014b0  37 46 46 46 46 46 46 3a  e1 0d 09 ec 05 3a 0d 09  |7FFFFFF:.....:..|
000014c0  f6 1f dd a4 66 28 74 24  2c 4e 25 29 3d c0 74 24  |....f(t$,N%)=.t$|
000014d0  2b c4 4e 25 2c 22 20 22  29 2c 4e 25 29 0d 0a 00  |+.N%," "),N%)...|
000014e0  05 3a 0d 0a 0a 14 dd f2  65 72 72 28 74 24 29 3a  |.:......err(t$):|
000014f0  f2 6c 6f 62 6f 78 0d 0a  14 22 f1 74 24 27 22 50  |.lobox...".t$'"P|
00001500  72 65 73 73 20 73 70 61  63 65 20 74 6f 20 63 6f  |ress space to co|
00001510  6e 74 69 6e 75 65 22 3b  0d 0a 1e 17 47 25 3d a4  |ntinue";....G%=.|
00001520  67 65 74 28 22 20 22 29  3a 2a 46 58 31 32 35 0d  |get(" "):*FX125.|
00001530  0a 28 06 3a e1 0d 0a 32  05 3a 0d 0a 3c 12 dd f2  |.(.:...2.:..<...|
00001540  65 72 72 6f 72 3a 2a 46  58 33 2c 34 0d 0a 46 0c  |error:*FX3,4..F.|
00001550  e7 20 9f 3d 31 37 3a e1  0d 0a 50 0e d9 23 30 3a  |. .=17:...P..#0:|
00001560  f6 3a 2a 46 58 34 0d 0a  5a 14 f1 22 20 61 74 20  |.:*FX4..Z.." at |
00001570  6c 69 6e 65 20 22 3b 9e  3a e0 0d ff              |line ";.:...|
0000157c
25-06-89/CardInd.m0
25-06-89/CardInd.m1
25-06-89/CardInd.m2
25-06-89/CardInd.m4
25-06-89/CardInd.m5