home *** CD-ROM | disk | FTP | other *** search
/ Executor 2.0 / executorv2.0.iso / pc / dos / extra / docs / maillist / text / archive.95 / text1888.txt < prev    next >
Encoding:
Internet Message Format  |  1996-03-31  |  2.3 KB

  1. Received: from gsfc.nasa.gov (gsfc.nasa.gov [128.183.115.38]) by nacm.com (8.6.10/8.6.9) with SMTP id NAA02291 for <executor@nacm.com>; Mon, 5 Jun 1995 13:43:58 -0700
  2. Received: from leidecker.gsfc.nasa.gov by gsfc.nasa.gov (5.65/Ultrix3.0-C)
  3.     id AA16659; Mon, 5 Jun 95 16:43:55 -0400
  4. Received: by leidecker.gsfc.nasa.gov (NX5.67d/NX3.0S)id AA02863; Mon, 5 Jun 95 16:43:51 -0400
  5. Date: Mon, 5 Jun 95 16:43:51 -0400
  6. From: My Account <me@leidecker.gsfc.nasa.gov>
  7. Message-Id: <9506052043.AA02863@leidecker.gsfc.nasa.gov>
  8. Received: by NeXT.Mailer (1.100)
  9. Received: by NeXT Mailer (1.100)
  10. To: executor@nacm.com
  11. Subject: Re: to announce emulation or to not announce... (Hamlet had it easy)
  12. Sender: owner-paper@nacm.com
  13. Precedence: bulk
  14.  
  15. Re the pros & cons of having an emulator "stand up when called"...
  16.  
  17. One traditional strategy applications have used to tell whether they  
  18. are running on a machine with Mac roms or not, has been to address  
  19. memory locations used by the roms, and attempt to change a value  
  20. contained there.  If the change is made, then there is ram at these  
  21. addresses and not rom.  For example, Dave Small uses this method to  
  22. recognize when his emulator is running within real Mac roms, or  
  23. within a ram-image of the Mac roms.
  24.  
  25. Also, the software can query each of the rom-addresses in which the  
  26. Mac roms store Mac-specific data, not used by standard OS calls.   
  27. What it finds in these sorts of addresses will tell the software  
  28. whether it is running on a machine with Mac-roms or not.  Ditto some  
  29. of the io devices.  You can pin down the precise sort of Mac you are  
  30. running on this way, with enough patience, if it is indeed a Mac at  
  31. all.
  32.  
  33. Granted, this gets more complicated with memory re-mapping schemes,  
  34. and it will eventually get impossible, but there is still some  
  35. mileage yet left in these traditional schemes.
  36.  
  37. So it seems to me that any programmer who really wants his/her  
  38. software to be able to learn if it is being run by "real Mac roms" or  
  39. an emulator can already do so using these well-known methods.  But it  
  40. is harder to use these methods to tell just which emulator is used,  
  41. or which version of an emulator, and thus it seems thoughtful to have  
  42. the emulator itself give its rank and serial number when asked ---   
  43. thoughtful, and unlikely to create a new problem.
  44.  
  45. Henning Leidecker
  46.  
  47.  
  48.  
  49.