🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sources.d
Article #2150

Re: Z80 -> 8080 converter

#2150
From: paula
Date: Wed, 21 Jan 1987 04:55
43 lines
2910 bytes
ben@catnip.UUCP (Bennett Broder) writes:

>In article <175@herman.UUCP> det@herman.UUCP (Derek Terveer) writes:
>>In article <249@rocksanne.UUCP>, stein@rocksanne.UUCP (Adam Stein) writes:
>>> I am look for a Z80 to 8080 program converter.  My C compiler only comes with
>>
>>I believe that z80 has a mere two instructions that 8080 doesn't have.
>>Therefore, most likely, your z80 program will run unchanged with the 8080
>>assembler (I hope i'm right in this).  (As long as the z80 code doesn't use
>>those two instructions that is)
>
>The Z80 and 8080 use the same op-codes and very nearly compatible (except
>for a couple of new instructions on the Z80), but the assembly language

Since it's been a while since I looked at my Z80 Tech Ref, I'm not going
to flame anybody for posting without knowing what they're talking about.
But really, guys.  The Z80 has at least twice as many opcodes as the
8080.  Most of the new instructions were bit-manipulation, block move,
and block I/O.  The machine architecture included two new index
registers and a duplicate set of registers for fast context-switching.
There were certainly some other additional features, but I can't
remember them.  The Z80 was intended to be upward-compatible with the
8080.  In fact, most 8080 code will run unchanged on a Z80.  (There was
one problem with the Z flag or something, but I don't remember the
details.)

In response to the original poster, a translator from Z80 to 8080 will
need to output 8080 code to emulate not only the new instructions, but
also the expanded register set.  Probably doable, but not as trivial as
some have suggested.  And no, I don't know where you can get such a
translator.  Sorry.

Paul Allen

-- 
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Paul L. Allen                           | "Look out, men! He's armed!"
Boeing Advanced Technology Center       |        "I've got a cheese grater,
POB 24346 M/S 7L-44,                    |        and I'm not afraid to use it!"
Seattle, WA, USA 98124                  | "Don't make it any harder 
(206) 865-3207                          | on yourself, kid! Drop it!"
...!uw-beaver!ssc-vax!bcsaic!paula      |        "Eat mozzarella, copper!"
Technical Details
Message-ID: <194@bcsaic.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!brl-adm!rutgers!princeton!allegra!mit-eddie!genrad!decvax!tektronix!uw-beaver!ssc-vax!bcsaic!paula
References: <249@rocksanne.UUCP> <175@herman.UUCP> <445@catnip.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!brl-adm!rutgers!princeton!allegra!mit-eddie!genrad!decvax!tektronix!uw-beaver!ssc-vax!bcsaic!paula
From: paula@bcsaic.UUCP
Newsgroups: comp.sources.d
Subject: Re: Z80 -> 8080 converter
Message-ID: <194@bcsaic.UUCP>
Date: Tue, 20-Jan-87 23:55:09 EST
Article-I.D.: bcsaic.194
Posted: Tue Jan 20 23:55:09 1987
Date-Received: Sat, 24-Jan-87 09:46:51 EST
References: <249@rocksanne.UUCP> <175@herman.UUCP> <445@catnip.UUCP>
Reply-To: paula@bcsaic.UUCP (Paul Allen)
Followup-To: comp.sources.d
Organization: Boeing Computer Services AI Center, Seattle
Lines: 43