Article View: comp.lang.pascal.borland
Article #369Re: PIII PSN
From: Robert AH Prins
Date: Fri, 12 Mar 1999 00:00
Date: Fri, 12 Mar 1999 00:00
42 lines
1849 bytes
1849 bytes
In article <7cbqeu$t79$1@nnrp1.dejanews.com>, Robert AH Prins <prinsra@williscorroon.com> wrote: > Found this on <http://jpc.pair.com/Codex/article/psne.html> might be of some > use. It's Delphi, so replace label1.caption with a string variable. > > var HasID:boolean; > lowb,midb,hib,flags:integer; > begin > asm > push ebx > mov eax,1 > DB $0F,$A2 > mov hib,eax > mov flags,edx > pop ebx > end; > HasID:=((flags AND (1 shl 18))>0); > if HasID then > begin > asm > push ebx > mov eax,3 > DB $0F,$A2 > mov midb,edx > mov lowb,ecx > pop ebx > end; > label1.caption:='Num�ro de s�rie : ' + > IntToHex(hib,8)+IntToHex(midb,8)+IntToHex(lowb,8); > end > else > label1.caption:='Pas de num�ro de s�rie.'; > end; Excusez moi, you also have to use the db $66 prefix to access the 32-bit registers. -- Robert AH Prins prinsra@williscorroon.com -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
Technical Details
Message-ID:
<7cbvbh$1oh$1@nnrp1.dejanews.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7cbqeu$t79$1@nnrp1.dejanews.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 111659,f43108bce7cca443 X-Google-Attributes: gid111659,public X-Google-Thread: 108ebd,f43108bce7cca443 X-Google-Attributes: gid108ebd,public From: Robert AH Prins <prinsra@williscorroon.com> Subject: Re: PIII PSN Date: 1999/03/12 Message-ID: <7cbvbh$1oh$1@nnrp1.dejanews.com> X-Deja-AN: 454306102 References: <7cbqeu$t79$1@nnrp1.dejanews.com> X-Http-Proxy: 1.0 x4.dejanews.com:80 (Squid/1.1.22) for client 193.130.234.1 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Fri Mar 12 21:01:44 1999 GMT Newsgroups: comp.lang.pascal.borland,borland.public.turbopascal X-Http-User-Agent: Mozilla/4.05 [en] (WinNT; I)