Article View: pl.comp.lang.asm
Article #1458Re: CPUID
From: Wiktor S.
Date: Fri, 17 Aug 2007 20:11
Date: Fri, 17 Aug 2007 20:11
30 lines
1887 bytes
1887 bytes
Wojtas wrote: > No więc funkcja: > > function cpuid:longword; > begin > asm > push ebx > mov eax, 1 > cpuid > mov eax,edx > pop ebx > end; > end; > > zwraca 4224632. wartość jest bez sensu, i odpowiada twoim cudom... dodaj xor edx,edx przed cpuid - coś się zmieniło? w jaki sposób wyświetliłeś tę liczbę - ma być traktowana jako 32-bitowa bez znaku -- Azarien
Technical Details
Message-ID:
<fa4vcv$93r$1@news.onet.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.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> <fa4dv8$cui$1@inews.gazeta.pl> <1187364631.269070.208920@57g2000hsv.googlegroups.com>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!not-for-mail From: "Wiktor S." <SPAM.wswiktor@poczta.SPAM.fm.SPAM> Newsgroups: pl.comp.lang.asm Subject: Re: CPUID Date: Fri, 17 Aug 2007 22:11:20 +0200 Organization: Onet.pl Lines: 31 Message-ID: <fa4vcv$93r$1@news.onet.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> <fa4dv8$cui$1@inews.gazeta.pl> <1187364631.269070.208920@57g2000hsv.googlegroups.com> NNTP-Posting-Host: 76.174.wmc.com.pl Mime-Version: 1.0 X-Trace: news.onet.pl 1187381471 9339 87.250.174.76 (17 Aug 2007 20:11:11 GMT) X-Complaints-To: usenet@news.onet.pl NNTP-Posting-Date: Fri, 17 Aug 2007 20:11:11 +0000 (UTC) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 X-Sender: 63e3folRCjcGWUjNfLSN0w== X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-Priority: 3 X-MSMail-Priority: Normal Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit