promcons.c revision 1.3
1/*	$NetBSD: promcons.c,v 1.3 2005/12/11 12:19:29 christos Exp $	*/
2
3
4#include <sys/types.h>
5#include <machine/mon.h>
6
7int
8getchar(void)
9{
10	return ( (*romVectorPtr->getChar)() );
11}
12
13int
14peekchar(void)
15{
16	return ( (*romVectorPtr->mayGet)() );
17}
18
19void
20putchar(int c)
21{
22	if (c == '\n')
23		(*romVectorPtr->putChar)('\r');
24	(*romVectorPtr->putChar)(c);
25}
26
27