Home » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_37.ADF » P/ABOOK1

P/ABOOK1

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 » Acorn ADFS disks » Electron_User_Group » EUG_37.ADF
Filename: P/ABOOK1
Read OK:
File size: 0EA1 bytes
Load address: FFFF0E00
Exec address: FFFF802B
Duplicates

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

File contents
   10REMEORProcedures to utilise all RAM
   20REMEORfor an address book
   30MODE135
   40HIMEM=&3C00
   50*SRLOAD ?BLANK 8000 4
   60*SRLOAD ?BLANK 8000 5
   70*SRLOAD ?BLANK 8000 6
   80*SRLOAD ?BLANK 8000 7
   90*L. ?ABOOK 900
  100REMEORBanks are numbered 0 to 5
  110REMEORBank 0 is main RAM
  120REMEORBank 1 is shadow RAM
  130REMEORBanks 2-5 are Sideways RAM
  140:
  150num$="0123456789"
  160hex$="0123456789ABCDEF"
  170alphaup$="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  180alphalo$="abcdefghijklmnopqrstuvwxyz"
  190sym$=" !$%&'(),./<>?;:+[]{}_`-^\=~|"
  200blank$=STRING$(188,"*")
  210GOTO300
  220A$=blank$
  230VDU14
  240FORI%=0TO521
  250B$=FNputs(A$,I%)
  260B$=FNgets(I%)
  270PRINTI%
  280NEXTI%
  290:
  300REPEAT
  310CLS
  320PRINT"MENU:"
  330PRINT"1-LOAD"
  340PRINT"2-SAVE"
  350PRINT"3-ENTER"
  360PRINT"9-END"
  370INPUT"CHOICE ";C%
  380IFC%>3 THEN 400
  390ON C% PROCloadbank,PROCsavebank,PROCenter
  400UNTILC%=9
  410END
  420:
  430REMEORgets - retrieve a string
  440DEFFNgets(num%)
  450!&A00=(num% MOD 87)
  460?&A02=(num% DIV 87)
  470CALL&900
  480=$&A03
  490:
  500REMEORputs - store a string
  510DEFFNputs(a$,num%)
  520!&A00=(num% MOD 87)
  530?&A02=(num% DIV 87) OR &80
  540$&A03=a$
  550CALL&900
  560=$&A03
  570:
  580REMEORloadbank - load data bank
  590DEFPROCloadbank
  600LOCALfile$,bank%
  610INPUT"File to load";file$
  620INPUT"Destination bank (0-5)";bank%
  630IF bank%=0 THEN PROCloadmain
  640IF bank%=1 THEN PROCloadshadow
  650IF bank%=2 THEN OSCLI("SRLOAD "+file$+" 8000 4")
  660IF bank%=3 THEN OSCLI("SRLOAD "+file$+" 8000 5")
  670IF bank%=4 THEN OSCLI("SRLOAD "+file$+" 8000 6")
  680IF bank%=5 THEN OSCLI("SRLOAD "+file$+" 8000 7")
  690ENDPROC
  700:
  710REMEORloadmain - load bank into main RAM
  720DEFPROCloadmain
  730?&FE34 = (?&FE34 AND &FB)
  740OSCLI("L. "+file$+" 3C00")
  750ENDPROC
  760:
  770REMEORloadshadow - load bank into shadow RAM
  780DEFPROCloadshadow
  790?&FE34 = (?&FE34 OR &04)
  800OSCLI("L. "+file$+" 3C00")
  810?&FE34 = (?&FE34 AND &FB)
  820ENDPROC
  830:
  840REMEORsavebank - save data bank
  850DEFPROCsavebank
  860LOCALfile$,bank%
  870INPUT"Data bank to save (0-5)";bank%
  880INPUT"Destination filename";file$
  890IF bank%=0 THEN PROCsavemain
  900IF bank%=1 THEN PROCsaveshadow
  910IF bank%=2 THEN OSCLI("SRSAVE "+file$+" 8000 C000 4")
  920IF bank%=3 THEN OSCLI("SRSAVE "+file$+" 8000 C000 5")
  930IF bank%=4 THEN OSCLI("SRSAVE "+file$+" 8000 C000 6")
  940IF bank%=5 THEN OSCLI("SRSAVE "+file$+" 8000 C000 7")
  950ENDPROC
  960:
  970REMEORsavemain - save bank in main RAM
  980DEFPROCsavemain
  990?&FE34 = (?&FE34 AND &FB)
 1000OSCLI("SAVE "+file$+" 3C00 7C00")
 1010ENDPROC
 1020:
 1030REMEORsaveshadow - save bank in shadow RAM
 1040DEFPROCsaveshadow
 1050?&FE34 = (?&FE34 OR &04)
 1060OSCLI("SAVE "+file$+" 3C00 7C00")
 1070?&FE34 = (?&FE34 AND &FB)
 1080ENDPROC
 1090:
 1100REMEORenter - enter data
 1110DEFPROCenter
 1120LOCAL a$,i$,i%,blank$,fname$,sname$,a1$,a2$,a3$,a4$,a5$,pc$,phn$
 1130blank$=STRING$(188," ")
 1140CLS
 1150REPEAT
 1160IFi$<>"" THEN PRINT"Another address (Y/N) ?";:a$=FNinput("YN",1):IFa$="N" THENi%=9999:GOTO1440
 1170CLS
 1180PRINT'"First name and initials:"'"?";
 1190fname$=FNinput(num$+alphaup$+alphalo$+sym$,16)
 1200PRINT'"Surname:"'"?";
 1210sname$=FNinput(num$+alphaup$+alphalo$+sym$,16)
 1220PRINT'"House number/name:"'"?";
 1230a1$=FNinput(num$+alphaup$+alphalo$+sym$,20)
 1240PRINT'"Road name:"'"?";
 1250a2$=FNinput(num$+alphaup$+alphalo$+sym$,25)
 1260PRINT'"Village / District:"'"?";
 1270a3$=FNinput(num$+alphaup$+alphalo$+sym$,25)
 1280PRINT'"Town:"'"?";
 1290a4$=FNinput(num$+alphaup$+alphalo$+sym$,25)
 1300PRINT'"County/Country:"'"?";
 1310a5$=FNinput(num$+alphaup$+alphalo$+sym$,20)
 1320PRINT'"Postcode:"'"?";
 1330pc$=FNinput(num$+alphaup$+alphalo$+sym$,10)
 1340PRINT'"Phone number:"'"?";
 1350phn$=FNinput(num$+sym$,24)
 1360i$=fname$+sname$+a1$+a2$+a3$+a4$+a5$+pc$+phn$
 1370i$=i$+RIGHT$(blank$,188-LEN(i$))
 1380PRINT'"Location Number:"'"?";
 1390i%=EVAL(FNinput(num$,4))
 1400IF i%>521 THEN 1440
 1410i$=FNputs(i$,i%)
 1420PRINT'"Location ";i%;" now contains"
 1430PRINTi$;"."
 1440UNTILi%=9999
 1450ENDPROC
 1460:
 1470REM Input Function
 1480DEFFNinput(legal$,maxlen%)
 1490LOCALa%,a$,b$
 1500REPEAT
 1510REPEAT
 1520a%=GET
 1530UNTIL INSTR(legal$,CHR$(a%)) >0 OR a%=13 OR a%=127
 1540legal%=(INSTR(legal$,CHR$(a%)) >0)
 1550mlnex%=(LEN(a$) < maxlen%)
 1560IF legal% AND mlnex% THEN a$=a$+CHR$(a%)
 1570IF legal% AND mlnex% THEN VDUa%
 1580IF a%=127 AND LEN(a$) >0 THEN VDUa%
 1590IF a%=127 THEN a$=LEFT$(a$,LEN(a$)-1)
 1600UNTIL a%=13
 1610a$=a$+RIGHT$(STRING$(maxlen%," "),maxlen%-LEN(a$))
 1620=a$

#�Procedures to utilise all RAM
�for an address book
�135
(�=&3C00
2*SRLOAD ?BLANK 8000 4
<*SRLOAD ?BLANK 8000 5
F*SRLOAD ?BLANK 8000 6
P*SRLOAD ?BLANK 8000 7
Z*L. ?ABOOK 900
d�Banks are numbered 0 to 5
n�Bank 0 is main RAM
x�Bank 1 is shadow RAM
� �Banks 2-5 are Sideways RAM
�:
�num$="0123456789"
�hex$="0123456789ABCDEF"
�)alphaup$="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
�)alphalo$="abcdefghijklmnopqrstuvwxyz"
�(sym$=" !$%&'(),./<>?;:+[]{}_`-^\=~|"
�blank$=�188,"*")
�	�TlA
�
A$=blank$
��14
�
�I%=0�521
�B$=�puts(A$,I%)
B$=�gets(I%)
�I%
�I%
":
,�
6�
@�"MENU:"
J
�"1-LOAD"
T
�"2-SAVE"
^�"3-ENTER"
h�"9-END"
r�"CHOICE ";C%
|�C%>3 � �tPA
�#� C% �loadbank,�savebank,�enter
�	�C%=9
��
�:
��gets - retrieve a string
�ݤgets(num%)
�!&A00=(num% � 87)
�?&A02=(num% � 87)
�	�&900
�
=$&A03
�:
��puts - store a string
�ݤputs(a$,num%)
!&A00=(num% � 87)
?&A02=(num% � 87) � &80
$&A03=a$
&	�&900
0
=$&A03
::
D�loadbank - load data bank
N��loadbank
X�file$,bank%
b�"File to load";file$
l#�"Destination bank (0-5)";bank%
v� bank%=0 � �loadmain
�� bank%=1 � �loadshadow
�,� bank%=2 � �("SRLOAD "+file$+" 8000 4")
�,� bank%=3 � �("SRLOAD "+file$+" 8000 5")
�,� bank%=4 � �("SRLOAD "+file$+" 8000 6")
�,� bank%=5 � �("SRLOAD "+file$+" 8000 7")
��
�:
�(�loadmain - load bank into main RAM
���loadmain
�?&FE34 = (?&FE34 � &FB)
��("L. "+file$+" 3C00")
��
�:
,�loadshadow - load bank into shadow RAM
��loadshadow
?&FE34 = (?&FE34 � &04)
 �("L. "+file$+" 3C00")
*?&FE34 = (?&FE34 � &FB)
4�
>:
H�savebank - save data bank
R��savebank
\�file$,bank%
f$�"Data bank to save (0-5)";bank%
p!�"Destination filename";file$
z� bank%=0 � �savemain
�� bank%=1 � �saveshadow
�1� bank%=2 � �("SRSAVE "+file$+" 8000 C000 4")
�1� bank%=3 � �("SRSAVE "+file$+" 8000 C000 5")
�1� bank%=4 � �("SRSAVE "+file$+" 8000 C000 6")
�1� bank%=5 � �("SRSAVE "+file$+" 8000 C000 7")
��
�:
�&�savemain - save bank in main RAM
���savemain
�?&FE34 = (?&FE34 � &FB)
�!�("SAVE "+file$+" 3C00 7C00")
��
�:
*�saveshadow - save bank in shadow RAM
��saveshadow
?&FE34 = (?&FE34 � &04)
$!�("SAVE "+file$+" 3C00 7C00")
.?&FE34 = (?&FE34 � &FB)
8�
B:
L�enter - enter data
V��enter
`@� a$,i$,i%,blank$,fname$,sname$,a1$,a2$,a3$,a4$,a5$,pc$,phn$
jblank$=�188," ")
t�
~�
�R�i$<>"" � �"Another address (Y/N) ?";:a$=�input("YN",1):�a$="N" �i%=9999:�t`E
��
�%�'"First name and initials:"'"?";
�1fname$=�input(num$+alphaup$+alphalo$+sym$,16)
��'"Surname:"'"?";
�1sname$=�input(num$+alphaup$+alphalo$+sym$,16)
��'"House number/name:"'"?";
�.a1$=�input(num$+alphaup$+alphalo$+sym$,20)
��'"Road name:"'"?";
�.a2$=�input(num$+alphaup$+alphalo$+sym$,25)
� �'"Village / District:"'"?";
�.a3$=�input(num$+alphaup$+alphalo$+sym$,25)
�'"Town:"'"?";

.a4$=�input(num$+alphaup$+alphalo$+sym$,25)
�'"County/Country:"'"?";
.a5$=�input(num$+alphaup$+alphalo$+sym$,20)
(�'"Postcode:"'"?";
2.pc$=�input(num$+alphaup$+alphalo$+sym$,10)
<�'"Phone number:"'"?";
Fphn$=�input(num$+sym$,24)
P1i$=fname$+sname$+a1$+a2$+a3$+a4$+a5$+pc$+phn$
Zi$=i$+�blank$,188-�(i$))
d�'"Location Number:"'"?";
ni%=�(�input(num$,4))
x� i%>521 � �t`E
�i$=�puts(i$,i%)
�$�'"Location ";i%;" now contains"
��i$;"."
��i%=9999
��
�:
�� Input Function
�ݤinput(legal$,maxlen%)
�
�a%,a$,b$
��
��
�a%=�
�(� �legal$,�(a%)) >0 � a%=13 � a%=127
legal%=(�legal$,�(a%)) >0)
mlnex%=(�(a$) < maxlen%)
#� legal% � mlnex% � a$=a$+�(a%)
"� legal% � mlnex% � �a%
,� a%=127 � �(a$) >0 � �a%
6� a%=127 � a$=�a$,�(a$)-1)
@� a%=13
J'a$=a$+��maxlen%," "),maxlen%-�(a$))
T=a$
�
00000000  0d 00 0a 23 f4 82 50 72  6f 63 65 64 75 72 65 73  |...#..Procedures|
00000010  20 74 6f 20 75 74 69 6c  69 73 65 20 61 6c 6c 20  | to utilise all |
00000020  52 41 4d 0d 00 14 19 f4  82 66 6f 72 20 61 6e 20  |RAM......for an |
00000030  61 64 64 72 65 73 73 20  62 6f 6f 6b 0d 00 1e 08  |address book....|
00000040  eb 31 33 35 0d 00 28 0b  d3 3d 26 33 43 30 30 0d  |.135..(..=&3C00.|
00000050  00 32 19 2a 53 52 4c 4f  41 44 20 3f 42 4c 41 4e  |.2.*SRLOAD ?BLAN|
00000060  4b 20 38 30 30 30 20 34  0d 00 3c 19 2a 53 52 4c  |K 8000 4..<.*SRL|
00000070  4f 41 44 20 3f 42 4c 41  4e 4b 20 38 30 30 30 20  |OAD ?BLANK 8000 |
00000080  35 0d 00 46 19 2a 53 52  4c 4f 41 44 20 3f 42 4c  |5..F.*SRLOAD ?BL|
00000090  41 4e 4b 20 38 30 30 30  20 36 0d 00 50 19 2a 53  |ANK 8000 6..P.*S|
000000a0  52 4c 4f 41 44 20 3f 42  4c 41 4e 4b 20 38 30 30  |RLOAD ?BLANK 800|
000000b0  30 20 37 0d 00 5a 12 2a  4c 2e 20 3f 41 42 4f 4f  |0 7..Z.*L. ?ABOO|
000000c0  4b 20 39 30 30 0d 00 64  1f f4 82 42 61 6e 6b 73  |K 900..d...Banks|
000000d0  20 61 72 65 20 6e 75 6d  62 65 72 65 64 20 30 20  | are numbered 0 |
000000e0  74 6f 20 35 0d 00 6e 18  f4 82 42 61 6e 6b 20 30  |to 5..n...Bank 0|
000000f0  20 69 73 20 6d 61 69 6e  20 52 41 4d 0d 00 78 1a  | is main RAM..x.|
00000100  f4 82 42 61 6e 6b 20 31  20 69 73 20 73 68 61 64  |..Bank 1 is shad|
00000110  6f 77 20 52 41 4d 0d 00  82 20 f4 82 42 61 6e 6b  |ow RAM... ..Bank|
00000120  73 20 32 2d 35 20 61 72  65 20 53 69 64 65 77 61  |s 2-5 are Sidewa|
00000130  79 73 20 52 41 4d 0d 00  8c 05 3a 0d 00 96 15 6e  |ys RAM....:....n|
00000140  75 6d 24 3d 22 30 31 32  33 34 35 36 37 38 39 22  |um$="0123456789"|
00000150  0d 00 a0 1b 68 65 78 24  3d 22 30 31 32 33 34 35  |....hex$="012345|
00000160  36 37 38 39 41 42 43 44  45 46 22 0d 00 aa 29 61  |6789ABCDEF"...)a|
00000170  6c 70 68 61 75 70 24 3d  22 41 42 43 44 45 46 47  |lphaup$="ABCDEFG|
00000180  48 49 4a 4b 4c 4d 4e 4f  50 51 52 53 54 55 56 57  |HIJKLMNOPQRSTUVW|
00000190  58 59 5a 22 0d 00 b4 29  61 6c 70 68 61 6c 6f 24  |XYZ"...)alphalo$|
000001a0  3d 22 61 62 63 64 65 66  67 68 69 6a 6b 6c 6d 6e  |="abcdefghijklmn|
000001b0  6f 70 71 72 73 74 75 76  77 78 79 7a 22 0d 00 be  |opqrstuvwxyz"...|
000001c0  28 73 79 6d 24 3d 22 20  21 24 25 26 27 28 29 2c  |(sym$=" !$%&'(),|
000001d0  2e 2f 3c 3e 3f 3b 3a 2b  5b 5d 7b 7d 5f 60 2d 5e  |./<>?;:+[]{}_`-^|
000001e0  5c 3d 7e 7c 22 0d 00 c8  14 62 6c 61 6e 6b 24 3d  |\=~|"....blank$=|
000001f0  c4 31 38 38 2c 22 2a 22  29 0d 00 d2 09 e5 8d 54  |.188,"*")......T|
00000200  6c 41 0d 00 dc 0d 41 24  3d 62 6c 61 6e 6b 24 0d  |lA....A$=blank$.|
00000210  00 e6 07 ef 31 34 0d 00  f0 0d e3 49 25 3d 30 b8  |....14.....I%=0.|
00000220  35 32 31 0d 00 fa 13 42  24 3d a4 70 75 74 73 28  |521....B$=.puts(|
00000230  41 24 2c 49 25 29 0d 01  04 10 42 24 3d a4 67 65  |A$,I%)....B$=.ge|
00000240  74 73 28 49 25 29 0d 01  0e 07 f1 49 25 0d 01 18  |ts(I%).....I%...|
00000250  07 ed 49 25 0d 01 22 05  3a 0d 01 2c 05 f5 0d 01  |..I%..".:..,....|
00000260  36 05 db 0d 01 40 0c f1  22 4d 45 4e 55 3a 22 0d  |6....@.."MENU:".|
00000270  01 4a 0d f1 22 31 2d 4c  4f 41 44 22 0d 01 54 0d  |.J.."1-LOAD"..T.|
00000280  f1 22 32 2d 53 41 56 45  22 0d 01 5e 0e f1 22 33  |."2-SAVE"..^.."3|
00000290  2d 45 4e 54 45 52 22 0d  01 68 0c f1 22 39 2d 45  |-ENTER"..h.."9-E|
000002a0  4e 44 22 0d 01 72 11 e8  22 43 48 4f 49 43 45 20  |ND"..r.."CHOICE |
000002b0  22 3b 43 25 0d 01 7c 10  e7 43 25 3e 33 20 8c 20  |";C%..|..C%>3 . |
000002c0  8d 74 50 41 0d 01 86 23  ee 20 43 25 20 f2 6c 6f  |.tPA...#. C% .lo|
000002d0  61 64 62 61 6e 6b 2c f2  73 61 76 65 62 61 6e 6b  |adbank,.savebank|
000002e0  2c f2 65 6e 74 65 72 0d  01 90 09 fd 43 25 3d 39  |,.enter.....C%=9|
000002f0  0d 01 9a 05 e0 0d 01 a4  05 3a 0d 01 ae 1e f4 82  |.........:......|
00000300  67 65 74 73 20 2d 20 72  65 74 72 69 65 76 65 20  |gets - retrieve |
00000310  61 20 73 74 72 69 6e 67  0d 01 b8 10 dd a4 67 65  |a string......ge|
00000320  74 73 28 6e 75 6d 25 29  0d 01 c2 15 21 26 41 30  |ts(num%)....!&A0|
00000330  30 3d 28 6e 75 6d 25 20  83 20 38 37 29 0d 01 cc  |0=(num% . 87)...|
00000340  15 3f 26 41 30 32 3d 28  6e 75 6d 25 20 81 20 38  |.?&A02=(num% . 8|
00000350  37 29 0d 01 d6 09 d6 26  39 30 30 0d 01 e0 0a 3d  |7).....&900....=|
00000360  24 26 41 30 33 0d 01 ea  05 3a 0d 01 f4 1b f4 82  |$&A03....:......|
00000370  70 75 74 73 20 2d 20 73  74 6f 72 65 20 61 20 73  |puts - store a s|
00000380  74 72 69 6e 67 0d 01 fe  13 dd a4 70 75 74 73 28  |tring......puts(|
00000390  61 24 2c 6e 75 6d 25 29  0d 02 08 15 21 26 41 30  |a$,num%)....!&A0|
000003a0  30 3d 28 6e 75 6d 25 20  83 20 38 37 29 0d 02 12  |0=(num% . 87)...|
000003b0  1b 3f 26 41 30 32 3d 28  6e 75 6d 25 20 81 20 38  |.?&A02=(num% . 8|
000003c0  37 29 20 84 20 26 38 30  0d 02 1c 0c 24 26 41 30  |7) . &80....$&A0|
000003d0  33 3d 61 24 0d 02 26 09  d6 26 39 30 30 0d 02 30  |3=a$..&..&900..0|
000003e0  0a 3d 24 26 41 30 33 0d  02 3a 05 3a 0d 02 44 1f  |.=$&A03..:.:..D.|
000003f0  f4 82 6c 6f 61 64 62 61  6e 6b 20 2d 20 6c 6f 61  |..loadbank - loa|
00000400  64 20 64 61 74 61 20 62  61 6e 6b 0d 02 4e 0e dd  |d data bank..N..|
00000410  f2 6c 6f 61 64 62 61 6e  6b 0d 02 58 10 ea 66 69  |.loadbank..X..fi|
00000420  6c 65 24 2c 62 61 6e 6b  25 0d 02 62 19 e8 22 46  |le$,bank%..b.."F|
00000430  69 6c 65 20 74 6f 20 6c  6f 61 64 22 3b 66 69 6c  |ile to load";fil|
00000440  65 24 0d 02 6c 23 e8 22  44 65 73 74 69 6e 61 74  |e$..l#."Destinat|
00000450  69 6f 6e 20 62 61 6e 6b  20 28 30 2d 35 29 22 3b  |ion bank (0-5)";|
00000460  62 61 6e 6b 25 0d 02 76  19 e7 20 62 61 6e 6b 25  |bank%..v.. bank%|
00000470  3d 30 20 8c 20 f2 6c 6f  61 64 6d 61 69 6e 0d 02  |=0 . .loadmain..|
00000480  80 1b e7 20 62 61 6e 6b  25 3d 31 20 8c 20 f2 6c  |... bank%=1 . .l|
00000490  6f 61 64 73 68 61 64 6f  77 0d 02 8a 2c e7 20 62  |oadshadow...,. b|
000004a0  61 6e 6b 25 3d 32 20 8c  20 ff 28 22 53 52 4c 4f  |ank%=2 . .("SRLO|
000004b0  41 44 20 22 2b 66 69 6c  65 24 2b 22 20 38 30 30  |AD "+file$+" 800|
000004c0  30 20 34 22 29 0d 02 94  2c e7 20 62 61 6e 6b 25  |0 4")...,. bank%|
000004d0  3d 33 20 8c 20 ff 28 22  53 52 4c 4f 41 44 20 22  |=3 . .("SRLOAD "|
000004e0  2b 66 69 6c 65 24 2b 22  20 38 30 30 30 20 35 22  |+file$+" 8000 5"|
000004f0  29 0d 02 9e 2c e7 20 62  61 6e 6b 25 3d 34 20 8c  |)...,. bank%=4 .|
00000500  20 ff 28 22 53 52 4c 4f  41 44 20 22 2b 66 69 6c  | .("SRLOAD "+fil|
00000510  65 24 2b 22 20 38 30 30  30 20 36 22 29 0d 02 a8  |e$+" 8000 6")...|
00000520  2c e7 20 62 61 6e 6b 25  3d 35 20 8c 20 ff 28 22  |,. bank%=5 . .("|
00000530  53 52 4c 4f 41 44 20 22  2b 66 69 6c 65 24 2b 22  |SRLOAD "+file$+"|
00000540  20 38 30 30 30 20 37 22  29 0d 02 b2 05 e1 0d 02  | 8000 7").......|
00000550  bc 05 3a 0d 02 c6 28 f4  82 6c 6f 61 64 6d 61 69  |..:...(..loadmai|
00000560  6e 20 2d 20 6c 6f 61 64  20 62 61 6e 6b 20 69 6e  |n - load bank in|
00000570  74 6f 20 6d 61 69 6e 20  52 41 4d 0d 02 d0 0e dd  |to main RAM.....|
00000580  f2 6c 6f 61 64 6d 61 69  6e 0d 02 da 1b 3f 26 46  |.loadmain....?&F|
00000590  45 33 34 20 3d 20 28 3f  26 46 45 33 34 20 80 20  |E34 = (?&FE34 . |
000005a0  26 46 42 29 0d 02 e4 1a  ff 28 22 4c 2e 20 22 2b  |&FB).....("L. "+|
000005b0  66 69 6c 65 24 2b 22 20  33 43 30 30 22 29 0d 02  |file$+" 3C00")..|
000005c0  ee 05 e1 0d 02 f8 05 3a  0d 03 02 2c f4 82 6c 6f  |.......:...,..lo|
000005d0  61 64 73 68 61 64 6f 77  20 2d 20 6c 6f 61 64 20  |adshadow - load |
000005e0  62 61 6e 6b 20 69 6e 74  6f 20 73 68 61 64 6f 77  |bank into shadow|
000005f0  20 52 41 4d 0d 03 0c 10  dd f2 6c 6f 61 64 73 68  | RAM......loadsh|
00000600  61 64 6f 77 0d 03 16 1b  3f 26 46 45 33 34 20 3d  |adow....?&FE34 =|
00000610  20 28 3f 26 46 45 33 34  20 84 20 26 30 34 29 0d  | (?&FE34 . &04).|
00000620  03 20 1a ff 28 22 4c 2e  20 22 2b 66 69 6c 65 24  |. ..("L. "+file$|
00000630  2b 22 20 33 43 30 30 22  29 0d 03 2a 1b 3f 26 46  |+" 3C00")..*.?&F|
00000640  45 33 34 20 3d 20 28 3f  26 46 45 33 34 20 80 20  |E34 = (?&FE34 . |
00000650  26 46 42 29 0d 03 34 05  e1 0d 03 3e 05 3a 0d 03  |&FB)..4....>.:..|
00000660  48 1f f4 82 73 61 76 65  62 61 6e 6b 20 2d 20 73  |H...savebank - s|
00000670  61 76 65 20 64 61 74 61  20 62 61 6e 6b 0d 03 52  |ave data bank..R|
00000680  0e dd f2 73 61 76 65 62  61 6e 6b 0d 03 5c 10 ea  |...savebank..\..|
00000690  66 69 6c 65 24 2c 62 61  6e 6b 25 0d 03 66 24 e8  |file$,bank%..f$.|
000006a0  22 44 61 74 61 20 62 61  6e 6b 20 74 6f 20 73 61  |"Data bank to sa|
000006b0  76 65 20 28 30 2d 35 29  22 3b 62 61 6e 6b 25 0d  |ve (0-5)";bank%.|
000006c0  03 70 21 e8 22 44 65 73  74 69 6e 61 74 69 6f 6e  |.p!."Destination|
000006d0  20 66 69 6c 65 6e 61 6d  65 22 3b 66 69 6c 65 24  | filename";file$|
000006e0  0d 03 7a 19 e7 20 62 61  6e 6b 25 3d 30 20 8c 20  |..z.. bank%=0 . |
000006f0  f2 73 61 76 65 6d 61 69  6e 0d 03 84 1b e7 20 62  |.savemain..... b|
00000700  61 6e 6b 25 3d 31 20 8c  20 f2 73 61 76 65 73 68  |ank%=1 . .savesh|
00000710  61 64 6f 77 0d 03 8e 31  e7 20 62 61 6e 6b 25 3d  |adow...1. bank%=|
00000720  32 20 8c 20 ff 28 22 53  52 53 41 56 45 20 22 2b  |2 . .("SRSAVE "+|
00000730  66 69 6c 65 24 2b 22 20  38 30 30 30 20 43 30 30  |file$+" 8000 C00|
00000740  30 20 34 22 29 0d 03 98  31 e7 20 62 61 6e 6b 25  |0 4")...1. bank%|
00000750  3d 33 20 8c 20 ff 28 22  53 52 53 41 56 45 20 22  |=3 . .("SRSAVE "|
00000760  2b 66 69 6c 65 24 2b 22  20 38 30 30 30 20 43 30  |+file$+" 8000 C0|
00000770  30 30 20 35 22 29 0d 03  a2 31 e7 20 62 61 6e 6b  |00 5")...1. bank|
00000780  25 3d 34 20 8c 20 ff 28  22 53 52 53 41 56 45 20  |%=4 . .("SRSAVE |
00000790  22 2b 66 69 6c 65 24 2b  22 20 38 30 30 30 20 43  |"+file$+" 8000 C|
000007a0  30 30 30 20 36 22 29 0d  03 ac 31 e7 20 62 61 6e  |000 6")...1. ban|
000007b0  6b 25 3d 35 20 8c 20 ff  28 22 53 52 53 41 56 45  |k%=5 . .("SRSAVE|
000007c0  20 22 2b 66 69 6c 65 24  2b 22 20 38 30 30 30 20  | "+file$+" 8000 |
000007d0  43 30 30 30 20 37 22 29  0d 03 b6 05 e1 0d 03 c0  |C000 7")........|
000007e0  05 3a 0d 03 ca 26 f4 82  73 61 76 65 6d 61 69 6e  |.:...&..savemain|
000007f0  20 2d 20 73 61 76 65 20  62 61 6e 6b 20 69 6e 20  | - save bank in |
00000800  6d 61 69 6e 20 52 41 4d  0d 03 d4 0e dd f2 73 61  |main RAM......sa|
00000810  76 65 6d 61 69 6e 0d 03  de 1b 3f 26 46 45 33 34  |vemain....?&FE34|
00000820  20 3d 20 28 3f 26 46 45  33 34 20 80 20 26 46 42  | = (?&FE34 . &FB|
00000830  29 0d 03 e8 21 ff 28 22  53 41 56 45 20 22 2b 66  |)...!.("SAVE "+f|
00000840  69 6c 65 24 2b 22 20 33  43 30 30 20 37 43 30 30  |ile$+" 3C00 7C00|
00000850  22 29 0d 03 f2 05 e1 0d  03 fc 05 3a 0d 04 06 2a  |").........:...*|
00000860  f4 82 73 61 76 65 73 68  61 64 6f 77 20 2d 20 73  |..saveshadow - s|
00000870  61 76 65 20 62 61 6e 6b  20 69 6e 20 73 68 61 64  |ave bank in shad|
00000880  6f 77 20 52 41 4d 0d 04  10 10 dd f2 73 61 76 65  |ow RAM......save|
00000890  73 68 61 64 6f 77 0d 04  1a 1b 3f 26 46 45 33 34  |shadow....?&FE34|
000008a0  20 3d 20 28 3f 26 46 45  33 34 20 84 20 26 30 34  | = (?&FE34 . &04|
000008b0  29 0d 04 24 21 ff 28 22  53 41 56 45 20 22 2b 66  |)..$!.("SAVE "+f|
000008c0  69 6c 65 24 2b 22 20 33  43 30 30 20 37 43 30 30  |ile$+" 3C00 7C00|
000008d0  22 29 0d 04 2e 1b 3f 26  46 45 33 34 20 3d 20 28  |")....?&FE34 = (|
000008e0  3f 26 46 45 33 34 20 80  20 26 46 42 29 0d 04 38  |?&FE34 . &FB)..8|
000008f0  05 e1 0d 04 42 05 3a 0d  04 4c 18 f4 82 65 6e 74  |....B.:..L...ent|
00000900  65 72 20 2d 20 65 6e 74  65 72 20 64 61 74 61 0d  |er - enter data.|
00000910  04 56 0b dd f2 65 6e 74  65 72 0d 04 60 40 ea 20  |.V...enter..`@. |
00000920  61 24 2c 69 24 2c 69 25  2c 62 6c 61 6e 6b 24 2c  |a$,i$,i%,blank$,|
00000930  66 6e 61 6d 65 24 2c 73  6e 61 6d 65 24 2c 61 31  |fname$,sname$,a1|
00000940  24 2c 61 32 24 2c 61 33  24 2c 61 34 24 2c 61 35  |$,a2$,a3$,a4$,a5|
00000950  24 2c 70 63 24 2c 70 68  6e 24 0d 04 6a 14 62 6c  |$,pc$,phn$..j.bl|
00000960  61 6e 6b 24 3d c4 31 38  38 2c 22 20 22 29 0d 04  |ank$=.188," ")..|
00000970  74 05 db 0d 04 7e 05 f5  0d 04 88 52 e7 69 24 3c  |t....~.....R.i$<|
00000980  3e 22 22 20 8c 20 f1 22  41 6e 6f 74 68 65 72 20  |>"" . ."Another |
00000990  61 64 64 72 65 73 73 20  28 59 2f 4e 29 20 3f 22  |address (Y/N) ?"|
000009a0  3b 3a 61 24 3d a4 69 6e  70 75 74 28 22 59 4e 22  |;:a$=.input("YN"|
000009b0  2c 31 29 3a e7 61 24 3d  22 4e 22 20 8c 69 25 3d  |,1):.a$="N" .i%=|
000009c0  39 39 39 39 3a e5 8d 74  60 45 0d 04 92 05 db 0d  |9999:..t`E......|
000009d0  04 9c 25 f1 27 22 46 69  72 73 74 20 6e 61 6d 65  |..%.'"First name|
000009e0  20 61 6e 64 20 69 6e 69  74 69 61 6c 73 3a 22 27  | and initials:"'|
000009f0  22 3f 22 3b 0d 04 a6 31  66 6e 61 6d 65 24 3d a4  |"?";...1fname$=.|
00000a00  69 6e 70 75 74 28 6e 75  6d 24 2b 61 6c 70 68 61  |input(num$+alpha|
00000a10  75 70 24 2b 61 6c 70 68  61 6c 6f 24 2b 73 79 6d  |up$+alphalo$+sym|
00000a20  24 2c 31 36 29 0d 04 b0  15 f1 27 22 53 75 72 6e  |$,16).....'"Surn|
00000a30  61 6d 65 3a 22 27 22 3f  22 3b 0d 04 ba 31 73 6e  |ame:"'"?";...1sn|
00000a40  61 6d 65 24 3d a4 69 6e  70 75 74 28 6e 75 6d 24  |ame$=.input(num$|
00000a50  2b 61 6c 70 68 61 75 70  24 2b 61 6c 70 68 61 6c  |+alphaup$+alphal|
00000a60  6f 24 2b 73 79 6d 24 2c  31 36 29 0d 04 c4 1f f1  |o$+sym$,16).....|
00000a70  27 22 48 6f 75 73 65 20  6e 75 6d 62 65 72 2f 6e  |'"House number/n|
00000a80  61 6d 65 3a 22 27 22 3f  22 3b 0d 04 ce 2e 61 31  |ame:"'"?";....a1|
00000a90  24 3d a4 69 6e 70 75 74  28 6e 75 6d 24 2b 61 6c  |$=.input(num$+al|
00000aa0  70 68 61 75 70 24 2b 61  6c 70 68 61 6c 6f 24 2b  |phaup$+alphalo$+|
00000ab0  73 79 6d 24 2c 32 30 29  0d 04 d8 17 f1 27 22 52  |sym$,20).....'"R|
00000ac0  6f 61 64 20 6e 61 6d 65  3a 22 27 22 3f 22 3b 0d  |oad name:"'"?";.|
00000ad0  04 e2 2e 61 32 24 3d a4  69 6e 70 75 74 28 6e 75  |...a2$=.input(nu|
00000ae0  6d 24 2b 61 6c 70 68 61  75 70 24 2b 61 6c 70 68  |m$+alphaup$+alph|
00000af0  61 6c 6f 24 2b 73 79 6d  24 2c 32 35 29 0d 04 ec  |alo$+sym$,25)...|
00000b00  20 f1 27 22 56 69 6c 6c  61 67 65 20 2f 20 44 69  | .'"Village / Di|
00000b10  73 74 72 69 63 74 3a 22  27 22 3f 22 3b 0d 04 f6  |strict:"'"?";...|
00000b20  2e 61 33 24 3d a4 69 6e  70 75 74 28 6e 75 6d 24  |.a3$=.input(num$|
00000b30  2b 61 6c 70 68 61 75 70  24 2b 61 6c 70 68 61 6c  |+alphaup$+alphal|
00000b40  6f 24 2b 73 79 6d 24 2c  32 35 29 0d 05 00 12 f1  |o$+sym$,25).....|
00000b50  27 22 54 6f 77 6e 3a 22  27 22 3f 22 3b 0d 05 0a  |'"Town:"'"?";...|
00000b60  2e 61 34 24 3d a4 69 6e  70 75 74 28 6e 75 6d 24  |.a4$=.input(num$|
00000b70  2b 61 6c 70 68 61 75 70  24 2b 61 6c 70 68 61 6c  |+alphaup$+alphal|
00000b80  6f 24 2b 73 79 6d 24 2c  32 35 29 0d 05 14 1c f1  |o$+sym$,25).....|
00000b90  27 22 43 6f 75 6e 74 79  2f 43 6f 75 6e 74 72 79  |'"County/Country|
00000ba0  3a 22 27 22 3f 22 3b 0d  05 1e 2e 61 35 24 3d a4  |:"'"?";....a5$=.|
00000bb0  69 6e 70 75 74 28 6e 75  6d 24 2b 61 6c 70 68 61  |input(num$+alpha|
00000bc0  75 70 24 2b 61 6c 70 68  61 6c 6f 24 2b 73 79 6d  |up$+alphalo$+sym|
00000bd0  24 2c 32 30 29 0d 05 28  16 f1 27 22 50 6f 73 74  |$,20)..(..'"Post|
00000be0  63 6f 64 65 3a 22 27 22  3f 22 3b 0d 05 32 2e 70  |code:"'"?";..2.p|
00000bf0  63 24 3d a4 69 6e 70 75  74 28 6e 75 6d 24 2b 61  |c$=.input(num$+a|
00000c00  6c 70 68 61 75 70 24 2b  61 6c 70 68 61 6c 6f 24  |lphaup$+alphalo$|
00000c10  2b 73 79 6d 24 2c 31 30  29 0d 05 3c 1a f1 27 22  |+sym$,10)..<..'"|
00000c20  50 68 6f 6e 65 20 6e 75  6d 62 65 72 3a 22 27 22  |Phone number:"'"|
00000c30  3f 22 3b 0d 05 46 1d 70  68 6e 24 3d a4 69 6e 70  |?";..F.phn$=.inp|
00000c40  75 74 28 6e 75 6d 24 2b  73 79 6d 24 2c 32 34 29  |ut(num$+sym$,24)|
00000c50  0d 05 50 31 69 24 3d 66  6e 61 6d 65 24 2b 73 6e  |..P1i$=fname$+sn|
00000c60  61 6d 65 24 2b 61 31 24  2b 61 32 24 2b 61 33 24  |ame$+a1$+a2$+a3$|
00000c70  2b 61 34 24 2b 61 35 24  2b 70 63 24 2b 70 68 6e  |+a4$+a5$+pc$+phn|
00000c80  24 0d 05 5a 1c 69 24 3d  69 24 2b c2 62 6c 61 6e  |$..Z.i$=i$+.blan|
00000c90  6b 24 2c 31 38 38 2d a9  28 69 24 29 29 0d 05 64  |k$,188-.(i$))..d|
00000ca0  1d f1 27 22 4c 6f 63 61  74 69 6f 6e 20 4e 75 6d  |..'"Location Num|
00000cb0  62 65 72 3a 22 27 22 3f  22 3b 0d 05 6e 18 69 25  |ber:"'"?";..n.i%|
00000cc0  3d a0 28 a4 69 6e 70 75  74 28 6e 75 6d 24 2c 34  |=.(.input(num$,4|
00000cd0  29 29 0d 05 78 13 e7 20  69 25 3e 35 32 31 20 8c  |))..x.. i%>521 .|
00000ce0  20 8d 74 60 45 0d 05 82  13 69 24 3d a4 70 75 74  | .t`E....i$=.put|
00000cf0  73 28 69 24 2c 69 25 29  0d 05 8c 24 f1 27 22 4c  |s(i$,i%)...$.'"L|
00000d00  6f 63 61 74 69 6f 6e 20  22 3b 69 25 3b 22 20 6e  |ocation ";i%;" n|
00000d10  6f 77 20 63 6f 6e 74 61  69 6e 73 22 0d 05 96 0b  |ow contains"....|
00000d20  f1 69 24 3b 22 2e 22 0d  05 a0 0c fd 69 25 3d 39  |.i$;".".....i%=9|
00000d30  39 39 39 0d 05 aa 05 e1  0d 05 b4 05 3a 0d 05 be  |999.........:...|
00000d40  14 f4 20 49 6e 70 75 74  20 46 75 6e 63 74 69 6f  |.. Input Functio|
00000d50  6e 0d 05 c8 1b dd a4 69  6e 70 75 74 28 6c 65 67  |n......input(leg|
00000d60  61 6c 24 2c 6d 61 78 6c  65 6e 25 29 0d 05 d2 0d  |al$,maxlen%)....|
00000d70  ea 61 25 2c 61 24 2c 62  24 0d 05 dc 05 f5 0d 05  |.a%,a$,b$.......|
00000d80  e6 05 f5 0d 05 f0 08 61  25 3d a5 0d 05 fa 28 fd  |.......a%=....(.|
00000d90  20 a7 6c 65 67 61 6c 24  2c bd 28 61 25 29 29 20  | .legal$,.(a%)) |
00000da0  3e 30 20 84 20 61 25 3d  31 33 20 84 20 61 25 3d  |>0 . a%=13 . a%=|
00000db0  31 32 37 0d 06 04 1e 6c  65 67 61 6c 25 3d 28 a7  |127....legal%=(.|
00000dc0  6c 65 67 61 6c 24 2c bd  28 61 25 29 29 20 3e 30  |legal$,.(a%)) >0|
00000dd0  29 0d 06 0e 1c 6d 6c 6e  65 78 25 3d 28 a9 28 61  |)....mlnex%=(.(a|
00000de0  24 29 20 3c 20 6d 61 78  6c 65 6e 25 29 0d 06 18  |$) < maxlen%)...|
00000df0  23 e7 20 6c 65 67 61 6c  25 20 80 20 6d 6c 6e 65  |#. legal% . mlne|
00000e00  78 25 20 8c 20 61 24 3d  61 24 2b bd 28 61 25 29  |x% . a$=a$+.(a%)|
00000e10  0d 06 22 1b e7 20 6c 65  67 61 6c 25 20 80 20 6d  |..".. legal% . m|
00000e20  6c 6e 65 78 25 20 8c 20  ef 61 25 0d 06 2c 1d e7  |lnex% . .a%..,..|
00000e30  20 61 25 3d 31 32 37 20  80 20 a9 28 61 24 29 20  | a%=127 . .(a$) |
00000e40  3e 30 20 8c 20 ef 61 25  0d 06 36 1e e7 20 61 25  |>0 . .a%..6.. a%|
00000e50  3d 31 32 37 20 8c 20 61  24 3d c0 61 24 2c a9 28  |=127 . a$=.a$,.(|
00000e60  61 24 29 2d 31 29 0d 06  40 0b fd 20 61 25 3d 31  |a$)-1)..@.. a%=1|
00000e70  33 0d 06 4a 27 61 24 3d  61 24 2b c2 c4 6d 61 78  |3..J'a$=a$+..max|
00000e80  6c 65 6e 25 2c 22 20 22  29 2c 6d 61 78 6c 65 6e  |len%," "),maxlen|
00000e90  25 2d a9 28 61 24 29 29  0d 06 54 07 3d 61 24 0d  |%-.(a$))..T.=a$.|
00000ea0  ff                                                |.|
00000ea1
P/ABOOK1.m0
P/ABOOK1.m1
P/ABOOK1.m2
P/ABOOK1.m4
P/ABOOK1.m5