Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;#include <stdio.h>
- section .data
- ;char msg[] = "Hello World\n";
- msg db "Hello World!", 0x0a
- section .text
- global _start
- ;int main(){
- _start:
- ;int i = 0;
- push 0
- loop:
- ;write(stdout, msg, 13);
- mov eax, 4
- mov ebx, 1
- mov ecx, msg
- mov edx, 13
- int 0x80
- ;i++;
- inc DWORD [esp-4]
- ;if(i < 10)
- ; goto loop;
- cmp DWORD [esp-4], 10
- jl loop
- ;exit(0)
- mov eax, 1
- mov ebx, 0
- int 0x80
- ;}
Add Comment
Please, Sign In to add comment