Welcome, Guest. Please login or register.

Author Topic: How to detect CPU?  (Read 3286 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline ejstansTopic starter

  • Newbie
  • *
  • Join Date: Jun 2009
  • Posts: 48
    • Show all replies
How to detect CPU?
« on: July 23, 2009, 10:49:41 PM »
Hello (Again? Possible repost as forum seems to have eaten my previous one...)

Is there a way to determine the model (68000 - 68060) of the CPU? The old "How to code" document suggest to check the AttnFlags of Exec, but this only supports up to 68040, at least on V3.0. Does later versions support 68060? And how does the OS detect the model of the CPU anyway?
Also, short of trying to measure it, is there a way to determine the clock frequency of the CPU?

Thanks!
"It is preferable not to travel with a dead machine."

A500 1.3 / 512KiB slowmem / GVP HD8 w/ 8MiB fastmem & 52MB HDD
A600 2.05 / 1GB SSD
A1200 3.0 / Blizzard 1200/4 w/ 68882 @ 33MHz / 1GB SSD
A1200T 3.0 / Apollo 1260 w/ 68EC060 @ 50MHz & 16 MiB fastmem / 4GB SSD
 

Offline ejstansTopic starter

  • Newbie
  • *
  • Join Date: Jun 2009
  • Posts: 48
    • Show all replies
Re: How to detect CPU?
« Reply #1 on: July 24, 2009, 07:27:12 PM »
Great! I think that's exactly what I need! :)

Thanks!
"It is preferable not to travel with a dead machine."

A500 1.3 / 512KiB slowmem / GVP HD8 w/ 8MiB fastmem & 52MB HDD
A600 2.05 / 1GB SSD
A1200 3.0 / Blizzard 1200/4 w/ 68882 @ 33MHz / 1GB SSD
A1200T 3.0 / Apollo 1260 w/ 68EC060 @ 50MHz & 16 MiB fastmem / 4GB SSD