Article View: pl.comp.lang.asm
Article #1456Re: CPUID
From: Wojtas
Date: Fri, 17 Aug 2007 15:30
Date: Fri, 17 Aug 2007 15:30
24 lines
2190 bytes
2190 bytes
No więc funkcja:
function cpuid:longword;
begin
asm
push ebx
mov eax, 1
cpuid
mov eax,edx
pop ebx
end;
end;
zwraca 4224632.
Michal Shulz wrote:
> 1 shl 28
> innymi slowy, przesuwasz bit numer ZERO o 28 miejsc w lewo. Kolega widze za
> CPUID sie zabiera, a wiedzy elementarnej dla kazdego programisty (nie tylko
> dla assemblerowcow) brak...
Nie uwierzysz ale - wiem co oznacza shr, shl :)
Technical Details
Message-ID:
<1187364631.269070.208920@57g2000hsv.googlegroups.com>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.glorb.com!postnews.google.com!57g2000hsv.googlegroups.com!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>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.glorb.com!postnews.google.com!57g2000hsv.googlegroups.com!not-for-mail From: Wojtas <wojtas.freesoft@gmail.com> Newsgroups: pl.comp.lang.asm Subject: Re: CPUID Date: Fri, 17 Aug 2007 08:30:31 -0700 Organization: http://groups.google.com Lines: 27 Message-ID: <1187364631.269070.208920@57g2000hsv.googlegroups.com> 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> NNTP-Posting-Host: 83.14.84.194 Mime-Version: 1.0 X-Trace: posting.google.com 1187364631 28603 127.0.0.1 (17 Aug 2007 15:30:31 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 17 Aug 2007 15:30:31 +0000 (UTC) In-Reply-To: <fa4dv8$cui$1@inews.gazeta.pl> User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.21 (Windows NT 5.1; U; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; FDM; Alexa Toolbar); pl),gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 server.kisielin.pl:800 (squid/2.6.STABLE9) Complaints-To: groups-abuse@google.com Injection-Info: 57g2000hsv.googlegroups.com; posting-host=83.14.84.194; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit