23 Mar 2007 (Fri)

08:02:12 # Life Playing with your CPUID instruction. Using realcsh, it's pretty simple to find out cpuid instruction is going to give you. For example, when EAX=0, cpuid returns you some kind of vendor id. On my system, it gave me 68747541 444d4163 69746e65, which obviously is 'AuthenticAMD'.

REAL csh: int a,b,c,d; asm ("cpuid" : "=a"(a), "=b"(b), "=c"(c), "=d"(d) : "a"(0) ); printf("%x %x %x %x\n", a, b, c, d);
1 68747541 444d4163 69746e65
	
Junichi Uekawa

$Id: dancer-diary.el,v 1.91 2006/06/15 15:14:10 dancer Exp $