home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 15 / AACD15.ISO / AACD / Programming / MultiDesktop / system / bak / g.c next >
Encoding:
C/C++ Source or Header  |  1997-03-27  |  521 b   |  38 lines

  1. #include "multidesktop.h"
  2.  
  3. APTR MultiSystemBase;
  4.  
  5. ULONG crp[4];
  6. ULONG tc;
  7. ULONG tt0,tt1;
  8.  
  9. ULONG *PageTable;
  10.  
  11. main()
  12. {
  13.  ULONG a,b,c;
  14.  
  15.  MultiSystemBase=OpenLibrary("multisystem.library",0L);
  16.  c=GetMMUType();
  17.  if(c==68030)
  18.   {
  19.    puts("68030 MMU");
  20.    GetCRP(&crp);
  21.    tc=GetTC();
  22.    tt0=GetTT0();
  23.    tt1=GetTT1();
  24.    printf("%08lx%08lx  %08lx  %08lx  %08lx\n",crp[0],crp[1],tc,tt0,tt1);
  25.  
  26.  
  27.    PageTable=crp[1];
  28.  
  29.  
  30.  
  31.  
  32.   } else puts("No 68030 MMU");
  33.  puts("ok");
  34.  RemLibrary(MultiSystemBase);
  35.  CloseLibrary(MultiSystemBase);
  36. }
  37.  
  38.