eGospodarka.pl
eGospodarka.pl poleca

eGospodarka.plGrupypl.comp.programmingzawartosc rejestru EIP › Re: zawartosc rejestru EIP
  • Path: news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
    From: "Mariusz Marszałkowski" <b...@g...SKASUJ-TO.pl>
    Newsgroups: pl.comp.programming
    Subject: Re: zawartosc rejestru EIP
    Date: Fri, 10 Jul 2009 17:30:41 +0000 (UTC)
    Organization: "Portal Gazeta.pl -> http://www.gazeta.pl"
    Lines: 32
    Message-ID: <h37ts1$aad$1@inews.gazeta.pl>
    References: <4...@h...googlegroups.com>
    NNTP-Posting-Host: localhost
    Content-Type: text/plain; charset=ISO-8859-2
    Content-Transfer-Encoding: 8bit
    X-Trace: inews.gazeta.pl 1247247041 10573 172.20.26.233 (10 Jul 2009 17:30:41 GMT)
    X-Complaints-To: u...@a...pl
    NNTP-Posting-Date: Fri, 10 Jul 2009 17:30:41 +0000 (UTC)
    X-User: brodacz100
    X-Forwarded-For: 89.229.16.190
    X-Remote-IP: localhost
    Xref: news-archive.icm.edu.pl pl.comp.programming:182671
    [ ukryj nagłówki ]

    Krzysztof Poc <f...@w...pl> napisał(a):

    > Witajcie
    >
    > W jaki sposob moge w C++ wypisac zawartosc rejestru EIP.
    > Napisalem ponizszy programik, ktory niestety nie dziala dla eip.

    W wikipedii http://en.wikipedia.org/wiki/X86_assembly_language

    jest taki tekst:

    Using the instruction pointer register

    There is also a 32-bit instruction pointer, named EIP. The EIP register points
    to where in the program the processor is currently executing its code. The EIP
    register cannot be accessed by the programmer directly. Instead, a sequence
    like the following can be done to retrieve the address of next_line into EAX:

    call next_line
    next_line:
    pop eax

    This works even in position-independent code because call takes an
    EIP-relative immediate operand. To write to EIP is simple:

    jmp eax

    Pozdrawiam


    --
    Wysłano z serwisu Usenet w portalu Gazeta.pl -> http://www.gazeta.pl/usenet/

Podziel się

Poleć ten post znajomemu poleć

Wydrukuj ten post drukuj

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: