aduncan@rhea.trl.oz.au (Allan Duncan) (04/09/90)
From article <1990Apr6.013638.27835@druid.uucp>, by darcy@druid.uucp (D'Arcy J.M. Cain): > In article <1814@tfd.UUCP> kent@tfd.UUCP (Kent Hauser) writes: >>I need to run a old CP/M-80 compiler under unix. Does anyone have a >>simulator + z80-interpreter suitable for use under SunOS 3.x >>(MC68020 host)? > > Funny you should ask. I am writing one as we speak (type?). I have just > about finished the instuction decoding functions (8080 - Z80 will be an > enhancement one day.) The next step will be to emulate the CP/M OS. > > If someone else has done this I sure would like to hear from them to see > how they solved various problems. Perhaps we can share notes. There are a couple available for the Amiga, which has source provided. I haven't looked at them in detail, but both also emulate a connected terminal. One has the source in assembler (68K), the other I'm not sure, but it is probably also assembler (the author includes his assembler and its source on the same disk). The bulk of the code would be transportable, only the i/o would need to be changed. Allan Duncan ACSnet a.duncan@trl.oz ARPA a.duncan%trl.oz.au@uunet.uu.net UUCP {uunet,hplabs,ukc}!munnari!trl.oz.au!a.duncan Telecom Research Labs, PO Box 249, Clayton, Victoria, 3168, Australia.
jeff@slovax.WA.COM (jeff) (04/10/90)
I've got an emulator that I wrote in a couple of evenings that emulates the z80/8080 intersection plus some of the simpler z80 extensions. All of the hooks are present to enhance to a full z80, but since I haven't had a need (we've only used generic cpm, no z80 specific stuff) I've left it as is. It's also not lightning, but it's portable to just about anything. It sports a simple debugger, disassembler, (assembler was in the works) and both hex and binary load and unload. An i/o mapped 'hardware' interface and bios were also written. Disk support is currently limited to four (4) 256k floppy equivalents (disk files under UNIX), but is easily changed. If you're interested, let me know and I'll spend a little time making it presentable and release it to netland. Anyone out there that's done the same or similar thing, I'd be interested in hearing how you overcame some of the obvious problems. I'm also more than willing to bend anybody's ear regarding how I did it. jeff ---- [ jeff@SLOVAX.WA.COM -- Jeff Loucks, H(206)851-8908 W(206)967-8018 ] -- [ jeff@SLOVAX.WA.COM -- Jeff Loucks, H(206)851-8908 W(206)967-8018 ]