repo.or.cz
/
syslinux-debian
/
hramrach.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Releasing debian version 4.04+dfsg-9.
[syslinux-debian/hramrach.git]
/
core
/
console.c
blob
282c57f5c2c2784454887bfca32fbb20f6a14443
1
#include <stddef.h>
2
#include <com32.h>
3
#include <stdio.h>
4
#include <string.h>
5
6
void
myputchar
(
int
c
)
7
{
8
static
com32sys_t ireg
;
9
10
if
(
c
==
'
\n
'
)
11
myputchar
(
'
\r
'
);
12
13
ireg
.
eax
.
b
[
1
] =
0x02
;
14
ireg
.
edx
.
b
[
0
] =
c
;
15
__intcall
(
0x21
, &
ireg
,
NULL
);
16
}
17
18
void
myputs
(
const char
*
str
)
19
{
20
while
(*
str
)
21
myputchar
(*
str
++);
22
}