4 ms·
Interesting. I just got interested in going the 8-bit retrocomputer route, as I've always wanted to learn the low-level hardware stuff... down to the level of
by mindcrime 10y ago
Interesting. I just got interested in going the 8-bit retrocomputer route, as I've always wanted to learn the low-level hardware stuff... down to the level of the CPU, the data bus, memory bus, I/O support chips, accessing RAM, keyboard interfacing, etc. So, to that end, I just decided to build a Z80 based microcomputer.
Somebody asked "why z80 and not 6502 (or 8085, etc.)" I guess the 6502 is a fine choice, but my subjective perception is that - out of the popular processors from that era - the z80 is the one that still has the most actual commercial applications, and is the one that is easiest to source, find up to date information on, etc. Maybe I'm wrong, but so far it seems going the z80 path is pretty accessible. I was able to source chips from Jameco with no problem (and they're pretty cheap), and the z80.info site has a ton of useful info on homebrew z80 machines[1].
I was also able to pickup a copy of the book "Build Your Own z80 Computer"[2] by Steve Ciarcia, which should help a little.
Anyway.. not to take anything away from the 6502. If it turns out that chips are available, I may take a stab at building one of those after I do this z80 thing. But for now, this feels like the "path of least resistance". But I'd love to hear about anyone else's experience building an 8-bit machine, regardless of which processor you chose.
[1]: http://www.z80.info/homebrew.htm http://www.z80.info/homebrew.htm
[2]: https://www.amazon.com/Build-Your-Own-Z80-Computer/dp/0070109621 https://www.amazon.com/Build-Your-Own-Z80-Computer/dp/007010...
- asimuvPR 10y agoYou can't go wrong with either. Both have good support and can be sourced. Do the z80 first then the 6502 and enjoy both. :)
- ochoseis 10y agoHave you read a book called Code by Charles Petzold [0] by chance? It walks you through how a computer works from low level relays all the way up to building a processor and running an OS. He talks about both the Z80 and 6502, and peppers in a lot of the history along the way. The book has me really itching to play around with one of the two and it sound like the Z80 might be the way to go. [0] https://www.amazon.com/gp/aw/d/0735611319/ https://www.amazon.com/gp/aw/d/0735611319/
- mindcrime 10y agoI started it a few weeks ago, yeah. Definitely looking forward to churning through all of it.
- jacquesm 10y agoTo further confuse you: have a look at the 6809, it's a better processor than either the 6502 and the Z80 in many respects.
- nickpsecurity 10y agoTo further amaze you, look at the Intel i960 (esp manual in "external links"): https://en.wikipedia.org/wiki/Intel_i960 https://en.wikipedia.org/wiki/Intel_i960 It was intended to replace 286/386 and mainframes. I know: talk about shooting for the stars. Yet, manual shows it to be a brilliant design [vs i432 APX] that was basically an object-oriented, efficient RISC with error recovery, concurrency, and lock-step added. Just a few, small modifications to make this into a highly-secure, three-or-four-9's CPU. Might be Intel's best work in terms of engineering tradeoffs. Worth somebody imitating imho far as hobbyist clones or RISC-V projects go.
- jacquesm 10y agoThat's not on the same scale as those 8 bitters for a homebrew project. You'd need university scale resources to do a machine based on the i960.
- nickpsecurity 10y agoYeah, probably... Alright, sticking to MCU's, what do you think about the 1802 used in high-integrity space applications and COSMAC microcomputers? https://en.wikipedia.org/wiki/RCA_1802 https://en.wikipedia.org/wiki/RCA_1802 It's another old one from my collection. Links to two implementations by modern hobbyists showing it can be done. Not sure if the architecture is worth reviving for education, experimentation or high-reliability but it paid off then esp on SOI processes. Included a stand-by mode, too, despite being 1970's chip. Intersil also still sells them for government or commercial clients for legacy systems presumably.
- jacquesm 10y agoThe 6809 (direct page, anywhere in memory) and the 6502 (zero page) allowed quick addressing of 256 bytes using just an 8 bit address. This handily outperformed the 1802's 16 word register file because effectively that gave the other two a large number of registers (with about the same code density). I do remember the 1802, there were some interesting hobby projects around it but I never built anything with it. The DMA controller looks interesting, I'm not aware of any other 8 bit CPU that had one.
- MaxLeiter 10y agoIf you're interested in a kickass z80 project, I recommend checking out KnightOS, a FOSS OS for z80 calculators
- nickpsecurity 10y ago"the z80 is the one that still has the most actual commercial applications, and is the one that is easiest to source" Wise that you considered this. Any IT work, even hobby projects, can have long-term consequences for the person or the work itself. I often advise people to consider what it might turn into down the road, not to worry per se, but to notice if any tiny choices or efforts now might lead to a payoff later. Hypothetical example, you choosing z80 for software might lead you to reverse engineering, imitating, or porting amazing code onto your very own z80. That experience might get you in embedded work, demoscene, or even improving compiler efficiency. Kind of a variant of network effects maybe except for learning opportunities rather than ecosystem take-up. Hmm, first I thought about it like that. Maybe worth more thought? Regardless, good luck on your project. I'm sure you'll enjoy it. My own forays into hardware for high-assurance security... despite working at a high-level... have been beyond enlightening. More people play with hardware, higher odds an OSS revolution for HW will show up outside academic teams doing RISC-V, etc. Cheap, FGPA boards & software are already there to enable it. Just need motivated people.
- rebootthesystem 10y agoI could be wrong, my gut feeling is that the 8051, by far, has more commercial applications today than any of the old processors. It is still being made in a million different incarnations and used in a million different embedded applications.
- fernly 10y agoWhen your kit is ready you need software, and CP/M is here: http://www.cpm.z80.de/ http://www.cpm.z80.de/
- mindcrime 10y agoVery cool, thanks for sharing. I was wondering if I'd be able to find something like CP/M "out there", or if I'd have to write my own OS. Of course, writing an OS would be fun in it's own right, and I'd like to take a stab at that some day as well...
- userbinator 10y agoThe 6502 and Z80 are both still popular in embedded applications, although I think the 6502 as a SoC core far exceeds the Z80 in volume. My monitors, mouse, webcam and keyboard all have a 6502 core in them, as does the NES, whereas the only devices I have that I know for sure contain a Z80 are an S1MP3[1], a Gameboy, and a TI-83. Personally I prefer the Z80 too mainly because of its more powerful and organised instruction set[2], and the fact that it's the ancestor of the 8086, although the 6502 is definitely a simpler design (which is probably largely responsible for its popularity.) [1] https://en.wikipedia.org/wiki/S1_MP3_player https://en.wikipedia.org/wiki/S1_MP3_player [2] http://www.z80.info/decoding.htm http://www.z80.info/decoding.htm