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

More Anonix Win

Name: Anonymous 2011-08-07 15:31

BEHOLD!



#ifndef __ANONIXWIN_H__
#define __ANONIXWIN_H__

/* Anonix.h - A set of common functions for the Anonix operating system. Copyright: none. Public Domain. Written by Anonymous. United by one. Divided by zero. We do not forgive nor forget. Expect us. */

const int ZERO = 0;

int isequalto(int x,int y){return x==y;}
int isnotequalto(int x,int y){return !isequalto(x, y);}
int islessthan(int x,int y){return x<y;}
int islessthanorequalto(int x,int y){return islessthan(x, y) || isequalto(x, y);}
int isgreaterthan(int x,int y){return x>y;}
int isgreaterthanorequalto(int x,int y){return isgreaterthan(x, y) || isequalto(x, y);}
int isnegative(int x){return islessthan(x, ZERO);}
int ispositive(int x){return isgreaterthanorequalto(x, ZERO);}
int iszero(int x){return isequalto(x, ZERO);}
int isnotzero(int x){return isnotequalto(x, ZERO);}
int dividebyzero(int x){return x/ZERO;}

#endif

Name: Anonymous 2011-08-07 20:04

section    .bss
iobuf:    resb    1024

section    .text
    global    _start
_start:
    pop    ecx
    pop    eax
    mov    ebx, iobuf

    dec    ecx
    test    ecx, ecx
    jz    .fin

    jmp    .argvloop
.SPACE:
    mov    byte [ebx], 0x20
    inc    ebx
.argvloop:
    mov    edx, ecx

    pop    edi
    xor    ecx, ecx
    xor    al, al
    not    ecx
    cld
    repne    scasb
    not    ecx
    mov    esi, edi
    sub    esi, ecx
    mov    edi, ebx
    add    ebx, ecx
    rep    movsb

    mov    ecx, edx
    loop    .SPACE
.fin:
    mov    byte [ebx], 0xa

    lea    edx, [ebx + 1]
    mov    eax, 4
    mov    ebx, 1
    mov    ecx, iobuf
    sub    edx, ecx
    int    0x80
   
    mov    eax, 1
    mov    ebx, 0
    int    0x80

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