🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.asm
Article #1449

Re: CPUID

#1449
From: Bogdan (bogdro)
Date: Sun, 19 Aug 2007 08:27
37 lines
2291 bytes
Wojtas pisze:
> Dla testu wymodziłem coś takiego:
> 
> procedure IsHTT;
> var
>   _eax : Integer;
> begin
>   asm
>     push ebx
>     mov eax, 1
>     cpuid
>     mov _eax, eax

	mov	_edx, edx

>     pop ebx
>   end;
>   if (_eax and $04000000) = $04000000 then

	if ( _edx and $01000000 ) = $01000000 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?

 SprĂłbuj teraz.

-- 
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: <fa8uud$5f2$1@inews.gazeta.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
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> <1187355063.066173.227320@a39g2000hsc.googlegroups.com>

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: Sun, 19 Aug 2007 10:27:56 +0200
Organization: "Portal Gazeta.pl -> http://www.gazeta.pl"
Lines: 37
Message-ID: <fa8uud$5f2$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>   <fa44g4$3b3$1@news.onet.pl> <1187355063.066173.227320@a39g2000hsc.googlegroups.com>
NNTP-Posting-Host: ima.logireach.com
Mime-Version: 1.0
X-Trace: inews.gazeta.pl 1187512079 5602 88.191.22.62 (19 Aug 2007 08:27:59 GMT)
X-Complaints-To: usenet@agora.pl
NNTP-Posting-Date: Sun, 19 Aug 2007 08:27:59 +0000 (UTC)
X-User: bog.d
In-Reply-To: <1187355063.066173.227320@a39g2000hsc.googlegroups.com>
User-Agent: Thunderbird 2.0.0.6 (X11/20070728)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit