projects
/
com32
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
+++ b/
src/main.c
@@ -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;
+}