Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .file "helloWorld2.c"
- .section .rodata
- .LC0:
- .string "Hello World.\n" #constant data
- .text
- .global main
- .type main, @function
- main:
- pushq %rbp
- movq %rsp, %rbp
- movl $13, %edx #length of the string
- movl $.LC0, %esi #use this memory location for the string
- movl $1, %edi #Write to screen flag 1
- call write
- movl $0, %eax #return 0
- leave #quick way to push rsp to rbp and pop the base pointer
- ret #return to the calling function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement