Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Count to 10

Name: Anonymous 2010-06-17 15:14

Lets see if /prog/ can count to 10 in C. I'll start:

int main(void){

Name: Anonymous 2010-06-24 11:02

2000 hrs in mspaint nano


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

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List