diff options
Diffstat (limited to 'core/console.c')
-rw-r--r-- | core/console.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/core/console.c b/core/console.c index 282c57f5..3b545bbd 100644 --- a/core/console.c +++ b/core/console.c @@ -1,18 +1,15 @@ #include <stddef.h> #include <com32.h> +#include <core.h> #include <stdio.h> #include <string.h> void myputchar(int c) { - static com32sys_t ireg; - if (c == '\n') myputchar('\r'); - ireg.eax.b[1] = 0x02; - ireg.edx.b[0] = c; - __intcall(0x21, &ireg, NULL); + writechr(c); } void myputs(const char *str) |