diff options
Diffstat (limited to 'sys/arch/mvme68k/stand/libbug/putchar.c')
-rw-r--r-- | sys/arch/mvme68k/stand/libbug/putchar.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/sys/arch/mvme68k/stand/libbug/putchar.c b/sys/arch/mvme68k/stand/libbug/putchar.c new file mode 100644 index 00000000000..892bd964691 --- /dev/null +++ b/sys/arch/mvme68k/stand/libbug/putchar.c @@ -0,0 +1,25 @@ +/* $OpenBSD: putchar.c,v 1.1 1996/05/16 02:25:39 chuck Exp $ */ + +/* + * putchar: easier to do this with outstr than to add more macros to + * handle byte passing on the stack + */ + +#include <sys/types.h> +#include <machine/prom.h> + +#include "stand.h" +#include "libbug.h" + +void +putchar(c) + +int c; + +{ + char ca[2]; + if (c == '\n') + putchar('\r'); + ca[0] = c; + mvmeprom_outstr(&ca[0], &ca[1]); +} |