1#include <stddef.h> 2#include <com32.h> 3#include <stdio.h> 4#include <string.h> 5 6void myputchar(int c) 7{ 8 static com32sys_t ireg; 9 10 if (c == '\n') 11 myputchar('\r'); 12 13 ireg.eax.b[1] = 0x02; 14 ireg.edx.b[0] = c; 15 __intcall(0x21, &ireg, NULL); 16} 17 18void myputs(const char *str) 19{ 20 while (*str) 21 myputchar(*str++); 22} 23

