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 7 int 8 getchar() 9 { 10 return ( (*romVectorPtr->getChar)() ); 11 } 12 13 int 14 peekchar() 15 { 16 return ( (*romVectorPtr->mayGet)() ); 17 } 18 19 void 20 putchar(c) 21 int c; 22 { 23 if (c == '\n') 24 (*romVectorPtr->putChar)('\r'); 25 (*romVectorPtr->putChar)(c); 26 } 27 28