You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
323 B

.section __TEXT,__cstring
.globl _hello_world, _hello_its_me, _print_hello
_hello_world:
.asciz "Hello world!\n"
_hello_its_me:
.asciz "Hello, it's me\n"
.text
_print_hello:
movl $0x2000004, %eax # write() syscall
mov $1, %rdi # stdout
leaq _hello_world(%rip), %rsi
mov $13, %rdx # length of str
syscall
ret