Home » Archimedes archive » Acorn User » AU 1995-10.adf » !Direct » Director/!Director/Utils/SwiModule

Director/!Director/Utils/SwiModule

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 1995-10.adf » !Direct
Filename: Director/!Director/Utils/SwiModule
Read OK:
File size: 08BA bytes
Load address: 0000
Exec address: 0000
Duplicates

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

File contents
,8XSWIModuleliSWI Module	1.00 (27 May 1993)� SWIp� ���_-�����;���j��� ��!��&�j�z�	j�z �� ��
��je���b�Ѝ�_����@-��$��p�����A-�d���������Pᗏ�������/��@���xЍ���@-�0�����h ��"3�
��q��x9��������@�O�@-�*��!������@-�0����0����������h���@�� ��@��@��0C�����0S�����@�����Syntax:

  *SWI <expression>[ <expression>]^ [TO <variable>[ <variable>]^ [;<variable>]]>]]@-�0O�0����0S� ������ ������=@-�� ��@��Q� P���j
A�P�� 5��
;�j0��"5�
P��-5������-5�@zA������j��@T��=@�����Ѝ�<@����@-�0�� S��
 0��t3���0�� 0��o3���0�� S��
�3����@��fO���Unexpected r1=0 in OS_GSTransan@-�@������,��"��'���h1�PO@��0��0��0P� S����@�0P�"S��� S�@�������@-�A� �� R��
�����
�
�� O�@����;0�
 �j ��@T�
���@�����Ѝ�@������ P��

O��������O� ��0��@��$��z��@-��� P�������� P��
���?@-�����0��@��P��$U�@� U���4� �P����<����:�d�"*��0�
0
0
<0�|0"0����|������
�������� C�0��$�?��xЍ�>@����Not a valid address���O�������
<expression> is a string that is OS_GSTrans'ed before it's read. If it has "" around it or it can't be read as a number, it's expected to be a string. Otherwise it's read as a number value. <variable> is a system variable. If a '$' is found in <variable>, the register is expected to be a pointer to a string, and the system variable will be created as a String type from that register. Otherwise it will be created as a Number type.
Please be aware that the machine may hang up if you don't know what you're doing.
Examples:

*SWI "OS_ReadLine" "12345678901" 10 32 126 to input$ length
*SWI XOS_CLI "cat $.$" to ;flags
*SWI <my$swi> <my$param> to my$output ; flags

SWI was made by Jens H. Ovesen, 27 May 1993, Odense Denmark. This is version 1.00.
00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000010  2c 00 00 00 38 00 00 00  58 00 00 00 00 00 00 00  |,...8...X.......|
00000020  00 00 00 00 00 00 00 00  00 00 00 00 53 57 49 4d  |............SWIM|
00000030  6f 64 75 6c 65 00 6c 69  53 57 49 20 4d 6f 64 75  |odule.liSWI Modu|
00000040  6c 65 09 31 2e 30 30 20  28 32 37 20 4d 61 79 20  |le.1.00 (27 May |
00000050  31 39 39 33 29 00 83 20  53 57 49 00 70 00 00 00  |1993).. SWI.p...|
00000060  01 00 ff 20 e0 01 00 00  ac 05 00 00 00 00 00 00  |... ............|
00000070  ff 5f 2d e9 00 10 a0 e1  06 00 a0 e3 01 3b a0 e3  |._-..........;..|
00000080  1e 00 02 ef 11 00 00 6a  02 c0 a0 e1 04 20 a0 e3  |.......j..... ..|
00000090  a4 21 8f e5 26 00 00 eb  0c 00 00 6a 0f 00 00 eb  |.!..&......j....|
000000a0  7a 00 00 eb 09 00 00 6a  12 00 00 eb 02 00 00 7a  |z......j.......z|
000000b0  14 20 9f e5 02 20 b0 e1  04 00 00 0a d6 00 00 eb  |. ... ..........|
000000c0  02 00 00 6a 65 00 00 eb  ff 9f fd e8 00 00 00 00  |...je...........|
000000d0  62 00 00 eb 04 d0 8d e2  fe 5f bd e8 01 f2 9e e3  |b........_......|
000000e0  03 40 2d e9 02 18 10 e2  24 10 0f e5 02 08 80 03  |.@-.....$.......|
000000f0  70 00 8f e5 03 80 fd e8  ff 41 2d e9 64 00 9f e5  |p........A-.d...|
00000100  ef 14 a0 e3 00 10 81 e1  08 10 8f e5 00 00 50 e1  |..............P.|
00000110  97 8f 8f e2 ff 00 98 e8  00 00 00 ef ff 00 88 e8  |................|
00000120  2f 1e a0 e1 40 10 8f e5  ff 81 bd 78 04 d0 8d e2  |/...@......x....|
00000130  fe 81 bd e8 0c 40 2d e9  00 30 d1 e5 9d 00 00 eb  |.....@-..0......|
00000140  0c 80 bd 68 00 20 a0 e1  22 00 33 e3 02 00 00 0a  |...h. ..".3.....|
00000150  06 00 00 eb 02 10 a0 71  0c 80 bd 78 39 00 02 ef  |.......q...x9...|
00000160  02 10 a0 e1 0c 80 bd e8  0c 10 a0 e1 40 e0 4f e2  |............@.O.|
00000170  06 40 2d e9 2a 01 a0 e3  21 00 02 ef 02 00 a0 e1  |.@-.*...!.......|
00000180  06 80 bd e8 1e 40 2d e9  00 30 a0 e3 03 00 d1 e7  |.....@-..0......|
00000190  01 30 83 e2 00 00 b0 e1  fb ff ff 1a 06 00 a0 e3  |.0..............|
000001a0  1e 00 02 ef 1e 80 bd 68  8c 00 8f e2 00 40 90 e5  |.......h.....@..|
000001b0  04 20 80 e7 04 40 84 e2  00 40 80 e5 01 30 43 e2  |. ...@...@...0C.|
000001c0  03 00 d1 e7 03 00 c2 e7  01 30 53 e2 fb ff ff aa  |.........0S.....|
000001d0  02 00 a0 e1 1e 40 bd e8  01 f2 de e3 00 00 00 00  |.....@..........|
000001e0  53 79 6e 74 61 78 3a 0a  0d 20 20 2a 53 57 49 20  |Syntax:..  *SWI |
000001f0  3c 65 78 70 72 65 73 73  69 6f 6e 3e 5b 20 3c 65  |<expression>[ <e|
00000200  78 70 72 65 73 73 69 6f  6e 3e 5d 5e 20 5b 54 4f  |xpression>]^ [TO|
00000210  20 3c 76 61 72 69 61 62  6c 65 3e 5b 20 3c 76 61  | <variable>[ <va|
00000220  72 69 61 62 6c 65 3e 5d  5e 20 5b 3b 3c 76 61 72  |riable>]^ [;<var|
00000230  69 61 62 6c 65 3e 5d 5d  00 3e 5d 5d 04 00 00 00  |iable>]].>]]....|
00000240  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000260  0f 40 2d e9 30 10 4f e2  00 30 91 e5 07 00 a0 e3  |.@-.0.O..0......|
00000270  04 30 53 e2 03 20 91 17  1e 00 02 1f fb ff ff 1a  |.0S.. ..........|
00000280  07 00 a0 e3 0c 20 a0 e1  1e 00 00 ef 0f 80 fd e8  |..... ..........|
00000290  3d 40 2d e9 d8 20 8f e2  08 40 a0 e3 01 00 51 e5  |=@-.. ...@....Q.|
000002a0  20 00 50 e3 19 00 00 ba  1d 00 00 eb 19 00 00 6a  | .P............j|
000002b0  16 00 00 0a 01 10 41 e2  01 50 f1 e5 20 00 35 e3  |......A..P.. .5.|
000002c0  fc ff ff 0a 3b 00 00 eb  12 00 00 6a 00 30 a0 e1  |....;......j.0..|
000002d0  22 00 35 e3 07 00 00 0a  00 50 d1 e5 2d 00 35 e3  |".5......P..-.5.|
000002e0  01 10 81 02 a1 ff ff eb  2d 00 35 e3 80 00 40 00  |........-.5...@.|
000002f0  01 00 00 7a 01 10 41 02  a1 ff ff eb 03 10 a0 e1  |...z..A.........|
00000300  04 00 00 6a 04 00 82 e4  01 40 54 e2 e2 ff ff 1a  |...j.....@T.....|
00000310  3d 40 bd e8 01 f2 de e3  04 d0 8d e2 3c 40 bd e8  |=@..........<@..|
00000320  01 f2 9e e3 0e 40 2d e9  01 30 d1 e4 20 00 53 e3  |.....@-..0.. .S.|
00000330  fc ff ff 0a 20 30 83 e3  74 00 33 e3 0e 80 bd 18  |.... 0..t.3.....|
00000340  00 30 d1 e5 20 30 83 e3  6f 00 33 e3 0e 80 bd 18  |.0.. 0..o.3.....|
00000350  01 30 f1 e5 20 00 53 e3  fc ff ff 0a 01 00 00 ba  |.0.. .S.........|
00000360  03 00 33 e1 0e 80 bd e8  0e 40 bd e8 66 0f 4f e2  |..3......@..f.O.|
00000370  01 f2 9e e3 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000380  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000390  00 00 00 00 00 00 00 00  55 6e 65 78 70 65 63 74  |........Unexpect|
000003a0  65 64 20 72 31 3d 30 20  69 6e 20 4f 53 5f 47 53  |ed r1=0 in OS_GS|
000003b0  54 72 61 6e 73 00 61 6e  0c 40 2d e9 01 40 a0 e1  |Trans.an.@-..@..|
000003c0  01 00 a0 e1 0c 10 a0 e1  02 2c a0 e3 02 22 82 e3  |.........,..."..|
000003d0  27 00 02 ef 0c 80 bd 68  00 00 31 e3 50 00 4f 02  |'......h..1.P.O.|
000003e0  0c 40 bd 08 01 f2 9e 03  00 30 a0 e3 02 30 c1 e7  |.@.......0...0..|
000003f0  01 30 50 e5 20 00 53 e3  0c 80 fd d8 01 00 40 e2  |.0P. .S.......@.|
00000400  01 30 50 e5 22 00 53 e3  0c 80 fd 08 20 00 53 e3  |.0P.".S..... .S.|
00000410  01 00 40 c2 f9 ff ff ca  0c 80 fd e8 1d 40 2d e9  |..@..........@-.|
00000420  01 10 41 e2 01 20 f1 e5  20 00 52 e3 fc ff ff 0a  |..A.. .. .R.....|
00000430  0f 00 00 ba ba ff ff eb  0d 00 00 1a 1e 00 00 eb  |................|
00000440  0d 00 00 ba d8 20 4f e2  08 40 a0 e3 00 00 d1 e5  |..... O..@......|
00000450  3b 00 30 e3 0b 00 00 0a  20 00 00 eb 06 00 00 6a  |;.0..... ......j|
00000460  04 20 82 e2 01 40 54 e2  01 00 00 0a 12 00 00 eb  |. ...@T.........|
00000470  f5 ff ff ca 1d 40 bd e8  01 f2 de e3 04 d0 8d e2  |.....@..........|
00000480  1c 40 bd e8 01 f2 9e e3  01 00 f1 e5 20 00 50 e3  |.@.......... .P.|
00000490  fc ff ff 0a 0b 0d 4f b2  f7 ff ff ba 01 00 a0 e1  |......O.........|
000004a0  cf 1f 4f e2 04 20 a0 e3  00 30 a0 e3 01 40 a0 e3  |..O.. ...0...@..|
000004b0  24 00 02 ef ee ff ff 7a  ef ff ff ea 01 40 2d e9  |$......z.....@-.|
000004c0  01 00 f1 e5 20 00 50 e3  fc ff ff ca 01 80 bd b8  |.... .P.........|
000004d0  01 00 f1 e5 20 00 50 e3  fc ff ff 0a 01 80 bd e8  |.... .P.........|
000004e0  3f 40 2d e9 01 00 a0 e1  02 10 a0 e1 00 30 a0 e1  |?@-..........0..|
000004f0  01 40 a0 e3 01 50 d3 e4  24 00 55 e3 00 40 a0 03  |.@...P..$.U..@..|
00000500  20 00 55 e3 fa ff ff ca  00 00 34 e3 04 20 a0 13  | .U.......4.. ..|
00000510  19 00 00 1a 00 50 a0 e1  00 10 91 e5 01 3c 8c e2  |.....P.......<..|
00000520  01 00 a0 e1 3a 00 00 ef  64 00 8f 22 15 00 00 2a  |....:...d.."...*|
00000530  01 00 d1 e4 00 00 30 e3  0a 00 30 13 0d 00 30 13  |......0...0...0.|
00000540  08 00 00 0a 3c 00 30 e3  7c 00 30 13 22 00 30 13  |....<.0.|.0.".0.|
00000550  01 00 c3 14 f1 ff ff 1a  01 00 c3 e5 7c 00 a0 e3  |............|...|
00000560  02 00 c3 e4 ed ff ff ea  0d 00 a0 e3 01 00 c3 e4  |................|
00000570  05 00 a0 e1 01 1c 8c e2  01 20 43 e0 00 30 a0 e3  |......... C..0..|
00000580  24 00 02 ef 3f 80 fd 78  04 d0 8d e2 3e 40 bd e8  |$...?..x....>@..|
00000590  01 f2 9e e3 00 00 00 00  4e 6f 74 20 61 20 76 61  |........Not a va|
000005a0  6c 69 64 20 61 64 64 72  65 73 73 00 0e c0 a0 e1  |lid address.....|
000005b0  f6 0f 4f e2 02 00 02 ef  03 00 02 ef 00 00 8f e2  |..O.............|
000005c0  0c f0 b0 e1 0d 1f 1f 3c  65 78 70 72 65 73 73 69  |.......<expressi|
000005d0  6f 6e 3e 20 69 73 20 61  20 73 74 72 69 6e 67 20  |on> is a string |
000005e0  74 68 61 74 20 69 73 20  4f 53 5f 47 53 54 72 61  |that is OS_GSTra|
000005f0  6e 73 27 65 64 20 62 65  66 6f 72 65 20 69 74 27  |ns'ed before it'|
00000600  73 20 72 65 61 64 2e 20  49 66 20 69 74 20 68 61  |s read. If it ha|
00000610  73 20 22 22 20 61 72 6f  75 6e 64 20 69 74 20 6f  |s "" around it o|
00000620  72 20 69 74 20 63 61 6e  27 74 20 62 65 20 72 65  |r it can't be re|
00000630  61 64 20 61 73 20 61 20  6e 75 6d 62 65 72 2c 20  |ad as a number, |
00000640  69 74 27 73 20 65 78 70  65 63 74 65 64 20 74 6f  |it's expected to|
00000650  20 62 65 20 61 20 73 74  72 69 6e 67 2e 20 4f 74  | be a string. Ot|
00000660  68 65 72 77 69 73 65 20  69 74 27 73 20 72 65 61  |herwise it's rea|
00000670  64 20 61 73 20 61 20 6e  75 6d 62 65 72 20 76 61  |d as a number va|
00000680  6c 75 65 2e 20 3c 76 61  72 69 61 62 6c 65 3e 20  |lue. <variable> |
00000690  69 73 20 61 20 73 79 73  74 65 6d 20 76 61 72 69  |is a system vari|
000006a0  61 62 6c 65 2e 20 49 66  20 61 20 27 24 27 20 69  |able. If a '$' i|
000006b0  73 20 66 6f 75 6e 64 20  69 6e 20 3c 76 61 72 69  |s found in <vari|
000006c0  61 62 6c 65 3e 2c 20 74  68 65 20 72 65 67 69 73  |able>, the regis|
000006d0  74 65 72 20 69 73 20 65  78 70 65 63 74 65 64 20  |ter is expected |
000006e0  74 6f 20 62 65 20 61 20  70 6f 69 6e 74 65 72 20  |to be a pointer |
000006f0  74 6f 20 61 20 73 74 72  69 6e 67 2c 20 61 6e 64  |to a string, and|
00000700  20 74 68 65 20 73 79 73  74 65 6d 20 76 61 72 69  | the system vari|
00000710  61 62 6c 65 20 77 69 6c  6c 20 62 65 20 63 72 65  |able will be cre|
00000720  61 74 65 64 20 61 73 20  61 20 53 74 72 69 6e 67  |ated as a String|
00000730  20 74 79 70 65 20 66 72  6f 6d 20 74 68 61 74 20  | type from that |
00000740  72 65 67 69 73 74 65 72  2e 20 4f 74 68 65 72 77  |register. Otherw|
00000750  69 73 65 20 69 74 20 77  69 6c 6c 20 62 65 20 63  |ise it will be c|
00000760  72 65 61 74 65 64 20 61  73 20 61 20 4e 75 6d 62  |reated as a Numb|
00000770  65 72 20 74 79 70 65 2e  0d 1f 1f 50 6c 65 61 73  |er type....Pleas|
00000780  65 20 62 65 20 61 77 61  72 65 20 74 68 61 74 20  |e be aware that |
00000790  74 68 65 20 6d 61 63 68  69 6e 65 20 6d 61 79 20  |the machine may |
000007a0  68 61 6e 67 20 75 70 20  69 66 20 79 6f 75 20 64  |hang up if you d|
000007b0  6f 6e 27 74 20 6b 6e 6f  77 20 77 68 61 74 20 79  |on't know what y|
000007c0  6f 75 27 72 65 20 64 6f  69 6e 67 2e 0d 1f 1f 45  |ou're doing....E|
000007d0  78 61 6d 70 6c 65 73 3a  0d 0d 2a 53 57 49 20 22  |xamples:..*SWI "|
000007e0  4f 53 5f 52 65 61 64 4c  69 6e 65 22 20 22 31 32  |OS_ReadLine" "12|
000007f0  33 34 35 36 37 38 39 30  31 22 20 31 30 20 33 32  |345678901" 10 32|
00000800  20 31 32 36 20 74 6f 20  69 6e 70 75 74 24 20 6c  | 126 to input$ l|
00000810  65 6e 67 74 68 0d 2a 53  57 49 20 58 4f 53 5f 43  |ength.*SWI XOS_C|
00000820  4c 49 20 22 63 61 74 20  24 2e 24 22 20 74 6f 20  |LI "cat $.$" to |
00000830  3b 66 6c 61 67 73 0d 2a  53 57 49 20 3c 6d 79 24  |;flags.*SWI <my$|
00000840  73 77 69 3e 20 3c 6d 79  24 70 61 72 61 6d 3e 20  |swi> <my$param> |
00000850  74 6f 20 6d 79 24 6f 75  74 70 75 74 20 3b 20 66  |to my$output ; f|
00000860  6c 61 67 73 0d 0d 53 57  49 20 77 61 73 20 6d 61  |lags..SWI was ma|
00000870  64 65 20 62 79 20 4a 65  6e 73 20 48 2e 20 4f 76  |de by Jens H. Ov|
00000880  65 73 65 6e 2c 20 32 37  20 4d 61 79 20 31 39 39  |esen, 27 May 199|
00000890  33 2c 20 4f 64 65 6e 73  65 20 44 65 6e 6d 61 72  |3, Odense Denmar|
000008a0  6b 2e 20 54 68 69 73 20  69 73 20 76 65 72 73 69  |k. This is versi|
000008b0  6f 6e 20 31 2e 30 30 2e  0d 00                    |on 1.00...|
000008ba