Home » Archimedes archive » Acorn User » AU 1997-10 A.adf » Extras » Apple][e/PD/BOB/ARMBOB/!ArmBob/progs/h/save
Apple][e/PD/BOB/ARMBOB/!ArmBob/progs/h/save
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/save |
Read OK: | ✔ |
File size: | 00D3 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
/* save string s to file name and filetype type */ save(s,name,type) { local start; swi("OS_File", vector { 10; @(name); type; 0; start = @(s); start+sizeof(s); 0; 0; }); }
00000000 2f 2a 20 73 61 76 65 20 73 74 72 69 6e 67 20 73 |/* save string s| 00000010 20 74 6f 20 66 69 6c 65 20 6e 61 6d 65 20 61 6e | to file name an| 00000020 64 20 66 69 6c 65 74 79 70 65 20 74 79 70 65 20 |d filetype type | 00000030 2a 2f 0a 0a 73 61 76 65 28 73 2c 6e 61 6d 65 2c |*/..save(s,name,| 00000040 74 79 70 65 29 0a 7b 0a 20 6c 6f 63 61 6c 20 73 |type).{. local s| 00000050 74 61 72 74 3b 0a 20 73 77 69 28 22 4f 53 5f 46 |tart;. swi("OS_F| 00000060 69 6c 65 22 2c 20 76 65 63 74 6f 72 20 7b 0a 20 |ile", vector {. | 00000070 20 20 20 20 31 30 3b 0a 20 20 20 20 20 40 28 6e | 10;. @(n| 00000080 61 6d 65 29 3b 0a 20 20 20 20 20 74 79 70 65 3b |ame);. type;| 00000090 0a 20 20 20 20 20 30 3b 0a 20 20 20 20 20 73 74 |. 0;. st| 000000a0 61 72 74 20 3d 20 40 28 73 29 3b 0a 20 20 20 20 |art = @(s);. | 000000b0 20 73 74 61 72 74 2b 73 69 7a 65 6f 66 28 73 29 | start+sizeof(s)| 000000c0 3b 0a 20 20 20 20 20 30 3b 20 30 3b 20 7d 29 3b |;. 0; 0; });| 000000d0 0a 7d 0a |.}.| 000000d3