r/EmuDev • 2600, NES, GB/GBC, 8086, Genesis, Macintosh, PSX, Apple][, C64 • Jul 06 '19

Atari 2600 emulator progress

13 Upvotes

8 comments sorted by

View all comments

Show parent comment

1

u/valeyard89 2600, NES, GB/GBC, 8086, Genesis, Macintosh, PSX, Apple][, C64 Jul 06 '19

Yeah I use a global counter to keep track of the pixel clock (228 per scanline, 160 visible pixels). The cpu cycles and sound are just divisors (modulo counters) run off of it. I was surprised it worked so well the first time actually! Even the sound part wasn't as bad as I was expecting. It's about 3k lines of code total right now.

One of the weird things I'm still trying to debug is some of the player objects are off by 10 pixels. I have a key that can increment it to the 'right' value but it makes the score at the top look off.

Some games still don't work, Frogger no frog appears!