diff options
author | Liu Aleaxander <Aleaxander@gmail.com> | 2009-06-03 07:18:15 +0800 |
---|---|---|
committer | Liu Aleaxander <Aleaxander@gmail.com> | 2009-06-03 07:18:15 +0800 |
commit | 1d7733675c3c265ba00094647d4910b0f5d8748d (patch) | |
tree | ef3c6cc52e5ae66fbdbbdc64970670ba58a886f0 /core/hello.c | |
parent | d0ce3937b75d491777e2c1f57ba0eaa20176b9f3 (diff) | |
parent | d19a7c6a6989f19c4f82212a9a7b654bdf289739 (diff) | |
download | syslinux-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.c | 8 |
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); } |