Amiga.org
Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: baxyp on May 31, 2008, 09:11:48 PM
-
I would like to detect in startup-sequence which cpu is currently active (68020 or 68060) and execute different script depending on cpu type. I have blizzard 1260 and when I boot with accelerator deactivated, I want to keep as much memory free as possible. Another way to detect if the accelerator is active, besides cpu type, is to check the amount of fast ram.
Is it possible to do that with OS 3.1 standard utilities and can you show me an example script ?
Btw. CPU command has a CHECK option, what does that do ?
-
Well, you can use CPU and put the output in a file that you compare with an another one, then start an another SSeq :-)
-
Hehe, copying to file gave me an idea. I did this:
avail >ENV:Fast FAST
if not val $Fast eq 0
; accelerator enabled
else
; accelerator disabled
endif
[/size]
Thanks!
-
CPU CHECK indeed can be used to check for cpu X or better. The result is returned in the RC variable. Old CPU command only knows of 68040 though, but that naturally 68060 falls into that category, too.