]> pd.if.org Git - mmurtl/commitdiff
autocommit for file dated 1995-02-09 16:02:44
authorRichard Burgess <>
Thu, 9 Feb 1995 16:02:44 +0000 (16:02 +0000)
committerNathan Wagner <nw@hydaspes.if.org>
Mon, 17 Oct 2016 14:03:48 +0000 (14:03 +0000)
msamples/beeper/beeper.c [new file with mode: 0644]

diff --git a/msamples/beeper/beeper.c b/msamples/beeper/beeper.c
new file mode 100644 (file)
index 0000000..bc9cd41
--- /dev/null
@@ -0,0 +1,21 @@
+/* This program allows your ears to hear whether or not\r
+   a program gets equal time while running with other programs\r
+   in MMURTL. Every half second, this beeps. That's all it does.\r
+\r
+To build this Beeper.RUN, use Makeit.bat in DOS, or CM32 and DASM:\r
+  CM32 Beeper.C\r
+  DASM Beeper.ATF\r
+*/\r
+\r
+#include "\OSSource\MTimer.h"\r
+#include "\OSSource\MKernel.h"\r
+#include "\OSSource\MJob.h"\r
+\r
+void main(void)\r
+{\r
+       SetJobName("Beeper", 6);\r
+       while (1) {\r
+               Sleep(50);\r
+               Tone(150,10);\r
+       }\r
+}\r