1995-02-15 01:56:36 +03:00
|
|
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <machine/mon.h>
|
|
|
|
|
|
|
|
int
|
|
|
|
getchar()
|
|
|
|
{
|
1997-02-05 20:39:21 +03:00
|
|
|
return ( (*romVectorPtr->getChar)() );
|
1995-02-15 01:56:36 +03:00
|
|
|
}
|
|
|
|
|
1995-09-23 07:42:17 +04:00
|
|
|
int
|
1995-02-15 01:56:36 +03:00
|
|
|
peekchar()
|
|
|
|
{
|
1997-02-05 20:39:21 +03:00
|
|
|
return ( (*romVectorPtr->mayGet)() );
|
1995-02-15 01:56:36 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
putchar(c)
|
|
|
|
int c;
|
|
|
|
{
|
|
|
|
if (c == '\n')
|
1997-02-05 20:39:21 +03:00
|
|
|
(*romVectorPtr->putChar)('\r');
|
|
|
|
(*romVectorPtr->putChar)(c);
|
1995-02-15 01:56:36 +03:00
|
|
|
}
|
|
|
|
|