chain: Add DOS partition dumping routine for debugging
[hdt-cyring.git] / core / console.c
blob282c57f5c2c2784454887bfca32fbb20f6a14443
1 #include <stddef.h>
2 #include <com32.h>
3 #include <stdio.h>
4 #include <string.h>
6 void myputchar(int c)
8 static com32sys_t ireg;
10 if (c == '\n')
11 myputchar('\r');
13 ireg.eax.b[1] = 0x02;
14 ireg.edx.b[0] = c;
15 __intcall(0x21, &ireg, NULL);
18 void myputs(const char *str)
20 while (*str)
21 myputchar(*str++);