aboutsummaryrefslogtreecommitdiffstats
path: root/core/hello.c
diff options
context:
space:
mode:
authorLiu Aleaxander <Aleaxander@gmail.com>2009-06-03 07:18:15 +0800
committerLiu Aleaxander <Aleaxander@gmail.com>2009-06-03 07:18:15 +0800
commit1d7733675c3c265ba00094647d4910b0f5d8748d (patch)
treeef3c6cc52e5ae66fbdbbdc64970670ba58a886f0 /core/hello.c
parentd0ce3937b75d491777e2c1f57ba0eaa20176b9f3 (diff)
parentd19a7c6a6989f19c4f82212a9a7b654bdf289739 (diff)
downloadsyslinux-1d7733675c3c265ba00094647d4910b0f5d8748d.tar.gz
Merge branch 'core32' of git://git.zytor.com/syslinux/syslinux into core32
Conflicts: core/hello.c core/include/core.h core/layout.inc
Diffstat (limited to 'core/hello.c')
-rw-r--r--core/hello.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/hello.c b/core/hello.c
index 1909de44..ae75ced3 100644
--- a/core/hello.c
+++ b/core/hello.c
@@ -20,13 +20,13 @@ void itoa(char *str, int num)
void myputchar(int c)
{
static com32sys_t ireg;
- //static uint16_t *vram = 0xb8000;
+
+ if (c == '\n')
+ myputchar('\r');
ireg.eax.b[1] = 0x02;
ireg.edx.b[0] = c;
__intcall(0x21, &ireg, NULL);
-
- //*vram++ = c + 0x0700;
}
void myputs(const char *str)
@@ -37,7 +37,7 @@ void myputs(const char *str)
void hello(void)
{
- static char hello_str[] = "Hello, World! (hello.c)\r\n";
+ static char hello_str[] = "Hello, World! (hello.c)\n";
myputs(hello_str);
}