summaryrefslogblamecommitdiffstats
path: root/contrib/syslinux-4.02/core/console.c
blob: 282c57f5c2c2784454887bfca32fbb20f6a14443 (plain) (tree)





















                                 
#include <stddef.h>
#include <com32.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);
}

void myputs(const char *str)
{
    while (*str)
	myputchar(*str++);
}