aboutsummaryrefslogtreecommitdiff
path: root/core/console.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/console.c')
-rw-r--r--core/console.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/core/console.c b/core/console.c
new file mode 100644
index 0000000..3b545bb
--- /dev/null
+++ b/core/console.c
@@ -0,0 +1,19 @@
+#include <stddef.h>
+#include <com32.h>
+#include <core.h>
+#include <stdio.h>
+#include <string.h>
+
+void myputchar(int c)
+{
+ if (c == '\n')
+ myputchar('\r');
+
+ writechr(c);
+}
+
+void myputs(const char *str)
+{
+ while (*str)
+ myputchar(*str++);
+}