From 2a99c6259d54e6b5278b49ee248ba2ac66a7a56a Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Sun, 4 Apr 2021 11:19:55 +0200 Subject: Create repository --- src/utils/print.c | 7 +++++++ src/utils/print.h | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 src/utils/print.c create mode 100644 src/utils/print.h (limited to 'src/utils') 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 -- cgit v1.2.3