News for hackers. Stuff that matters.
Re:Confirmed the MOS 7600/7601 Pong chip is a true microcont... by EvanAnderson on Thursday September 15, 2022 @11:56PM (#32861874)
It's a nice hack. I think this is how Woz did the Apple II paddles, too (albeit with discrete components and a timer IC). It sounds familiar.
Re:Confirmed the MOS 7600/7601 Pong chip is a true microcont... by kens on Friday September 16, 2022 @12:36AM (#32862115)
Yes, the Apple II also uses a resistor-capacitor timing circuit to determine the paddle position. The big difference, however, is that the Apple II uses the timer and a counter to produce a paddle position 0-255. Software can then use this value to e.g. draw a paddle at a position on the screen.

The game chip, on the other hand, doesn't produce a value. Instead, the timer is synchronized to the screen drawing, so when the timer fires, it indicates to draw the paddle now. So the system never has the paddle position as a digital value and there's no register that holds the paddle position.

Re:Confirmed the MOS 7600/7601 Pong chip is a true microcont... by metadat on Friday September 16, 2022 @01:01AM (#32862298)
How is intersection with the ball detected?
Re:Confirmed the MOS 7600/7601 Pong chip is a true microcont... by kens on Friday September 16, 2022 @01:21AM (#32862403)
I think that the circuit at the top center of the chip detects collisions. E.g. if the paddle is being drawn at the same screen position as the ball, then you know that the paddle has hit the ball. This way, you don't need to store the paddle position and you don't need to compare the paddle and ball positions, you just check if a paddle pixel and a ball pixel happen at the same time.

I haven't figured out how the ball position is stored. It seems like they'd need a register for the X and Y position, along with an incrementer/decrementer, but I couldn't find that. Maybe there's something tricky going on. Or maybe I haven't looked in the right place.

Re:Confirmed the MOS 7600/7601 Pong chip is a true microcont... by gregmac on Friday September 16, 2022 @02:35AM (#32862835)
The brilliance of this is there's no chance of bugs caused by the internal paddle position (that causes the ball to bounce) not matching the drawn position, which would make the ball either pass through the paddle or bounce off nothing. Whether that was any part of a motivation for this design or it was purely driven by technical limitations, it's just a very elegant solution.
Re:Confirmed the MOS 7600/7601 Pong chip is a true microcont... by xani_ on Friday September 16, 2022 @08:15AM (#32865077)
capacitor charge/discharge timing is actually pretty common way to make ADC, even precision ones,

https://en.wikipedia.org/wiki/Integrating_ADC

Re:Confirmed the MOS 7600/7601 Pong chip is a true microcont... by EvanAnderson on Friday September 16, 2022 @08:58AM (#32865486)
That's sweet. The paddle is a component of the "register" directly. I didn't stop and think about that deep enough. Thanks!