Initial framework for C code.
[pdp11-memory-test] / memtest.c
diff --git a/memtest.c b/memtest.c
new file mode 100644 (file)
index 0000000..e3bf460
--- /dev/null
+++ b/memtest.c
@@ -0,0 +1,21 @@
+#include "pdp11.h"
+
+void
+memtest(void)
+{
+    wait(01000);
+    putch('H');
+    putch('e');
+    putch('l');
+    putch('l');
+    putch('o');
+    putch(',');
+    putch(' ');
+    putch('W');
+    putch('o');
+    putch('r');
+    putch('l');
+    putch('d');
+    putch('!');
+    putch('\n');
+}