NetBSD/sys/arch/sun3/stand/libsa/promcons.c
1997-02-05 17:39:21 +00:00

27 lines
297 B
C

#include <stdarg.h>
#include <sys/types.h>
#include <machine/mon.h>
int
getchar()
{
return ( (*romVectorPtr->getChar)() );
}
int
peekchar()
{
return ( (*romVectorPtr->mayGet)() );
}
void
putchar(c)
int c;
{
if (c == '\n')
(*romVectorPtr->putChar)('\r');
(*romVectorPtr->putChar)(c);
}