home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 791 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  900 b 

  1. Path: clri6a.gsi.de!kraemer
  2. From: kraemer@clri6a.gsi.de (Michael Kraemer)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: asm code needed to check thecurrent processor ...
  5. Date: 11 Jan 1996 16:08:09 GMT
  6. Organization: GSI Darmstadt
  7. Message-ID: <4d3cla$n6c@rs18.hrz.th-darmstadt.de>
  8. References: <4d1j99$fs6@rc1.vub.ac.be>
  9. NNTP-Posting-Host: clri6a.gsi.de
  10. To: vcolet@vub.ac.be (COLET VINCENT)
  11.  
  12. In article <4d1j99$fs6@rc1.vub.ac.be>, vcolet@vub.ac.be (COLET VINCENT) writes:
  13. >     hi, I'm looking for some asm code to check current processor
  14. > (680x0) available, fpu, mmu on a Amiga.
  15. >     I'f you have some routines ... could you send it to me ...
  16. >
  17.  
  18. As a first aid you could do sth like:
  19.  
  20.    move.l #4,a0
  21.    move.l (a0),a0
  22.    btst   #1,AttnFlags+1(a0) ; test if CPU >= 68020
  23.    beq    No_68020
  24.  
  25. I don't have the bits for the other processors/FPUs at hand, but they are
  26. defined in "execbase.i" I guess.
  27.