Home » Archimedes archive » Acorn User » AU 1997-10 A.adf » Extras » Apple][e/PD/BOB/ARMBOB/!ArmBob/progs/h/chain

Apple][e/PD/BOB/ARMBOB/!ArmBob/progs/h/chain

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 1997-10 A.adf » Extras
Filename: Apple][e/PD/BOB/ARMBOB/!ArmBob/progs/h/chain
Read OK:
File size: 011F bytes
Load address: 0000
Exec address: 0000
File contents
/* Chain another task - command given in s.          */
/* Not for use in wimp programs.    GCW  02/03/94    */

chain(s)
{
 local r, m;
 (r = newvector(8))[0] = s;
 in (m = newstring(4)) put { 0;}
 wimp_init(310,"Chain",m);
 swi("Wimp_StartTask",r);
 wimp_closedown();
 quit("");
}


 
00000000  2f 2a 20 43 68 61 69 6e  20 61 6e 6f 74 68 65 72  |/* Chain another|
00000010  20 74 61 73 6b 20 2d 20  63 6f 6d 6d 61 6e 64 20  | task - command |
00000020  67 69 76 65 6e 20 69 6e  20 73 2e 20 20 20 20 20  |given in s.     |
00000030  20 20 20 20 20 2a 2f 0a  2f 2a 20 4e 6f 74 20 66  |     */./* Not f|
00000040  6f 72 20 75 73 65 20 69  6e 20 77 69 6d 70 20 70  |or use in wimp p|
00000050  72 6f 67 72 61 6d 73 2e  20 20 20 20 47 43 57 20  |rograms.    GCW |
00000060  20 30 32 2f 30 33 2f 39  34 20 20 20 20 2a 2f 0a  | 02/03/94    */.|
00000070  0a 63 68 61 69 6e 28 73  29 0a 7b 0a 20 6c 6f 63  |.chain(s).{. loc|
00000080  61 6c 20 72 2c 20 6d 3b  0a 20 28 72 20 3d 20 6e  |al r, m;. (r = n|
00000090  65 77 76 65 63 74 6f 72  28 38 29 29 5b 30 5d 20  |ewvector(8))[0] |
000000a0  3d 20 73 3b 0a 20 69 6e  20 28 6d 20 3d 20 6e 65  |= s;. in (m = ne|
000000b0  77 73 74 72 69 6e 67 28  34 29 29 20 70 75 74 20  |wstring(4)) put |
000000c0  7b 20 30 3b 7d 0a 20 77  69 6d 70 5f 69 6e 69 74  |{ 0;}. wimp_init|
000000d0  28 33 31 30 2c 22 43 68  61 69 6e 22 2c 6d 29 3b  |(310,"Chain",m);|
000000e0  0a 20 73 77 69 28 22 57  69 6d 70 5f 53 74 61 72  |. swi("Wimp_Star|
000000f0  74 54 61 73 6b 22 2c 72  29 3b 0a 20 77 69 6d 70  |tTask",r);. wimp|
00000100  5f 63 6c 6f 73 65 64 6f  77 6e 28 29 3b 0a 20 71  |_closedown();. q|
00000110  75 69 74 28 22 22 29 3b  0a 7d 0a 0a 0a 20 0a     |uit("");.}... .|
0000011f