eGospodarka.pl
eGospodarka.pl poleca

eGospodarka.plGrupypl.comp.programming(announce) organic asm › Re: (announce) organic asm
  • Data: 2017-08-26 11:40:48
    Temat: Re: (announce) organic asm
    Od: fir <p...@g...com> szukaj wiadomości tego autora
    [ pokaż wszystkie 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: