aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/print.c7
-rw-r--r--src/utils/print.h7
2 files changed, 14 insertions, 0 deletions
diff --git a/src/utils/print.c b/src/utils/print.c
new file mode 100644
index 0000000..c7c94d4
--- /dev/null
+++ b/src/utils/print.c
@@ -0,0 +1,7 @@
+#include "print.h"
+
+
+void putchar(char c){
+ char *video=(char *)0xB8000;
+ video[0]=c;
+}
diff --git a/src/utils/print.h b/src/utils/print.h
new file mode 100644
index 0000000..51ed076
--- /dev/null
+++ b/src/utils/print.h
@@ -0,0 +1,7 @@
+#ifndef PRINT_H
+#define PRINT_H
+
+
+void putchar(char);
+
+#endif