<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Sat, 23 Jan 1993 00:06:35 GMT
From   : news!wyvern!waggen!alpha@g.ms.uky.edu (Joe Wright)
Subject: Re: 8080/8085/Z80 Code Identifier

Strong datatypes for weak minds. (secrist@msdsws.enet.dec.com) wrote:

: Not that it'd be hard to write, but does anybody have some code you
: can feed a random .COM file to and have it tell you whether or not it's
: pure 8080, 8085, or Z80 code ?

I don't suppose so.  You can run the target code through a disassembler
and see what you get.  If you are sure you are in code and see JR to
a reasonable address, it's Z80 code.  If you see only JP (JMP) instructions
is is probably 8080 code.  8085 is identical to 8080 code except for
the SIM/RIM instructions (8085).  Most CP/M applications are written
in 8080 code so as to function equally well on 8080/8085/Z80 cpu's.
-- 
Joe Wright  alpha@waggen.twuug.com  "Jose' can you C?"

<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>