home *** CD-ROM | disk | FTP | other *** search
/ APDL Public Domain 1 / APDL_PD1A.iso / program / arm3detect / C < prev    next >
Encoding:
Text File  |  1993-09-08  |  351 b   |  24 lines

  1. /* ARM 3 Detection routines by Ampy of ARMFul
  2.    See docs for details.
  3. */
  4.  
  5. #ifndef __dl_swi_h
  6. #include "DeskLib:Swi.h"
  7. #endif
  8.  
  9. BOOL arm3detect(void)
  10. {
  11.   os_error *p = NULL;
  12.  
  13.   p = SWI(2, 0, SWI_OS_Module, 18, "ARM3Support");
  14.   if (p==NULL)
  15.   {
  16.     int old;
  17.     SWI(0, 1, 0x280, &old);
  18.     if (old == 0)
  19.       return(FALSE);
  20.   }
  21.  
  22.   return (p==NULL);
  23. }
  24.