projects
/
platform
/
upstream
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b2e274
)
core/hello.c: use __intcall() as a demo
author
H. Peter Anvin
<hpa@zytor.com>
Mon, 1 Jun 2009 05:25:50 +0000
(22:25 -0700)
committer
H. Peter Anvin
<hpa@zytor.com>
Mon, 1 Jun 2009 05:25:50 +0000
(22:25 -0700)
Use __intcall() to indicate that we now can use the same functions as
used in libcom32.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
core/hello.c
patch
|
blob
|
history
diff --git
a/core/hello.c
b/core/hello.c
index
ec2f5ff
..
eb0069f
100644
(file)
--- a/
core/hello.c
+++ b/
core/hello.c
@@
-1,5
+1,5
@@
#include <stddef.h>
-#include
"core.h"
+#include
<com32.h>
void myputchar(int c)
{
@@
-8,7
+8,7
@@
void myputchar(int c)
ireg.eax.b[1] = 0x02;
ireg.edx.b[0] = c;
-
core
_intcall(0x21, &ireg, NULL);
+
_
_intcall(0x21, &ireg, NULL);
*vram++ = c + 0x1f00;
}