Article View: pl.comp.lang.asm
Article #1461Re: CPUID
From: Wojciech Muła
Date: Sat, 18 Aug 2007 20:12
Date: Sat, 18 Aug 2007 20:12
20 lines
1839 bytes
1839 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; Już to pisałem: cpuid modyfikuje eax, ebx, ecx i edx. Zapamiętujesz tylko ebx, a co z ecx i edx? Kompilator nie wie, że ecx i edx są zmieniane to raczej stąd problemy. Bo głupiego testowania bitu **nie da się** spieprzyć. w.
Technical Details
Message-ID:
<slrnfcekka.2lu.wojciech_mula@cat.tac>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.gazeta.pl!news.nask.pl!news.nask.org.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.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.gazeta.pl!newsfeed.gazeta.pl!news.nask.pl!news.nask.org.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail From: Wojciech Muła <wojciech_mula@poczta.null.onet.pl.invalid> Newsgroups: pl.comp.lang.asm Subject: Re: CPUID Date: Sat, 18 Aug 2007 20:12:49 +0000 (UTC) Organization: http://www.mula.w.pl Lines: 20 Message-ID: <slrnfcekka.2lu.wojciech_mula@cat.tac> 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: acye41.neoplus.adsl.tpnet.pl Mime-Version: 1.0 X-Trace: atlantis.news.tpi.pl 1187467969 11622 83.11.188.41 (18 Aug 2007 20:12:49 GMT) X-Complaints-To: usenet@tpi.pl NNTP-Posting-Date: Sat, 18 Aug 2007 20:12:49 +0000 (UTC) User-Agent: slrn/0.9.8.1pl1 (Debian) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit