Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .data
- msg:
- .ascii "hallo w orld"
- .set len, .-msg
- .section .text
- .globl _start
- _start:
- jmp stub
- #write
- myfunc:
- pushq %rbp
- mov %rsp, %rbp
- movq 16(%rbp), %rdx
- movq %rbp, %rsi
- addq $24, %rsi
- movq $1, %rax
- movq $1, %rdi
- syscall
- popq %rbp
- ret
- stub:
- movq $1, %rax
- movq $'X', %rbx
- pushq %rbx
- pushq %rax
- call myfunc
- #exit
- movq $60, %rax
- movq $0, %rdi
- syscall
Advertisement
Add Comment
Please, Sign In to add comment