repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
sys
/
arch
/
mvme68k
/
stand
/
libbug
/
putchar.c
blob
ef6280e4ed91151c733b12a85a9b5e3c2c7a1d95
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
}