]> pd.if.org Git - mmurtl/blob - msamples/beeper/beeper.c
autocommit for file dated 1995-02-09 16:02:44
[mmurtl] / msamples / beeper / beeper.c
1 /* This program allows your ears to hear whether or not\r
2    a program gets equal time while running with other programs\r
3    in MMURTL. Every half second, this beeps. That's all it does.\r
4 \r
5 To build this Beeper.RUN, use Makeit.bat in DOS, or CM32 and DASM:\r
6   CM32 Beeper.C\r
7   DASM Beeper.ATF\r
8 */\r
9 \r
10 #include "\OSSource\MTimer.h"\r
11 #include "\OSSource\MKernel.h"\r
12 #include "\OSSource\MJob.h"\r
13 \r
14 void main(void)\r
15 {\r
16         SetJobName("Beeper", 6);\r
17         while (1) {\r
18                 Sleep(50);\r
19                 Tone(150,10);\r
20         }\r
21 }\r