News for hackers. Stuff that matters.
Re:How MOS 6502 Illegal Opcodes work by JohnFen on Wednesday July 26, 2023 @11:43AM (#36879650)
Yep!!

Another fun fact: the most common CPU in use today is the Z80 (or at least it was a couple of years ago, I haven't checked since). 6502s are not rare. In both cases, they may go by different part numbers these days, of course.

Where I work, I'm currently working on a system that uses 6 Z80s.

Re:How MOS 6502 Illegal Opcodes work by kabdib on Wednesday July 26, 2023 @03:51PM (#36883883)
"Are those Z-80s cache-coherent?" is not a thought I ever expected to have.
Re:How MOS 6502 Illegal Opcodes work by JohnFen on Wednesday July 26, 2023 @06:54PM (#36886274)
lol! There isn't a whole lot of shared data that brings up the issue of cache coherency, but there is some (mostly around the communications with other equipment) and yes, they are.
Re:How MOS 6502 Illegal Opcodes work by LeonenTheDK on Wednesday July 26, 2023 @03:56PM (#36883981)
That's fascinating, are you able to share anything about that system, or what those 6 Z80s are doing within it?
Re:How MOS 6502 Illegal Opcodes work by JohnFen on Wednesday July 26, 2023 @06:52PM (#36886257)
I need to be a bit vague, but they're being used in an industrial control application to control machinery. Each CPU is in charge of a different step in the process. They collectively operate as a single system that also feeds data into a deep learning system used to direct the operations a little further down the line.

Z80s are used here because they're tiny, low-power, cheap, readily available from multiple manufacturers (a particular bonus since the chip shortage remains a problem), and are extremely reliable. A more modern CPU would be more expensive and harder to guarantee behavior in.

Re:How MOS 6502 Illegal Opcodes work by LeonenTheDK on Wednesday July 26, 2023 @10:01PM (#36887943)
Thank you for sharing!