Name: Anonymous 2010-06-17 15:14
Lets see if /prog/ can count to 10 in C. I'll start:
int main(void){
int main(void){
section .text
global _start
_start:
mov esp, 0x31
loop:
mov eax, 4
mov ebx, 1
cmp esp, 0x3a
jnl bmsg
mov dword [msg], esp
mov dword [msg+1], 0xa
mov ecx, msg
mov edx, 2
int 0x80
inc esp
jmp loop
bmsg:
mov dword [msg], 0x31
mov dword [msg+1], 0x30
mov dword [msg+2], 0xa
mov ecx, msg
mov edx, 3
int 0x80
kill:
mov eax, 1
mov ebx, 0
int 0x80
section .bss
msg: resw 3