Home | History | Annotate | Line # | Download | only in libbug
putchar.c revision 1.2
      1 /*	$NetBSD: putchar.c,v 1.1 1996/05/17 19:50:59 chuck Exp $	*/
      2 
      3 /*
      4  * putchar: easier to do this with outstr than to add more macros to
      5  * handle byte passing on the stack
      6  */
      7 
      8 #include <sys/types.h>
      9 #include <machine/prom.h>
     10 
     11 #include "stand.h"
     12 #include "libbug.h"
     13 
     14 void
     15 putchar(int c)
     16 {
     17 	char ca[2];
     18 
     19 	if (c == '\n')
     20 		putchar('\r');
     21 	ca[0] = c;
     22 	mvmeprom_outstr(&ca[0], &ca[1]);
     23 }
     24