Home » Archimedes archive » Apps » PipeDream 4 (1991) (Colton Software) (Examples Disc).adf » Custom/Read_Write/c_W\R

Custom/Read_Write/c_W\R

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 » Apps » PipeDream 4 (1991) (Colton Software) (Examples Disc).adf
Filename: Custom/Read_Write/c_W\R
Read OK:
File size: 035D bytes
Load address: FFFDDE43
Exec address: 6D812EE0
Duplicates

There is 1 duplicate copy of this file in the archive:

File contents
%OP%LP(
%OP%TP)
%OP%PL53
%OP%FX
%OP%FY
%OP%FS
%OP%WC2,1388,784,1364,0,0,0,0
%OP%VS3.81 Test (Oct  8 1991), Colton Software - Development, R0123 4567 8901 2345
%CO:A,73,0%%V%%L%function("read","fileno:number","colno:number","rowno:number")
%V%%L%if(@fileno>2 | @colno>16 | @rowno>16,result("Out of range."),)
%V%%L%index(b1q33,@colno,@rowno+16*@fileno)
%V%%L%result(a3)

%V%%L%function("write","fileno:number","colno:number","rowno:number","exp")
%V%%L%if(@fileno>2 | @colno>16 | @rowno>16,result("Out of range."),)
%V%%L%index(b1q33,@colno,@rowno+16*@fileno)
%V%%L%set_value(index(b1q33,@colno,@rowno+16*@fileno),@exp)
%V%%L%result(@exp)
%CO:B,3,60%%CO:C,3,48%%CO:D,3,36%%CO:E,3,24%%CO:F,3,12%%CO:G,3,0%%CO:H,3,0%%CO:I,3,0%%CO:J,3,0%%CO:K,3,0%


























%V%%R%39
%V%%R%"hi"
%V%%R%"hi"
%CO:L,3,0%%CO:M,3,0%%CO:N,3,0%%CO:O,3,0%%CO:P,3,0%%CO:Q,3,0%
00000000  25 4f 50 25 4c 50 28 0a  25 4f 50 25 54 50 29 0a  |%OP%LP(.%OP%TP).|
00000010  25 4f 50 25 50 4c 35 33  0a 25 4f 50 25 46 58 0a  |%OP%PL53.%OP%FX.|
00000020  25 4f 50 25 46 59 0a 25  4f 50 25 46 53 0a 25 4f  |%OP%FY.%OP%FS.%O|
00000030  50 25 57 43 32 2c 31 33  38 38 2c 37 38 34 2c 31  |P%WC2,1388,784,1|
00000040  33 36 34 2c 30 2c 30 2c  30 2c 30 0a 25 4f 50 25  |364,0,0,0,0.%OP%|
00000050  56 53 33 2e 38 31 20 54  65 73 74 20 28 4f 63 74  |VS3.81 Test (Oct|
00000060  20 20 38 20 31 39 39 31  29 2c 20 43 6f 6c 74 6f  |  8 1991), Colto|
00000070  6e 20 53 6f 66 74 77 61  72 65 20 2d 20 44 65 76  |n Software - Dev|
00000080  65 6c 6f 70 6d 65 6e 74  2c 20 52 30 31 32 33 20  |elopment, R0123 |
00000090  34 35 36 37 20 38 39 30  31 20 32 33 34 35 0a 25  |4567 8901 2345.%|
000000a0  43 4f 3a 41 2c 37 33 2c  30 25 25 56 25 25 4c 25  |CO:A,73,0%%V%%L%|
000000b0  66 75 6e 63 74 69 6f 6e  28 22 72 65 61 64 22 2c  |function("read",|
000000c0  22 66 69 6c 65 6e 6f 3a  6e 75 6d 62 65 72 22 2c  |"fileno:number",|
000000d0  22 63 6f 6c 6e 6f 3a 6e  75 6d 62 65 72 22 2c 22  |"colno:number","|
000000e0  72 6f 77 6e 6f 3a 6e 75  6d 62 65 72 22 29 0a 25  |rowno:number").%|
000000f0  56 25 25 4c 25 69 66 28  40 66 69 6c 65 6e 6f 3e  |V%%L%if(@fileno>|
00000100  32 20 7c 20 40 63 6f 6c  6e 6f 3e 31 36 20 7c 20  |2 | @colno>16 | |
00000110  40 72 6f 77 6e 6f 3e 31  36 2c 72 65 73 75 6c 74  |@rowno>16,result|
00000120  28 22 4f 75 74 20 6f 66  20 72 61 6e 67 65 2e 22  |("Out of range."|
00000130  29 2c 29 0a 25 56 25 25  4c 25 69 6e 64 65 78 28  |),).%V%%L%index(|
00000140  62 31 71 33 33 2c 40 63  6f 6c 6e 6f 2c 40 72 6f  |b1q33,@colno,@ro|
00000150  77 6e 6f 2b 31 36 2a 40  66 69 6c 65 6e 6f 29 0a  |wno+16*@fileno).|
00000160  25 56 25 25 4c 25 72 65  73 75 6c 74 28 61 33 29  |%V%%L%result(a3)|
00000170  0a 0a 25 56 25 25 4c 25  66 75 6e 63 74 69 6f 6e  |..%V%%L%function|
00000180  28 22 77 72 69 74 65 22  2c 22 66 69 6c 65 6e 6f  |("write","fileno|
00000190  3a 6e 75 6d 62 65 72 22  2c 22 63 6f 6c 6e 6f 3a  |:number","colno:|
000001a0  6e 75 6d 62 65 72 22 2c  22 72 6f 77 6e 6f 3a 6e  |number","rowno:n|
000001b0  75 6d 62 65 72 22 2c 22  65 78 70 22 29 0a 25 56  |umber","exp").%V|
000001c0  25 25 4c 25 69 66 28 40  66 69 6c 65 6e 6f 3e 32  |%%L%if(@fileno>2|
000001d0  20 7c 20 40 63 6f 6c 6e  6f 3e 31 36 20 7c 20 40  | | @colno>16 | @|
000001e0  72 6f 77 6e 6f 3e 31 36  2c 72 65 73 75 6c 74 28  |rowno>16,result(|
000001f0  22 4f 75 74 20 6f 66 20  72 61 6e 67 65 2e 22 29  |"Out of range.")|
00000200  2c 29 0a 25 56 25 25 4c  25 69 6e 64 65 78 28 62  |,).%V%%L%index(b|
00000210  31 71 33 33 2c 40 63 6f  6c 6e 6f 2c 40 72 6f 77  |1q33,@colno,@row|
00000220  6e 6f 2b 31 36 2a 40 66  69 6c 65 6e 6f 29 0a 25  |no+16*@fileno).%|
00000230  56 25 25 4c 25 73 65 74  5f 76 61 6c 75 65 28 69  |V%%L%set_value(i|
00000240  6e 64 65 78 28 62 31 71  33 33 2c 40 63 6f 6c 6e  |ndex(b1q33,@coln|
00000250  6f 2c 40 72 6f 77 6e 6f  2b 31 36 2a 40 66 69 6c  |o,@rowno+16*@fil|
00000260  65 6e 6f 29 2c 40 65 78  70 29 0a 25 56 25 25 4c  |eno),@exp).%V%%L|
00000270  25 72 65 73 75 6c 74 28  40 65 78 70 29 0a 25 43  |%result(@exp).%C|
00000280  4f 3a 42 2c 33 2c 36 30  25 25 43 4f 3a 43 2c 33  |O:B,3,60%%CO:C,3|
00000290  2c 34 38 25 25 43 4f 3a  44 2c 33 2c 33 36 25 25  |,48%%CO:D,3,36%%|
000002a0  43 4f 3a 45 2c 33 2c 32  34 25 25 43 4f 3a 46 2c  |CO:E,3,24%%CO:F,|
000002b0  33 2c 31 32 25 25 43 4f  3a 47 2c 33 2c 30 25 25  |3,12%%CO:G,3,0%%|
000002c0  43 4f 3a 48 2c 33 2c 30  25 25 43 4f 3a 49 2c 33  |CO:H,3,0%%CO:I,3|
000002d0  2c 30 25 25 43 4f 3a 4a  2c 33 2c 30 25 25 43 4f  |,0%%CO:J,3,0%%CO|
000002e0  3a 4b 2c 33 2c 30 25 0a  0a 0a 0a 0a 0a 0a 0a 0a  |:K,3,0%.........|
000002f0  0a 0a 0a 0a 0a 0a 0a 0a  0a 0a 0a 0a 0a 0a 0a 0a  |................|
00000300  0a 0a 25 56 25 25 52 25  33 39 0a 25 56 25 25 52  |..%V%%R%39.%V%%R|
00000310  25 22 68 69 22 0a 25 56  25 25 52 25 22 68 69 22  |%"hi".%V%%R%"hi"|
00000320  0a 25 43 4f 3a 4c 2c 33  2c 30 25 25 43 4f 3a 4d  |.%CO:L,3,0%%CO:M|
00000330  2c 33 2c 30 25 25 43 4f  3a 4e 2c 33 2c 30 25 25  |,3,0%%CO:N,3,0%%|
00000340  43 4f 3a 4f 2c 33 2c 30  25 25 43 4f 3a 50 2c 33  |CO:O,3,0%%CO:P,3|
00000350  2c 30 25 25 43 4f 3a 51  2c 33 2c 30 25           |,0%%CO:Q,3,0%|
0000035d