summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k/stand/libbug/putchar.c
blob: 564bcb75c15a5f17218daa5342d63f48767c270b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*	$OpenBSD: putchar.c,v 1.1 1998/08/22 07:39:56 smurph 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]);
}