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