🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.asm
Article #189

Re: Mnozenie w asmie - koprocesor

#189
From: Bogdan (bogdro)
Date: Mon, 03 Apr 2006 17:41
32 lines
1863 bytes
fly napisał(a):
> Hello,
> Probuje wlasnie pomnozyc w asmie takie oto liczby:
> 4 294 967 295 and 4 294 967 295 ;)
> kod:
> ...
> mianownik1 dq 0
> mianownik2 dq 0
> .
> .
> mov dword ptr mianownik1,esi
> mov dword ptr mianownik2,esi
> .
> .
> fild mianownik1
> fild mianownik2
> fmulp
> 
> TDostaje zly wynik, powinno byc tylr: 18446744065119617025
> a jest: 18446744065119617020.
> przegaldam rejestry koprocesora w OllyDbg. Nie wie dlaczego akurat w
> mnozeniu jest taki blad.. ma ktos jakis pomysl?

 Jak już powiedziano, brak precyzji koprocesora. Spróbuj FIMUL. Wynik
zmieściłby się w EDX:EAX, ale jak kto woli ;) Dla celów edukacyjnych
może być FPU.

-- 
Pozdrawiam, Bogdan                                  (Linux i FreeDOS)
Kurs assemblera x86 (DOS i Linuks): http://rudy.mif.pg.gda.pl/~bogdro
Grupy dyskusyjne o asm:  pl.comp.lang.asm alt.pl.asm alt.pl.asm.win32
Prawdziwy, bezpieczny komunikator:                   www.JabberPL.org
Technical Details
Message-ID: <e0rmoc$7o8$1@atlantis.news.tpi.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
References: <e0rg6v$afm$2@atlantis.news.tpi.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
From: "Bogdan (bogdro)" <bogdan@bogdan.pl>
Newsgroups: pl.comp.lang.asm
Subject: Re: Mnozenie w asmie - koprocesor
Date: Mon, 03 Apr 2006 19:41:06 +0200
Organization: tp.internet - http://www.tpi.pl/
Lines: 32
Message-ID: <e0rmoc$7o8$1@atlantis.news.tpi.pl>
References: <e0rg6v$afm$2@atlantis.news.tpi.pl>
NNTP-Posting-Host: acst193.neoplus.adsl.tpnet.pl
Mime-Version: 1.0
X-Trace: atlantis.news.tpi.pl 1144086092 7944 83.11.47.193 (3 Apr 2006 17:41:32 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Mon, 3 Apr 2006 17:41:32 +0000 (UTC)
User-Agent: Thunderbird 1.5 (X11/20051201)
In-Reply-To: <e0rg6v$afm$2@atlantis.news.tpi.pl>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit