• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1.section __TEXT,__cstring
2.globl _hello_world, _hello_its_me, _print_hello
3
4_hello_world:
5.asciz "Hello world!\n"
6
7_hello_its_me:
8.asciz "Hello, it's me\n"
9
10.text
11_print_hello:
12  movl $0x2000004, %eax # write() syscall
13  mov $1, %rdi # stdout
14  leaq _hello_world(%rip), %rsi
15  mov $13, %rdx # length of str
16  syscall
17  ret
18