Post by Jack PeacockPost by Randy McLaughlinBut, there are very few applications which use DAA instructions after DEC
and use flag after RLD/RRD instructions."
It is obvious that Zilog does consider it to be a bug, but they decided to
leave it alone (for consistency I assume). I happen to appreciate the
bugs
Post by Randy McLaughlinsince they allow me to determine CPU type.
Since Zilog didn't build the first iteration of the Z180 it may be they
inherited the bug from the original Hitachi HD64180. Then it beomes a
question of fix the bug to keep Z80 compatibility, or leave it in to
maintain 64180 compatibility. Given that the Z180 was the replacement for
the 64180 when Hitachi gave up on it leaving the bug in place made sense.
Zilog aquired the design from Hitachi as part of a lawsuit. So you could
say they are equivalent. However, the Z80 itself was redesigned several
times. It had to be, it went from NMOS to CMOS, a fairly radical change.
However, it also went from random logic to microcoded core at one
point. My ex boss at Zilog was famous for doing that one.
Post by Jack PeacockThe Z80 had moved from general purpose CPU for early PCs to embedded
controller as it's primary market by then, so any new design would be more
likely based on the 64180 and the follow on Z180.
Yea, Zilog appears to have depreciated the z380 for their new ez80, which
is in the Z180 family. The z380 was not Z180 compatible. It was actually
better, using real memory management instead of a bank selection scheme,
but the processor series is so old that most customers only are interested
in supporting existing, very old, code.
Post by Jack PeacockI used a 64180 in an embedded design that included BCD arithmetic, never
even noticed the DEC A bug since I've always used ADD/SBC before DAA. It
was habit from other processors that also had a DAA equivalent instruction.
I still have a running 64180 based CPM V3 system, based on a spare board
from the project. I never noticed any problems from the bug, though I don't
do much other than run an assembler on it.
Jack Peacock
There are Z80s in use, but not too many 8080s I'll bet, the series has better
staying power than the original grandpaw processor.