aboutsummaryrefslogtreecommitdiffstats
path: root/c/gbos.h
diff options
context:
space:
mode:
Diffstat (limited to 'c/gbos.h')
-rw-r--r--c/gbos.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/c/gbos.h b/c/gbos.h
new file mode 100644
index 0000000..9a09a5d
--- /dev/null
+++ b/c/gbos.h
@@ -0,0 +1,9 @@
+/* gbos userland C API (thin wrappers over rst $30 syscalls; see c/libc.asm) */
+#ifndef GBOS_H
+#define GBOS_H
+void writes(const char *buf, unsigned char len); /* write to console */
+void nl(void); /* newline (CRLF) */
+unsigned char readc(void); /* read one byte */
+void sexit(unsigned char code); /* exit(code) */
+unsigned char getpid(void);
+#endif