Article View: pl.comp.lang.asm
Article #1445Re: CPUID
From: Wojtas
Date: Fri, 17 Aug 2007 12:51
Date: Fri, 17 Aug 2007 12:51
32 lines
2579 bytes
2579 bytes
> I powiedz nam, dlaczego w zwracanym typie longint bit nr. 28 jest
> zapalony :P
Trzeba go zanegować czy cuś? Bo jak nie o to chodzi to pojęcia nie
mam :)
> http://www.swissdelphicenter.ch/torry/showcode.php?id=2044
znam ten link... już wcześniej z niego trochę skorzystałem, ale nie
zwróciłem uwagi na sposób w jaki odczytują bity.
Dla testu wymodziłem coś takiego:
procedure IsHTT;
var
_eax : Integer;
begin
asm
push ebx
mov eax, 1
cpuid
mov _eax, eax
pop ebx
end;
if (_eax and $04000000) = $04000000 then
MessageBox(0, 'Bit 28 zapalony - HTT obsługiwane.', 'CPUID:', 0)
else MessageBox(0, 'Bit 28 zgaszony - HTT NIE obsługiwane.',
'CPUID:', 0);
end;
Odpala się MessageBox(0, 'Bit 28 zgaszony - HTT NIE obsługiwane.',
'CPUID:', 0);
Tylko czy ja to dobrze zrobiłem?
Technical Details
Message-ID:
<1187355063.066173.227320@a39g2000hsc.googlegroups.com>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.nask.pl!news.nask.org.pl!newshub.sdsu.edu!postnews.google.com!a39g2000hsc.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> <fa44g4$3b3$1@news.onet.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.nask.pl!news.nask.org.pl!newshub.sdsu.edu!postnews.google.com!a39g2000hsc.googlegroups.com!not-for-mail From: Wojtas <wojtas.freesoft@gmail.com> Newsgroups: pl.comp.lang.asm Subject: Re: CPUID Date: Fri, 17 Aug 2007 05:51:03 -0700 Organization: http://groups.google.com Lines: 33 Message-ID: <1187355063.066173.227320@a39g2000hsc.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> <fa44g4$3b3$1@news.onet.pl> NNTP-Posting-Host: 83.14.84.194 Mime-Version: 1.0 X-Trace: posting.google.com 1187355063 4592 127.0.0.1 (17 Aug 2007 12:51:03 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 17 Aug 2007 12:51:03 +0000 (UTC) In-Reply-To: <fa44g4$3b3$1@news.onet.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: a39g2000hsc.googlegroups.com; posting-host=83.14.84.194; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit