promcons.c revision 1.2
1/*	$NetBSD: promcons.c,v 1.2 2005/01/22 15:36:11 chs 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