mirror of
https://github.com/Stichting-MINIX-Research-Foundation/netbsd.git
synced 2025-09-13 00:57:28 -04:00
24 lines
386 B
C
24 lines
386 B
C
/* $NetBSD: putchar.c,v 1.2 2008/01/12 09:54:31 tsutsui 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(int c)
|
|
{
|
|
char ca[2];
|
|
|
|
if (c == '\n')
|
|
putchar('\r');
|
|
ca[0] = c;
|
|
mvmeprom_outstr(&ca[0], &ca[1]);
|
|
}
|