diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2021-04-04 11:19:55 +0200 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2021-04-04 11:19:55 +0200 |
| commit | 2a99c6259d54e6b5278b49ee248ba2ac66a7a56a (patch) | |
| tree | 3fd96721f2a4a65c2e7893b23e61d1920f72216d /src/utils | |
Create repository
Diffstat (limited to 'src/utils')
| -rw-r--r-- | src/utils/print.c | 7 | ||||
| -rw-r--r-- | src/utils/print.h | 7 |
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 |
