diff --git a/hello/hello b/hello/hello index 20b7ed5..48c98a7 100755 Binary files a/hello/hello and b/hello/hello differ diff --git a/hello/hello-objdump.txt b/hello/hello-objdump.txt index 4acd6e3..495d493 100644 --- a/hello/hello-objdump.txt +++ b/hello/hello-objdump.txt @@ -22,7 +22,7 @@ Disassembly of section .text: 1017a: 4639 li a2,14 1017c: 00001597 auipc a1,0x1 10180: a3c58593 addi a1,a1,-1476 # 10bb8 - 10184: 4501 li a0,0 + 10184: 4505 li a0,1 10186: e406 sd ra,8(sp) 10188: 3d0000ef jal 10558 1018c: 60a2 ld ra,8(sp) diff --git a/hello/hello.c b/hello/hello.c index d74832a..f3369fe 100644 --- a/hello/hello.c +++ b/hello/hello.c @@ -3,7 +3,7 @@ int main(int argc, const char **argv) { static const char message[] = "Hello, world!\n"; - write(STDIN_FILENO, message, strlen(message)); + write(STDOUT_FILENO, message, strlen(message)); return 0; }