Home » Archimedes archive » Archimedes World » archimedes_world_volume_15_issue_1_scp.adf » !ProFiler_ProFiler » !ProFiler/Utilities/GenCon/Functions/Pipe
!ProFiler/Utilities/GenCon/Functions/Pipe
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 » Archimedes World » archimedes_world_volume_15_issue_1_scp.adf » !ProFiler_ProFiler |
Filename: | !ProFiler/Utilities/GenCon/Functions/Pipe |
Read OK: | ✔ |
File size: | 0158 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
10REM>Pipe 20REM Example of generic converter 30REM Just copy the file (to get a more intelligent copy/rename) 40REM FNOutput returns output type depending on input 50REM FNConvert converts I$ to O$, and returns error string if any 60 70DEFFNOutput(T%) 80IFT%<&1000 =T% ELSE=-2 90 100DEFFNConvert(I$,O$) 110ONERRORLOCAL=REPORT$ 120SYS "OS_FSControl",26,I$,O$,2 130=""
�>Pipe "� Example of generic converter @� Just copy the file (to get a more intelligent copy/rename) (5� FNOutput returns output type depending on input 2B� FNConvert converts I$ to O$, and returns error string if any < FݤOutput(T%) P�T%<&1000 =T% �=-2 Z dݤConvert(I$,O$) n ��=�$ x ș "OS_FSControl",26,I$,O$,2 �="" �
00000000 0d 00 0a 0a f4 3e 50 69 70 65 0d 00 14 22 f4 20 |.....>Pipe...". | 00000010 45 78 61 6d 70 6c 65 20 6f 66 20 67 65 6e 65 72 |Example of gener| 00000020 69 63 20 63 6f 6e 76 65 72 74 65 72 0d 00 1e 40 |ic converter...@| 00000030 f4 20 4a 75 73 74 20 63 6f 70 79 20 74 68 65 20 |. Just copy the | 00000040 66 69 6c 65 20 28 74 6f 20 67 65 74 20 61 20 6d |file (to get a m| 00000050 6f 72 65 20 69 6e 74 65 6c 6c 69 67 65 6e 74 20 |ore intelligent | 00000060 63 6f 70 79 2f 72 65 6e 61 6d 65 29 0d 00 28 35 |copy/rename)..(5| 00000070 f4 20 46 4e 4f 75 74 70 75 74 20 72 65 74 75 72 |. FNOutput retur| 00000080 6e 73 20 6f 75 74 70 75 74 20 74 79 70 65 20 64 |ns output type d| 00000090 65 70 65 6e 64 69 6e 67 20 6f 6e 20 69 6e 70 75 |epending on inpu| 000000a0 74 0d 00 32 42 f4 20 46 4e 43 6f 6e 76 65 72 74 |t..2B. FNConvert| 000000b0 20 63 6f 6e 76 65 72 74 73 20 49 24 20 74 6f 20 | converts I$ to | 000000c0 4f 24 2c 20 61 6e 64 20 72 65 74 75 72 6e 73 20 |O$, and returns | 000000d0 65 72 72 6f 72 20 73 74 72 69 6e 67 20 69 66 20 |error string if | 000000e0 61 6e 79 0d 00 3c 04 0d 00 46 10 dd a4 4f 75 74 |any..<...F...Out| 000000f0 70 75 74 28 54 25 29 0d 00 50 16 e7 54 25 3c 26 |put(T%)..P..T%<&| 00000100 31 30 30 30 20 3d 54 25 20 8b 3d 2d 32 0d 00 5a |1000 =T% .=-2..Z| 00000110 04 0d 00 64 14 dd a4 43 6f 6e 76 65 72 74 28 49 |...d...Convert(I| 00000120 24 2c 4f 24 29 0d 00 6e 0a ee 85 ea 3d f6 24 0d |$,O$)..n....=.$.| 00000130 00 78 20 c8 99 20 22 4f 53 5f 46 53 43 6f 6e 74 |.x .. "OS_FSCont| 00000140 72 6f 6c 22 2c 32 36 2c 49 24 2c 4f 24 2c 32 0d |rol",26,I$,O$,2.| 00000150 00 82 07 3d 22 22 0d ff |...=""..| 00000158