News for hackers. Stuff that matters.
Re:Show HN: A retro video game console I've been working on ... by pkiller on Thursday March 14, 2019 @05:35PM (#19394024)
Thanks a lot :)

It really is super satisfying to get this far, I still turn it on sometimes just to check if it really works.

And I also had zero experience with electronics (and I still don't know as much as I should...), so yeah I think you could piece together something like this. :)

Re:Show HN: A retro video game console I've been working on ... by matthall15 on Friday March 15, 2019 @05:41PM (#19404575)
> I still turn it on sometimes just to check if it really works.

I feel this on a personal level, albeit on my much smaller, less complicated projects. Thanks for the amazing write-up, you are an inspiration to us all.

Re:Show HN: A retro video game console I've been working on ... by ArtWomb on Thursday March 14, 2019 @05:49PM (#19394160)
I was a tad skeptical when I saw the title. But it looks like you really pulled it off. It took Atari engineers like 4 years ;)

Is it fast enough for multi-input / multi-player?

Re:Show HN: A retro video game console I've been working on ... by pkiller on Thursday March 14, 2019 @05:58PM (#19394242)
Thanks :)

The only multi-input game I have right now is Tetris for 2 players. My girlfriend doesn't complaint while playing it (except when I win :P), so I'd say it's pretty responsive, even with the somewhat convoluted way the CPU communicates with the PPU and the double-buffering.

I think it will work for other types of games as well. With all the hardware, firmware for the 3 microcontrollers, bootloader software, compiler toolchain and tools, I still haven't gotten around to actually make a lot of games for it.

Re:Show HN: A retro video game console I've been working on ... by Eek on Friday March 15, 2019 @12:00PM (#19400862)
This is crazy dude! You're an inspiration! Awesome job!
Re:Show HN: A retro video game console I've been working on ... by yonz on Sunday March 17, 2019 @02:18PM (#19415415)
I would totally pay (~$300) to jump on a pre-packaged MOOC like course that has a batch of students working together and the course fee would include the hardware needed and access to a TA like resource (when the batch of students can't solve a problem together).

I can even imagine a part II with modern components after learning this level of basics.

Re:Show HN: A retro video game console I've been working on ... by mysterydip on Thursday March 14, 2019 @07:55PM (#19395119)
Wow! Thanks for making such an interesting and detailed writeup! And using my favorite CPU too :) Definitely bookmarked to read through more times.
Re:Show HN: A retro video game console I've been working on ... by pkiller on Thursday March 14, 2019 @07:58PM (#19395128)
Z80 rules!

Thanks :)

Re:Show HN: A retro video game console I've been working on ... by tombert on Thursday March 14, 2019 @09:44PM (#19395724)
Out of curiosity, have you thought about trying to port "real" games over to it, as in running a ROM of something commercially released? This is already really cool, but it would be nerd-cred-for-life cool if you could say "Oh, you have a gameboy? Yeah, I built my own."
Re:Show HN: A retro video game console I've been working on ... by apple4ever on Thursday March 14, 2019 @09:16PM (#19395582)
I love that there is a group of people who still love the Z80!

Such a beautifully designed chip.

Re:Show HN: A retro video game console I've been working on ... by saagarjha on Friday March 15, 2019 @04:25AM (#19397720)
I was doing a little bit of Z80 work a while back, but I didn't particularly seem to appreciate its design (compared to say MIPS). Why do you think it's beautifully designed?
Re:Show HN: A retro video game console I've been working on ... by apple4ever on Wednesday March 20, 2019 @06:58PM (#19447842)
Admittedly, I do not have a lot of experience in other CPUs, but to me its just the way its designed. A simple syntax for assembly and the way it maps to byte values is clever. It doesn't require a lot of work to make things happen, ie "hacks" for interacting with IO. I also like how there is a separate IO bus from the data bus, which means IO doesn't take up memory. The register naming convention is simple, and having "alternate" registers is cool.

Just seems simple and cool to me.

Re:Show HN: A retro video game console I've been working on ... by Marazan on Friday March 15, 2019 @04:28PM (#19403973)
You can hand clock a Z80. There is a certain magic to that.
Re:Show HN: A retro video game console I've been working on ... by saagarjha on Friday March 15, 2019 @08:01PM (#19405455)
I'm sorry, but what does "hand clocking" a Z80 mean?
Re:Show HN: A retro video game console I've been working on ... by dangerbird2 on Saturday March 16, 2019 @12:30AM (#19406359)
I think GP's use of "hand-clocking" to refer to the factthat the z80 can run on a very low clock rate, to the extent that you can have a hand switch that sends individual clock pulses to the processor. This can be useful for testing purposes as well as for low power operation in embedded applications.

http://www.thomasloven.com/blog/2013/01/Z80-Tester/

Re:Show HN: A retro video game console I've been working on ... by Marazan on Monday March 18, 2019 @11:49AM (#19422084)
As the Z80 doesn't use dynamic registers (I think basically the only "modern" CPU to make this decision) it doesn't need a minimum clock signal speed to refresh the registers as every other CPU does.

This means you can rig up a push button switch and manually advanced the clock one button press at a time.

To me that's super cool. It also makes them really easy to debug.

Re:Show HN: A retro video game console I've been working on ... by collinmanderson on Saturday March 16, 2019 @10:39AM (#19408002)
I used to do Z80 programming in the TI-82 in high school back in 2002. This seeing the code in the article brought back some good memories.
Re:Show HN: A retro video game console I've been working on ... by kgwxd on Friday March 15, 2019 @10:56AM (#19400240)
Just ordered Make: Electronics and a cheap electronics starter kit with a breadboard and some basic components. Thanks for the inspiration.
Re:Show HN: A retro video game console I've been working on ... by larrywright on Friday March 15, 2019 @12:01PM (#19400878)
You should check out Adafruit and Sparkfun as well. They have a lot of solid tutorials to get you started, and a bunch of inexpensive microcontrollers that are easy to get going with, as well as all sorts of lights and sensers and switches to connect to them.
Re:Show HN: A retro video game console I've been working on ... by fxfan on Friday March 15, 2019 @03:20AM (#19397352)
> I still turn it on sometimes just to check if it really works.

I know that feeling ;)

Re:Show HN: A retro video game console I've been working on ... by dustindiamond on Thursday March 14, 2019 @10:22PM (#19395888)
Awesome work, dude!