Home » Recent acquisitions » Acorn ADFS disks » adfs_ArchimedesWorld_199207.adf » !AWJULY92 » !AWJUL92/Goodies/work/c/system

!AWJUL92/Goodies/work/c/system

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 » Recent acquisitions » Acorn ADFS disks » adfs_ArchimedesWorld_199207.adf » !AWJULY92
Filename: !AWJUL92/Goodies/work/c/system
Read OK:
File size: 0323 bytes
Load address: 0000
Exec address: 0000
File contents
/*********************************************************************/
/*                                                                   */
/*  Wimp Routine Library.         General System Calls.              */
/*                                                                   */
/*  Archimedes World 1992                                            */
/*                                                                   */
/*  Written By John Skingley.                                        */
/*                                                                   */
/*********************************************************************/

#include "h.global"
#include "h.swi"


void Beep( void )
{
/*  Issues a 'bell' command.  */

    int  regs[10];

    regs[0] = 7;

    Swi( 0, regs );
}

00000000  2f 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 2a 2a 2a 2a  |/***************|
00000010  2a 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 2a 2a 2a 2a  |****************|
*
00000040  2a 2a 2a 2a 2a 2a 2f 0a  2f 2a 20 20 20 20 20 20  |******/./*      |
00000050  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00000080  20 20 20 20 20 20 20 20  20 20 20 20 20 2a 2f 0a  |             */.|
00000090  2f 2a 20 20 57 69 6d 70  20 52 6f 75 74 69 6e 65  |/*  Wimp Routine|
000000a0  20 4c 69 62 72 61 72 79  2e 20 20 20 20 20 20 20  | Library.       |
000000b0  20 20 47 65 6e 65 72 61  6c 20 53 79 73 74 65 6d  |  General System|
000000c0  20 43 61 6c 6c 73 2e 20  20 20 20 20 20 20 20 20  | Calls.         |
000000d0  20 20 20 20 20 2a 2f 0a  2f 2a 20 20 20 20 20 20  |     */./*      |
000000e0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00000110  20 20 20 20 20 20 20 20  20 20 20 20 20 2a 2f 0a  |             */.|
00000120  2f 2a 20 20 41 72 63 68  69 6d 65 64 65 73 20 57  |/*  Archimedes W|
00000130  6f 72 6c 64 20 31 39 39  32 20 20 20 20 20 20 20  |orld 1992       |
00000140  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00000160  20 20 20 20 20 2a 2f 0a  2f 2a 20 20 20 20 20 20  |     */./*      |
00000170  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
000001a0  20 20 20 20 20 20 20 20  20 20 20 20 20 2a 2f 0a  |             */.|
000001b0  2f 2a 20 20 57 72 69 74  74 65 6e 20 42 79 20 4a  |/*  Written By J|
000001c0  6f 68 6e 20 53 6b 69 6e  67 6c 65 79 2e 20 20 20  |ohn Skingley.   |
000001d0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
000001f0  20 20 20 20 20 2a 2f 0a  2f 2a 20 20 20 20 20 20  |     */./*      |
00000200  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00000230  20 20 20 20 20 20 20 20  20 20 20 20 20 2a 2f 0a  |             */.|
00000240  2f 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 2a 2a 2a 2a  |/***************|
00000250  2a 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 2a 2a 2a 2a  |****************|
*
00000280  2a 2a 2a 2a 2a 2a 2f 0a  0a 23 69 6e 63 6c 75 64  |******/..#includ|
00000290  65 20 22 68 2e 67 6c 6f  62 61 6c 22 0a 23 69 6e  |e "h.global".#in|
000002a0  63 6c 75 64 65 20 22 68  2e 73 77 69 22 0a 0a 0a  |clude "h.swi"...|
000002b0  76 6f 69 64 20 42 65 65  70 28 20 76 6f 69 64 20  |void Beep( void |
000002c0  29 0a 7b 0a 2f 2a 20 20  49 73 73 75 65 73 20 61  |).{./*  Issues a|
000002d0  20 27 62 65 6c 6c 27 20  63 6f 6d 6d 61 6e 64 2e  | 'bell' command.|
000002e0  20 20 2a 2f 0a 0a 20 20  20 20 69 6e 74 20 20 72  |  */..    int  r|
000002f0  65 67 73 5b 31 30 5d 3b  0a 0a 20 20 20 20 72 65  |egs[10];..    re|
00000300  67 73 5b 30 5d 20 3d 20  37 3b 0a 0a 20 20 20 20  |gs[0] = 7;..    |
00000310  53 77 69 28 20 30 2c 20  72 65 67 73 20 29 3b 0a  |Swi( 0, regs );.|
00000320  7d 0a 0a                                          |}..|
00000323