Thread: Cpuid
View Single Post
Old 26 May 2014, 15:54   #8
Mrs Beanbag
Glastonbridge Software
 
Mrs Beanbag's Avatar
 
Join Date: Jan 2012
Location: Edinburgh/Scotland
Posts: 2,243
I suppose I really want to know if CPU has certain features or not, rather than the exact model (i.e. does it have 68020 addressing modes), and don't want to rely on OS patches or even OS versions. Maybe something like the following would work?
Code:
  moveq #2,D0
  move.w data(PC,D0*2),D0
...
data:
  dc.w 0, 0, $ff
If CPU doesn't support scaled indexing, it won't throw an exception, it will just reference the "wrong" address.
Mrs Beanbag is offline  
 
Page generated in 0.04189 seconds with 11 queries