I'm doing some Amos programming and having fun with it!
The following code is for detecting and printing the type of CPU/FPU on your Amiga's system:
CPU=Peek(Leek(4)+$129)
CPU_68010=Btst(0,CPU)
CPU_68020=Btst(1,CPU)
CPU_68030=Btst(2,CPU)
CPU_68040=Btst(3,CPU)
CPU_68060=Btst(7,CPU)
CP$="68000"
If CPU_68010
CP$="68010"
End If
If CPU_68020
CP$="68020"
End If
If CPU_68030
CP$="68030"
End If
If CPU_68040
CP$="68040"
End If
If CPU_68060
CP$="68060"
End If
K68881=Btst(4,CPU)
K68882=Btst(5,CPU)
K_W=Btst(6,CPU)
FP$=" "
If CPU_68040
If K_W
FP$="68040"
End If
End If
If CPU_68060
If K_W
FP$="68060"
End If
End If
If K68881
FP$="68881"
End If
If K68882
FP$="68882"
End If
Print CP$
Print FP$
What I'd like to know is what the code/procedure is for printing out the CPU's/FPU's speed in Mhz (if it's possible with Amos programming). Does anyone know and
want to share it?
:idea: