Home » Archimedes archive » Acorn User » AU 1994-01.adf » !StarInfo_StarInfo » Anderson/Packer

Anderson/Packer

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 » Archimedes archive » Acorn User » AU 1994-01.adf » !StarInfo_StarInfo
Filename: Anderson/Packer
Read OK:
File size: 0454 bytes
Load address: 0000
Exec address: 0000
File contents
,<t�<�StringPackertriString Packer	1.01 (10 Aug 1993)  By Robert Andersonrt StringPackertri�The StringPacker module packs and unpacks BASIC strings, via two SYS commands :
	SYS "Packer_PackString",valid$,start$ TO addr% : packed$= $addr%
	SYS "Packer_UnpackString",valid$,packed$ TO unpacked$
where valid$ is the validation string containing all the characters that can be used in the string concerned, and start$ is the string to be compacted.
�PackerPackStringUnpackString@-�`�������<��� ��������O-�`��������[��0�����X���0��+�P�I� ��@��
���X�
���������Y�0
Y�����P@������2� R�Z ��
S�0��0����0��PU��Z@��
���X��R�

S�0��0����
0��0�����������������X�������P���H�Y�����@���������������O����YCharacter ' ' not in validation stringY���������X��
��������
������@��������P��� �����X��H�0��P@���5� R�Z �������X��H�PU��Z0C����0�����@��S��@D�
������������
00000000  00 00 00 00 18 02 00 00  00 00 00 00 00 00 00 00  |................|
00000010  2c 00 00 00 3c 00 00 00  74 00 00 00 00 e9 0c 00  |,...<...t.......|
00000020  3c 02 00 00 f8 01 00 00  00 00 00 00 53 74 72 69  |<...........Stri|
00000030  6e 67 50 61 63 6b 65 72  00 74 72 69 53 74 72 69  |ngPacker.triStri|
00000040  6e 67 20 50 61 63 6b 65  72 09 31 2e 30 31 20 28  |ng Packer.1.01 (|
00000050  31 30 20 41 75 67 20 31  39 39 33 29 20 20 42 79  |10 Aug 1993)  By|
00000060  20 52 6f 62 65 72 74 20  41 6e 64 65 72 73 6f 6e  | Robert Anderson|
00000070  00 72 74 20 53 74 72 69  6e 67 50 61 63 6b 65 72  |.rt StringPacker|
00000080  00 74 72 69 00 00 00 00  00 00 00 00 00 00 00 00  |.tri............|
00000090  94 00 00 00 54 68 65 20  53 74 72 69 6e 67 50 61  |....The StringPa|
000000a0  63 6b 65 72 20 6d 6f 64  75 6c 65 20 70 61 63 6b  |cker module pack|
000000b0  73 20 61 6e 64 20 75 6e  70 61 63 6b 73 20 42 41  |s and unpacks BA|
000000c0  53 49 43 20 73 74 72 69  6e 67 73 2c 20 76 69 61  |SIC strings, via|
000000d0  20 74 77 6f 20 53 59 53  20 63 6f 6d 6d 61 6e 64  | two SYS command|
000000e0  73 20 3a 0d 09 53 59 53  20 22 50 61 63 6b 65 72  |s :..SYS "Packer|
000000f0  5f 50 61 63 6b 53 74 72  69 6e 67 22 2c 76 61 6c  |_PackString",val|
00000100  69 64 24 2c 73 74 61 72  74 24 20 54 4f 20 61 64  |id$,start$ TO ad|
00000110  64 72 25 20 3a 20 70 61  63 6b 65 64 24 3d 20 24  |dr% : packed$= $|
00000120  61 64 64 72 25 0d 09 53  59 53 20 22 50 61 63 6b  |addr%..SYS "Pack|
00000130  65 72 5f 55 6e 70 61 63  6b 53 74 72 69 6e 67 22  |er_UnpackString"|
00000140  2c 76 61 6c 69 64 24 2c  70 61 63 6b 65 64 24 20  |,valid$,packed$ |
00000150  54 4f 20 75 6e 70 61 63  6b 65 64 24 0d 77 68 65  |TO unpacked$.whe|
00000160  72 65 20 76 61 6c 69 64  24 20 69 73 20 74 68 65  |re valid$ is the|
00000170  20 76 61 6c 69 64 61 74  69 6f 6e 20 73 74 72 69  | validation stri|
00000180  6e 67 20 63 6f 6e 74 61  69 6e 69 6e 67 20 61 6c  |ng containing al|
00000190  6c 20 74 68 65 20 63 68  61 72 61 63 74 65 72 73  |l the characters|
000001a0  20 74 68 61 74 20 63 61  6e 20 62 65 20 75 73 65  | that can be use|
000001b0  64 20 69 6e 20 74 68 65  20 73 74 72 69 6e 67 20  |d in the string |
000001c0  63 6f 6e 63 65 72 6e 65  64 2c 20 61 6e 64 20 73  |concerned, and s|
000001d0  74 61 72 74 24 20 69 73  20 74 68 65 20 73 74 72  |tart$ is the str|
000001e0  69 6e 67 20 74 6f 20 62  65 20 63 6f 6d 70 61 63  |ing to be compac|
000001f0  74 65 64 2e 00 0d 00 c8  50 61 63 6b 65 72 00 50  |ted.....Packer.P|
00000200  61 63 6b 53 74 72 69 6e  67 00 55 6e 70 61 63 6b  |ackString.Unpack|
00000210  53 74 72 69 6e 67 00 00  00 40 2d e9 0c 60 a0 e1  |String...@-..`..|
00000220  00 c0 9c e5 06 00 a0 e3  01 3c a0 e3 1e 00 00 ef  |.........<......|
00000230  00 20 86 e5 06 c0 a0 e1  00 80 bd e8 fc 4f 2d e9  |. ...........O-.|
00000240  00 60 a0 e1 01 a0 a0 e1  00 c0 9c e5 02 00 5b e3  |.`............[.|
00000250  0b f1 8f 30 fc 8f bd e8  00 00 00 ea 58 00 00 ea  |...0........X...|
00000260  00 10 a0 e3 00 30 a0 e3  2b 00 00 eb 08 00 50 e3  |.....0..+.....P.|
00000270  49 00 00 aa 07 20 a0 e3  00 40 a0 e3 0a 80 d4 e7  |I.... ...@......|
00000280  00 00 58 e3 1f 00 00 0a  00 b0 a0 e3 06 90 db e7  |..X.............|
00000290  01 b0 8b e2 00 00 59 e3  30 00 00 0a 08 00 59 e1  |......Y.0.....Y.|
000002a0  f9 ff ff 1a 0b 80 a0 e1  01 50 40 e2 01 b0 a0 e3  |.........P@.....|
000002b0  1b 95 18 e0 1b 32 83 11  01 20 52 e2 05 00 00 5a  |.....2... R....Z|
000002c0  07 20 a0 e3 0d 00 53 e3  01 30 83 a2 0c 30 c1 e7  |. ....S..0...0..|
000002d0  01 10 81 e2 00 30 a0 e3  01 50 55 e2 f3 ff ff 5a  |.....0...PU....Z|
000002e0  01 40 84 e2 0a 80 d4 e7  00 00 58 e3 e5 ff ff 1a  |.@........X.....|
000002f0  07 00 52 e3 03 00 00 0a  0d 00 53 e3 01 30 83 a2  |..R.......S..0..|
00000300  0c 30 c1 e7 01 10 81 e2  0d 30 a0 e3 0c 30 c1 e7  |.0.......0...0..|
00000310  00 10 a0 e1 0c 00 a0 e1  fc 8f bd e8 00 90 a0 e3  |................|
00000320  06 80 d9 e7 01 90 89 e2  00 00 58 e3 fb ff ff 1a  |..........X.....|
00000330  07 00 a0 e3 01 8c a0 e3  02 50 a0 e3 03 80 48 e2  |.........P....H.|
00000340  08 00 59 e1 03 00 00 aa  03 80 88 e2 01 00 40 e2  |..Y...........@.|
00000350  15 80 a0 e1 f8 ff ff ea  02 00 80 e2 0e f0 a0 e1  |................|
00000360  08 00 8f e2 0f 80 c0 e5  fc 4f bd e8 01 f2 9e e3  |.........O......|
00000370  59 01 00 00 43 68 61 72  61 63 74 65 72 20 27 20  |Y...Character ' |
00000380  27 20 6e 6f 74 20 69 6e  20 76 61 6c 69 64 61 74  |' not in validat|
00000390  69 6f 6e 20 73 74 72 69  6e 67 00 59 00 b0 a0 e3  |ion string.Y....|
000003a0  01 b0 8b e2 0b 80 da e7  00 00 58 e3 fb ff ff 1a  |..........X.....|
000003b0  0d 80 a0 e3 0b 80 ca e7  08 10 a0 e3 0a 00 a0 e1  |................|
000003c0  fc 8f bd e8 00 10 a0 e3  00 40 a0 e3 01 b0 a0 e3  |.........@......|
000003d0  d1 ff ff eb 08 00 50 e3  ef ff ff aa 07 20 a0 e3  |......P...... ..|
000003e0  01 80 da e7 0e 00 58 e3  01 80 48 a2 00 30 a0 e3  |......X...H..0..|
000003f0  01 50 40 e2 1b 92 18 e0  1b 35 83 11 01 20 52 e2  |.P@......5... R.|
00000400  04 00 00 5a 07 20 a0 e3  01 10 81 e2 01 80 da e7  |...Z. ..........|
00000410  0e 00 58 e3 01 80 48 a2  01 50 55 e2 f4 ff ff 5a  |..X...H..PU....Z|
00000420  01 30 43 e2 03 90 d6 e7  01 30 83 e2 04 90 cc e7  |.0C......0......|
00000430  01 40 84 e2 00 00 53 e3  eb ff ff 1a 01 40 44 e2  |.@....S......@D.|
00000440  0d 90 a0 e3 04 90 cc e7  00 10 a0 e1 0c 00 a0 e1  |................|
00000450  fc 8f bd e8                                       |....|
00000454