No empty .Rs/.Re
[netbsd-mini2440.git] / sys / arch / mvme68k / stand / libbug / putchar.c
blobef6280e4ed91151c733b12a85a9b5e3c2c7a1d95
1 /* $NetBSD: putchar.c,v 1.1 1996/05/17 19:50:59 chuck Exp $ */
3 /*
4 * putchar: easier to do this with outstr than to add more macros to
5 * handle byte passing on the stack
6 */
8 #include <sys/types.h>
9 #include <machine/prom.h>
11 #include "stand.h"
12 #include "libbug.h"
14 void
15 putchar(int c)
17 char ca[2];
19 if (c == '\n')
20 putchar('\r');
21 ca[0] = c;
22 mvmeprom_outstr(&ca[0], &ca[1]);