eGospodarka.pl
eGospodarka.pl poleca

eGospodarka.plGrupypl.comp.programming(announce) organic asm › Re: (announce) organic asm
  • X-Received: by 10.31.188.201 with SMTP id m192mr57301vkf.26.1503681978665; Fri, 25
    Aug 2017 10:26:18 -0700 (PDT)
    X-Received: by 10.31.188.201 with SMTP id m192mr57301vkf.26.1503681978665; Fri, 25
    Aug 2017 10:26:18 -0700 (PDT)
    Path: news-archive.icm.edu.pl!news.icm.edu.pl!news.nask.pl!news.nask.org.pl!news.unit
    0.net!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.
    iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!e2no503
    251qta.1!news-out.google.com!a26ni391qta.0!nntp.google.com!v29no503235qtv.0!pos
    tnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
    Newsgroups: pl.comp.programming
    Date: Fri, 25 Aug 2017 10:26:18 -0700 (PDT)
    In-Reply-To: <d...@g...com>
    Complaints-To: g...@g...com
    Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=5.172.255.253;
    posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
    NNTP-Posting-Host: 5.172.255.253
    References: <7...@g...com>
    <d...@g...com>
    User-Agent: G2/1.0
    MIME-Version: 1.0
    Message-ID: <0...@g...com>
    Subject: Re: (announce) organic asm
    From: fir <p...@g...com>
    Injection-Date: Fri, 25 Aug 2017 17:26:18 +0000
    Content-Type: text/plain; charset="UTF-8"
    Lines: 111
    Xref: news-archive.icm.edu.pl pl.comp.programming:211323
    [ ukryj nagłówki ]


    minddetonator.htw.pl/organic3.zip

    dorobilem jakies reportowanie
    wynikow roboty assemblera (co jest przydatne imo)

    wyglada to mw tak ->


    Organic Assembler (org-asm) by fir 2017

    note: this is very early version with some artificial
    constraints, no error messages and only few mnemonics implemented,
    i will work on it in few days, though

    Opening: input.asm

    Code selected for assembly :

    0 ''
    1 ''
    2 'mov eax 10'
    3 'back:'
    4 'dec eax'
    5 'push eax'
    6 'push note'
    7 'call msvcrt.printf'
    8 'pop eax'
    9 'pop eax'
    10 'cmp eax 0'
    11 'jne back'
    12 ''
    13 'mov eax esp'
    14 ''
    15 'push eax'
    16 'push note2'
    17 'call msvcrt.printf'
    18 'pop eax'
    19 'pop eax'
    20 ''
    21 'push 0'
    22 'push zero'
    23 'push msg'
    24 'push 0'
    25 'call user32.MessageBoxA'
    26 ''
    27 'mov eax esp'
    28 ''
    29 'push eax'
    30 'push note2'
    31 'call msvcrt.printf'
    32 'pop eax'
    33 'pop eax'
    34 ''
    35 'push 0'
    36 'push zero'
    37 'push msg'
    38 'push 0'
    39 'call user32.MessageBoxA'
    40 ''
    41 'push 0'
    42 'call kernel32.ExitProcess'
    43 ''

    Data selected for build :

    0 ''
    1 'note: " x = %d " 10 0'
    2 'note2: " esp = %x " 10 0'
    3 ''
    4 'msg: " hello asm world ! " 0'
    5 'zero: 0'
    6 ''

    Building imports :

    msvcrt
    printf (0x00402400)

    user32
    MessageBoxA (0x00402440)

    kernel32
    ExitProcess (0x00402480)

    Building data section :

    label note: (0x00403000)
    label note2: (0x0040300b)
    label msg: (0x00403017)
    label zero: (0x0040302b)

    44 (0x002c) bytes collected in data section

    Assembling asm :

    111 (0x006f) bytes assembled:

    401000 b8 0a 00 00 00 48 50 68 00 30 40 00 ff 15 00 24
    401010 40 00 58 58 3d 00 00 00 00 0f 85 e6 ff ff ff 89
    401020 e0 50 68 0b 30 40 00 ff 15 00 24 40 00 58 58 6a
    401030 00 68 2b 30 40 00 68 17 30 40 00 6a 00 ff 15 40
    401040 24 40 00 89 e0 50 68 0b 30 40 00 ff 15 00 24 40
    401050 00 58 58 6a 00 68 2b 30 40 00 68 17 30 40 00 6a
    401060 00 ff 15 40 24 40 00 6a 00 ff 15 80 24 40 00

    Saving Output: result.exe

    OK


    teraz trzebby dorobic wiecej mnemonikow, (podobnie skoki to etykiety dzialaja tylko w
    tyl ;c

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: