🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sources.d
Article #2152

Re: Z80 -> 8080 converter

#2152
From: Nick Andrew
Date: Sun, 18 Jan 1987 04:57
30 lines
1828 bytes
    
>   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)

   Good heavens, protect us from totally uninformed opinions.

   The Z80 contains many improvements on the 8080. Some of these are:

- Relative jumps (8 bit displacement)
- Alternate register set
- Additional Index registers (IX & IY) (one pair)
- Block-statements (block move, block IO)
- Rationalised assembler mnemonics and instruction formats

   If you have a good 8080 macro assembler you could write macros to handle
the conversion (eg change all jump relatives to jump absolutes), but at the
same time there will probably need to be some syntax changes to the Z80
source so it will comply with the requirements of the macro assembler.


   You can mail me at....
ACSnet:    zeta@runx.OZ
UUCP:      ...!{seismo,hplabs,mcvax,ukc,nttlab}!munnari!runx.runx!zeta
UUCP:      ...!{seismo,hplabs,mcvax,ukc,nttlab}!munnari!runx.OZ!zeta
Fidonet:   Nick Andrew@[620/602] (Zeta)   **** NEW NODE NUMBER ****
bbs:       Sysop@zeta, +61 2 627 4177, CCITT V21.
Mail:      P.O Box 177, Riverstone NSW 2765 Australia.
Technical Details
Message-ID: <606@runx.OZ>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!munnari!moncskermit!basser!metro!ipso!runx!zeta
References: <249@rocksanne.UUCP> <175@herman.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!munnari!moncskermit!basser!metro!ipso!runx!zeta
From: zeta@runx.OZ (Nick Andrew)
Newsgroups: comp.sources.d
Subject: Re: Z80 -> 8080 converter
Message-ID: <606@runx.OZ>
Date: Sat, 17-Jan-87 23:57:28 EST
Article-I.D.: runx.606
Posted: Sat Jan 17 23:57:28 1987
Date-Received: Sat, 24-Jan-87 13:48:16 EST
References: <249@rocksanne.UUCP> <175@herman.UUCP>
Organization: RUNX Un*x Timeshare.  Sydney, Australia.
Lines: 29