Mail Archives: djgpp/1998/03/14/20:40:36
At 12:42 3/13/1998 GMT, Perry DOT Fecteau AT Republican DOT COM wrote:
>i'm guessing it's a bios call. or is there an address i can find this
>information in?
Nothing so simple. It depends on just what you want to know.
Finding out the model (386, 486, Pentium) is fairly easy. Mostly it involves
checking how various flag bits work. I think there's a routine to do this on
www.intel.com.
Finding the brand (Intel, AMD, Cyrix) is harder. You can use CPUID if it's a
Pentium or better, otherwise you have to deal with a lot of undocumented
stuff. I think the Interrupt List (Simtelnet: info/inter*.zip) has some
routines for that.
Finding the speed is very hard. You have to time various instructions, and
it all differs between brands and models. Try to avoid that.
Nate Eldredge
eldredge AT ap DOT net
- Raw text -