"Roberto Waltman" wrote in message
news:fi5tv818tetvn4b4q...@4ax.com...
> A recent thread in comp.sys.raspberry-pi drifted into a discussion
> about the ZX80 and 8-bitters, which eventuallly lead me to claim:
>
> "... while a standard CP/M OS required only the 8080 instruction set,
> many applications written for CP/M used the extended Z80 set.
> So using a Z80 in CP/M machines was almost a requirement."
I'm not sure about "many." But then, my machines were Z80 based, so I
didn't really pay close attention.
> Replies:
>
> a) "I don't think that was true since a lot of software written to
> take advantage of the Z80 instruction set often included 8080
> support and simply tested which cpu was in control of the show
> and loaded the appropriate modules. This made such application
> software, essentially, CPU agnostic, maximising its market reach."
>
> b) "Most commercial software just used 8080 instructions. There was
> some software that only ran on the Z80, mostly public domain stuff."
>
> Any comments?
My experience only, others may well have had different experiences.
a) I encountered very little code that did this. It seems that if you were
going to go to the trouble to code (assembler) to 8080 at all, you just
coded for the 8080 and didn't bother to do the Z80. Coding with high level
languages was a bit different. If the compiler offered an 8080/Z80 switch,
then you might find the test and load as noted. But more common, to my
recollection, was there would be two executable versions. The 8080, of
course, ran on either. The Z80 failed on an 8080. You copied whichever was
appropriate to your floppy or hard disk.
b) Is probably at least partially true. On the commercial side I recall a
database package that needed a Z80. And, of course, Turbo Pascal. On the
shareware/public domain/hobby side there may have been a lot. But since my
machines and most of my customers had Z80's, I didn't really pay that much
attention. I did have one customer who had an 8080 box. For him, I did the
compiler switch thing and produce 8080 code. Everyone else got the Z80
build.
- Bill