Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!sri-unix!hplabs!sdcrdcf!trwrb!orion!heins From: heins@orion.UUCP (Michael Heins) Newsgroups: comp.sources.d Subject: Re: Z80 -> 8080 converter Message-ID: <49@orion.UUCP> Date: Sun, 18-Jan-87 15:00:14 EST Article-I.D.: orion.49 Posted: Sun Jan 18 15:00:14 1987 Date-Received: Tue, 20-Jan-87 19:42:13 EST References: <249@rocksanne.UUCP> <175@herman.UUCP> Reply-To: heins@orion.UUCP (Michael Heins) Organization: TRW Digital Developement Lab, Manhatten Beach, CA Lines: 24 Keywords: Z80 8080 converter 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 >> an 8080 assembler. This is for a TRS-80 Model 4. I don't care what language >> it's written in. I would appreciate any help on this. > >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) You are thinking of the 8085, not the Z80. The Z80 has a dozen or so more instructions than the 8080, and in addition, has nearly twice as many registers (af, bc, de, and hl are duplicated and bank-switched). The z80 ISA is a proper superset of the 8080 instructions -- with one exception. The z80 uses the parity flag in double duty (parity/overflow). In practice, this exception has rarely proved to be a problem. Normally therefore, programs compiled/assembled for the 8080 will run fine on the z80, but not the other way around. -- ...!hplabs!sdcrdcf!trwrb!orion!heins We are a way for the universe to know itself. -- Carl Sagan