eGospodarka.pl
eGospodarka.pl poleca

eGospodarka.plGrupypl.comp.programming(announce) organic asm › Re: (announce) organic asm
  • X-Received: by 10.31.151.77 with SMTP id z74mr9433vkd.3.1503740449514; Sat, 26 Aug
    2017 02:40:49 -0700 (PDT)
    X-Received: by 10.31.151.77 with SMTP id z74mr9433vkd.3.1503740449514; Sat, 26 Aug
    2017 02:40:49 -0700 (PDT)
    Path: news-archive.icm.edu.pl!news.icm.edu.pl!news.nask.pl!news.nask.org.pl!news.unit
    0.net!peer02.am4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-medi
    a.com!news.highwinds-media.com!b76no508634itb.0!news-out.google.com!f21ni487qta
    .1!nntp.google.com!e2no781250qta.1!postnews.google.com!glegroupsg2000goo.google
    groups.com!not-for-mail
    Newsgroups: pl.comp.programming
    Date: Sat, 26 Aug 2017 02:40:48 -0700 (PDT)
    In-Reply-To: <0...@g...com>
    Complaints-To: g...@g...com
    Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=5.172.255.124;
    posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
    NNTP-Posting-Host: 5.172.255.124
    References: <7...@g...com>
    <d...@g...com>
    <0...@g...com>
    User-Agent: G2/1.0
    MIME-Version: 1.0
    Message-ID: <c...@g...com>
    Subject: Re: (announce) organic asm
    From: fir <p...@g...com>
    Injection-Date: Sat, 26 Aug 2017 09:40:49 +0000
    Content-Type: text/plain; charset="UTF-8"
    X-Received-Body-CRC: 2325538047
    X-Received-Bytes: 2866
    Xref: news-archive.icm.edu.pl pl.comp.programming:211333
    [ ukryj nagłówki ]

    dodalem jeszcze troche nowsza wersje

    minddetonator.htw.pl/organic4.zip


    ktora moze kompilowac kilka wiecej mnemonikow.. w weekend jak mi ogolne obolenie
    minie dodam jeszcze
    pare

    code

    mov eax 7
    call print_eax

    hoo:
    add eax 3
    call print_eax
    ; jmp hoo

    sub eax 5
    call print_eax

    imul eax 8
    call print_eax

    mov eax some_value
    call print_eax_hex

    mov ecx eax
    mov eax (ecx)
    call print_eax


    mov eax 55
    cmp eax 5
    jne skip
    mov eax 100
    call print_eax
    skip:
    mov eax 200
    call print_eax

    mov eax 10
    back:
    dec eax
    call print_eax
    cmp eax 0
    jne back

    ; zzzzz

    call print_esp
    call show_msgbox_hello
    call print_esp
    call show_msgbox_hello

    push 0
    call kernel32.ExitProcess

    print_esp:
    mov eax esp
    push eax
    push note_esp
    call msvcrt.printf
    pop eax
    pop eax
    ret

    print_eax:
    push eax
    push note_eax
    call msvcrt.printf
    pop eax
    pop eax
    ret

    print_eax_hex:
    push eax
    push note_eax_hex
    call msvcrt.printf
    pop eax
    pop eax
    ret

    show_msgbox_hello:
    push 0
    push null_string
    push hello_message
    push 0
    call user32.MessageBoxA
    ret

    test:
    mov eax (ecx)
    mov (ecx) eax
    ret

    .data

    note_eax: " eax = %d " 10 0
    note_eax_hex: " eax = %x " 10 0

    note_esp: " esp = 0x%08x " 10 0

    hello_message: " hello asm world ! " 0
    null_string: 0
    some_value: 33 0 0 0

Podziel się

Poleć ten post znajomemu poleć

Wydrukuj ten post drukuj


Następne wpisy z tego wątku

Najnowsze wątki z tej grupy


Najnowsze wątki

Szukaj w grupach

Eksperci egospodarka.pl

1 1 1

Wpisz nazwę miasta, dla którego chcesz znaleźć jednostkę ZUS.

Wzory dokumentów

Bezpłatne wzory dokumentów i formularzy.
Wyszukaj i pobierz za darmo: