Article View: pl.comp.lang.asm
Article #1455Re: CPUID
From: Bogdan (bogdro)
Date: Fri, 17 Aug 2007 15:13
Date: Fri, 17 Aug 2007 15:13
39 lines
2286 bytes
2286 bytes
Wiktor S. pisze: >>> dziala u mnie. Masz jeszcze jakis problem? > >> Tak - u mnie obie funkcje zwracają 1! > >>> Pytania? > >> Tak. Dlaczego tak się dzieje? Mój procesor nie ma HTT. > > nie ma cudów. > > function cpuid:longword; > begin > asm > push ebx > mov eax, 1 > cpuid > mov eax,edx > end; > end; > > ... > > edit1.text:=inttostr(cpuid); > > > podaj jaką liczbę ta funkcja zwraca. Według mnie zwróci coś z przedziału od bluescreena do okienka, że system Windows ubolewa, ale musiał zamknąć program. Chyba że automagicznie delphi doda brakujący "pop ebx" :) Ale pomysł dobry, niech pytający przyśle jakiś wynik, żeby można było zdiagnozować. -- Pozdrawiam/Regards - Bogdan (Linux & FreeDOS) Kurs asemblera x86 (DOS & Linux): http://rudy.mif.pg.gda.pl/~bogdro Grupy dyskusyjne o asm: pl.comp.lang.asm alt.pl.asm alt.pl.asm.win32 Rozmawiaj bezpiecznie: www.JabberPL.org Surfuj anonimowo: tor.eff.org
Technical Details
Message-ID:
<fa4dv8$cui$1@inews.gazeta.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mailReferences:
<1187283337.535618.34200@w3g2000hsg.googlegroups.com> <fa22h7$dhj$1@news.onet.pl> <1187302782.224820.88620@19g2000hsx.googlegroups.com> <fa3o0c$10s$1@news.onet.pl> <fa3oaf$1df$1@news.onet.pl> <fa3q1a$6th$1@news.onet.pl> <slrnfcar1i.30s.wojciech_mula@cat.tac> <fa3vc4$ktc$1@news.onet.pl> <1187350008.273281.101010@r34g2000hsd.googlegroups.com> <1187350422.704355.176700@o80g2000hse.googlegroups.com> <fa42mp$trk$1@news.onet.pl> <1187353080.347007.243840@19g2000hsx.googlegroups.com> <fa4cb0$nna$1@news.onet.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail From: "Bogdan (bogdro)" <bogdan@poczta.gazeta.pl> Newsgroups: pl.comp.lang.asm Subject: Re: CPUID Date: Fri, 17 Aug 2007 17:13:09 +0200 Organization: "Portal Gazeta.pl -> http://www.gazeta.pl" Lines: 39 Message-ID: <fa4dv8$cui$1@inews.gazeta.pl> References: <1187283337.535618.34200@w3g2000hsg.googlegroups.com> <fa22h7$dhj$1@news.onet.pl> <1187302782.224820.88620@19g2000hsx.googlegroups.com> <fa3o0c$10s$1@news.onet.pl> <fa3oaf$1df$1@news.onet.pl> <fa3q1a$6th$1@news.onet.pl> <slrnfcar1i.30s.wojciech_mula@cat.tac> <fa3vc4$ktc$1@news.onet.pl> <1187350008.273281.101010@r34g2000hsd.googlegroups.com> <1187350422.704355.176700@o80g2000hse.googlegroups.com> <fa42mp$trk$1@news.onet.pl> <1187353080.347007.243840@19g2000hsx.googlegroups.com> <fa4cb0$nna$1@news.onet.pl> NNTP-Posting-Host: tor.stugs.com Mime-Version: 1.0 X-Trace: inews.gazeta.pl 1187363628 13266 216.9.84.146 (17 Aug 2007 15:13:48 GMT) X-Complaints-To: usenet@agora.pl NNTP-Posting-Date: Fri, 17 Aug 2007 15:13:48 +0000 (UTC) X-User: bog.d In-Reply-To: <fa4cb0$nna$1@news.onet.pl> User-Agent: Thunderbird 2.0.0.6 (X11/20070728) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit