porting over pcboot codebase
[com32] / src / main.c
diff --git a/src/main.c b/src/main.c
new file mode 100644 (file)
index 0000000..93cbfd5
--- /dev/null
@@ -0,0 +1,14 @@
+void putchar(int c);   /* in startup.asm */
+
+static void printstr(const char *s)
+{
+       while(*s) {
+               putchar(*s++);
+       }
+}
+
+int main(void)
+{
+       printstr("hello from C\n");
+       return 0;
+}