Processor Speed...

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
MasterMind

Processor Speed...

Post by MasterMind »

Hello fellow OS coders,
I have a rather stupid question for you...

I'm writing an OS all in assembly (NASM) and
was wondering if anyone out there has some code
that will tell me the processor type and speed.


Thank you...
Chase

RE:Processor Speed...

Post by Chase »

>On 2001-02-28 20:31:52, MasterMind wrote:

>was wondering if anyone out there has some code
>that will tell me the processor type and speed.

not sure how up to date it is but try
http://www.programmersheaven.com/zone5/cat20/
and look for cpu115.zip
Crystalline

RE:Processor Speed...

Post by Crystalline »

>On 2001-02-28 20:31:52, MasterMind wrote:
>Hello fellow OS coders,
>I have a rather stupid question for you...
>
>I'm writing an OS all in assembly (NASM) and
>was wondering if anyone out there has some code
>that will tell me the processor type and speed.
>
>
>Thank you...

The safest and most accurate way is to use the CPUID
instruction(486+) you can search at developer.intel.com
for the CPUID functions
Post Reply