Home » Personal collection » Acorn hard disk » unzip_tools » !Infozip » !Boot

!Boot

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 hard disk » unzip_tools » !Infozip
Filename: !Boot
Read OK:
File size: 0469 bytes
Load address: 0000
Exec address: 0000
File contents
Set Infozip$Dir <Obey$Dir>
IconSprites <Infozip$Dir>.!Sprites
If "<Boot$OSVersion>">=400 Then IconSprites <Infozip$Dir>.4Sprites

RMEnsure WindowManager 400 IconSprites <Infozip$Dir>.Resources.file_xxx
|Add RISC OS 4-style 'unknown filetype' sprite in place of blank white one.
|Comment this out if you find it annoying!

Set Infozip$DontCompress "68E,3FB,FCA,C85,695,1AD"
| (You can edit this list to add more compressed filetypes)

If "<Alias$@RunType_DDC>" = "" Then Set Alias$@RunType_DDC Run <Infozip$Dir>.!Run -zip %%*0
If "<File$Type_DDC>" = "" Then Set File$Type_DDC Archive

If "<Alias$@RunType_A91>" = "" Then Set Alias$@RunType_A91 Run <Infozip$Dir>.!Run -zip %%*0
If "<File$Type_A91>" = "" Then Set File$Type_A91 Zip
| now defined by RISC OS Select

| Add Info-ZIP routines to Run$Path
If "<Infozip$Path>" =  "" Then Set Run$Path <Run$Path>,Infozip:
Set Infozip$Path <Infozip$Dir>.Routines.

| Set up our alias veneers for zip and unzip (700K seems to work...)
Set Alias$zip WimpSlot -min 700K -max 700K|M%%zip %%*0
Set Alias$unzip WimpSlot -min 700K -max 700K|M%%unzip %%*0

Set Infozip$debugfile "IDEFS::4.$.Ziplog"
00000000  53 65 74 20 49 6e 66 6f  7a 69 70 24 44 69 72 20  |Set Infozip$Dir |
00000010  3c 4f 62 65 79 24 44 69  72 3e 0a 49 63 6f 6e 53  |<Obey$Dir>.IconS|
00000020  70 72 69 74 65 73 20 3c  49 6e 66 6f 7a 69 70 24  |prites <Infozip$|
00000030  44 69 72 3e 2e 21 53 70  72 69 74 65 73 0a 49 66  |Dir>.!Sprites.If|
00000040  20 22 3c 42 6f 6f 74 24  4f 53 56 65 72 73 69 6f  | "<Boot$OSVersio|
00000050  6e 3e 22 3e 3d 34 30 30  20 54 68 65 6e 20 49 63  |n>">=400 Then Ic|
00000060  6f 6e 53 70 72 69 74 65  73 20 3c 49 6e 66 6f 7a  |onSprites <Infoz|
00000070  69 70 24 44 69 72 3e 2e  34 53 70 72 69 74 65 73  |ip$Dir>.4Sprites|
00000080  0a 0a 52 4d 45 6e 73 75  72 65 20 57 69 6e 64 6f  |..RMEnsure Windo|
00000090  77 4d 61 6e 61 67 65 72  20 34 30 30 20 49 63 6f  |wManager 400 Ico|
000000a0  6e 53 70 72 69 74 65 73  20 3c 49 6e 66 6f 7a 69  |nSprites <Infozi|
000000b0  70 24 44 69 72 3e 2e 52  65 73 6f 75 72 63 65 73  |p$Dir>.Resources|
000000c0  2e 66 69 6c 65 5f 78 78  78 0a 7c 41 64 64 20 52  |.file_xxx.|Add R|
000000d0  49 53 43 20 4f 53 20 34  2d 73 74 79 6c 65 20 27  |ISC OS 4-style '|
000000e0  75 6e 6b 6e 6f 77 6e 20  66 69 6c 65 74 79 70 65  |unknown filetype|
000000f0  27 20 73 70 72 69 74 65  20 69 6e 20 70 6c 61 63  |' sprite in plac|
00000100  65 20 6f 66 20 62 6c 61  6e 6b 20 77 68 69 74 65  |e of blank white|
00000110  20 6f 6e 65 2e 0a 7c 43  6f 6d 6d 65 6e 74 20 74  | one..|Comment t|
00000120  68 69 73 20 6f 75 74 20  69 66 20 79 6f 75 20 66  |his out if you f|
00000130  69 6e 64 20 69 74 20 61  6e 6e 6f 79 69 6e 67 21  |ind it annoying!|
00000140  0a 0a 53 65 74 20 49 6e  66 6f 7a 69 70 24 44 6f  |..Set Infozip$Do|
00000150  6e 74 43 6f 6d 70 72 65  73 73 20 22 36 38 45 2c  |ntCompress "68E,|
00000160  33 46 42 2c 46 43 41 2c  43 38 35 2c 36 39 35 2c  |3FB,FCA,C85,695,|
00000170  31 41 44 22 0a 7c 20 28  59 6f 75 20 63 61 6e 20  |1AD".| (You can |
00000180  65 64 69 74 20 74 68 69  73 20 6c 69 73 74 20 74  |edit this list t|
00000190  6f 20 61 64 64 20 6d 6f  72 65 20 63 6f 6d 70 72  |o add more compr|
000001a0  65 73 73 65 64 20 66 69  6c 65 74 79 70 65 73 29  |essed filetypes)|
000001b0  0a 0a 49 66 20 22 3c 41  6c 69 61 73 24 40 52 75  |..If "<Alias$@Ru|
000001c0  6e 54 79 70 65 5f 44 44  43 3e 22 20 3d 20 22 22  |nType_DDC>" = ""|
000001d0  20 54 68 65 6e 20 53 65  74 20 41 6c 69 61 73 24  | Then Set Alias$|
000001e0  40 52 75 6e 54 79 70 65  5f 44 44 43 20 52 75 6e  |@RunType_DDC Run|
000001f0  20 3c 49 6e 66 6f 7a 69  70 24 44 69 72 3e 2e 21  | <Infozip$Dir>.!|
00000200  52 75 6e 20 2d 7a 69 70  20 25 25 2a 30 0a 49 66  |Run -zip %%*0.If|
00000210  20 22 3c 46 69 6c 65 24  54 79 70 65 5f 44 44 43  | "<File$Type_DDC|
00000220  3e 22 20 3d 20 22 22 20  54 68 65 6e 20 53 65 74  |>" = "" Then Set|
00000230  20 46 69 6c 65 24 54 79  70 65 5f 44 44 43 20 41  | File$Type_DDC A|
00000240  72 63 68 69 76 65 0a 0a  49 66 20 22 3c 41 6c 69  |rchive..If "<Ali|
00000250  61 73 24 40 52 75 6e 54  79 70 65 5f 41 39 31 3e  |as$@RunType_A91>|
00000260  22 20 3d 20 22 22 20 54  68 65 6e 20 53 65 74 20  |" = "" Then Set |
00000270  41 6c 69 61 73 24 40 52  75 6e 54 79 70 65 5f 41  |Alias$@RunType_A|
00000280  39 31 20 52 75 6e 20 3c  49 6e 66 6f 7a 69 70 24  |91 Run <Infozip$|
00000290  44 69 72 3e 2e 21 52 75  6e 20 2d 7a 69 70 20 25  |Dir>.!Run -zip %|
000002a0  25 2a 30 0a 49 66 20 22  3c 46 69 6c 65 24 54 79  |%*0.If "<File$Ty|
000002b0  70 65 5f 41 39 31 3e 22  20 3d 20 22 22 20 54 68  |pe_A91>" = "" Th|
000002c0  65 6e 20 53 65 74 20 46  69 6c 65 24 54 79 70 65  |en Set File$Type|
000002d0  5f 41 39 31 20 5a 69 70  0a 7c 20 6e 6f 77 20 64  |_A91 Zip.| now d|
000002e0  65 66 69 6e 65 64 20 62  79 20 52 49 53 43 20 4f  |efined by RISC O|
000002f0  53 20 53 65 6c 65 63 74  0a 0a 7c 20 41 64 64 20  |S Select..| Add |
00000300  49 6e 66 6f 2d 5a 49 50  20 72 6f 75 74 69 6e 65  |Info-ZIP routine|
00000310  73 20 74 6f 20 52 75 6e  24 50 61 74 68 0a 49 66  |s to Run$Path.If|
00000320  20 22 3c 49 6e 66 6f 7a  69 70 24 50 61 74 68 3e  | "<Infozip$Path>|
00000330  22 20 3d 20 20 22 22 20  54 68 65 6e 20 53 65 74  |" =  "" Then Set|
00000340  20 52 75 6e 24 50 61 74  68 20 3c 52 75 6e 24 50  | Run$Path <Run$P|
00000350  61 74 68 3e 2c 49 6e 66  6f 7a 69 70 3a 0a 53 65  |ath>,Infozip:.Se|
00000360  74 20 49 6e 66 6f 7a 69  70 24 50 61 74 68 20 3c  |t Infozip$Path <|
00000370  49 6e 66 6f 7a 69 70 24  44 69 72 3e 2e 52 6f 75  |Infozip$Dir>.Rou|
00000380  74 69 6e 65 73 2e 0a 0a  7c 20 53 65 74 20 75 70  |tines...| Set up|
00000390  20 6f 75 72 20 61 6c 69  61 73 20 76 65 6e 65 65  | our alias venee|
000003a0  72 73 20 66 6f 72 20 7a  69 70 20 61 6e 64 20 75  |rs for zip and u|
000003b0  6e 7a 69 70 20 28 37 30  30 4b 20 73 65 65 6d 73  |nzip (700K seems|
000003c0  20 74 6f 20 77 6f 72 6b  2e 2e 2e 29 0a 53 65 74  | to work...).Set|
000003d0  20 41 6c 69 61 73 24 7a  69 70 20 57 69 6d 70 53  | Alias$zip WimpS|
000003e0  6c 6f 74 20 2d 6d 69 6e  20 37 30 30 4b 20 2d 6d  |lot -min 700K -m|
000003f0  61 78 20 37 30 30 4b 7c  4d 25 25 7a 69 70 20 25  |ax 700K|M%%zip %|
00000400  25 2a 30 0a 53 65 74 20  41 6c 69 61 73 24 75 6e  |%*0.Set Alias$un|
00000410  7a 69 70 20 57 69 6d 70  53 6c 6f 74 20 2d 6d 69  |zip WimpSlot -mi|
00000420  6e 20 37 30 30 4b 20 2d  6d 61 78 20 37 30 30 4b  |n 700K -max 700K|
00000430  7c 4d 25 25 75 6e 7a 69  70 20 25 25 2a 30 0a 0a  ||M%%unzip %%*0..|
00000440  53 65 74 20 49 6e 66 6f  7a 69 70 24 64 65 62 75  |Set Infozip$debu|
00000450  67 66 69 6c 65 20 22 49  44 45 46 53 3a 3a 34 2e  |gfile "IDEFS::4.|
00000460  24 2e 5a 69 70 6c 6f 67  22                       |$.Ziplog"|
00000469