Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rlgvax!dennis From: dennis@rlgvax.UUCP (Dennis Bednar) Newsgroups: comp.sources.d Subject: Re: Z80 -> 8080 converter Message-ID: <355@rlgvax.UUCP> Date: Wed, 4-Feb-87 08:52:10 EST Article-I.D.: rlgvax.355 Posted: Wed Feb 4 08:52:10 1987 Date-Received: Sat, 7-Feb-87 04:31:09 EST References: <249@rocksanne.UUCP> <175@herman.UUCP> <445@catnip.UUCP> Organization: Computer Consoles Inc, Reston VA Lines: 25 Keywords: Z80 8080 converter In article <445@catnip.UUCP>, 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. The Z80 is a superset of the 8080 at the binary code level (that is a binary 8080 program should run on a Z80, but not the converse, since the Z80 has at least the IX index register that the 8080 doesn't have, and hence the Z80 has additional instructions that the 8080 doesn't have). The source code mneumonics for the older 8080 instructions were not preserved however. However, it is pretty easy to "hand-compile" 8080 source code into Z80 source code, once you get the hang of things (I remember doing this several years ago). Digression: The Small-C compiler written by Ron Cain (published in Dr. Dobbs Journal several years ago) was originally written to output 8080 source code. It was relatively easy to change it to output Z80 source code instead. Therefore, if you plan to convert Z80 source code to 8080 source code, you will have problems for those Z80 instructions which have no 8080 counterpart. -- FullName: Dennis Bednar UUCP: {seismo|sundc}!rlgvax!dennis USMail: CCI; 11490 Commerce Park Dr.; Reston VA 22091 Telephone: +1 703 648 3300