home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / cpm / 1645 < prev    next >
Encoding:
Internet Message Format  |  1993-01-27  |  1.5 KB

  1. Path: sparky!uunet!scifi!acheron!philabs!linus!agate!ucbvax!LL.MIT.EDU!sage
  2. From: sage@LL.MIT.EDU (Jay Sage)
  3. Newsgroups: comp.os.cpm
  4. Subject: Re: 8080/8085/Z80 Code Identifier
  5. Message-ID: <9301261249.AA05480@LL.MIT.EDU>
  6. Date: 26 Jan 93 17:49:19 GMT
  7. Sender: usenet@ucbvax.BERKELEY.EDU
  8. Organization: The Internet
  9. Lines: 22
  10.  
  11. Richard Plinston added the following comment to my suggestion of using an
  12. emulator to determine the presence or absence of Z80 opcodes in a given COM
  13. file:
  14.  
  15. >> But it will only execute those parts of the program that are in the
  16. >> execution path ... It may be that Z80 specific code only exists in parts
  17. >> of the program that are not executed ...
  18.  
  19.    This is true, and I, too, thought of that at the time I composed my
  20. message.  However, I decided not to mention it, since it is highly, highly
  21. unlikely -- though not impossible -- that only 8080 opcodes would be used in
  22. the main program code while a Z80 opcode would be used in exception code.
  23.  
  24.    One could come up with with a program (using self-modifying code!) that
  25. would appear to have only 8080 opcodes except under arbitarily specific
  26. input conditions, and to that extent there is no way, in principle, to
  27. determine with certainty from the COM file alone that it does not and can
  28. not contain Z80 opcodes.  However, I do not think that this is what the
  29. person who made the original posting was thinking about; his question was
  30. much more practical than that, and I think the emulator approach would solve
  31. his problem very nicely and easily.
  32.  
  33.