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

argv is bloat

Name: Anonymous 2011-11-26 21:11

this_is_fasta.c :


#include <stdio.h>
#include <stdlib.h>

void _start() {
  puts("I pity the fools that lag program start and ending by calling and returning from main");
  exit(0);
}



noTIMEfor@LOVE$ gcc -c this_is_fasta.c
noTIMEfor@LOVE$ ld -I/lib/ld-linux.so.2 -lc this_is_fasta.o -o this_is_fasta
noTIMEfor@LOVE$ this_is_fasta
I pity the fools that lag program start and ending by calling and returning from main
noTIMEfor@LOVE$

Name: Anonymous 2011-11-26 22:10

>>5
section    .data
s:    db    "I pity the fools that bloat strings by null terminating them", 0xa
l:    equ    $ - s

section    .text
    global    _start
_start:
    mov    eax, 4
    mov    ebx, 1
    mov    ecx, s
    mov    edx, l
    int    0x80

    mov    eax, 1
    mov    ebx, 0
    int    0x80

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