r/EmuDev • • 20d ago

First ColecoVision BIOS screen

Post image
39 Upvotes

9 comments sorted by

4

u/jharg93 20d ago edited 20d ago

Haven't seen any other ColecoVision posts here.

It's a bit of an interesting system.

  • Z80 CPU
  • SN76489AN sound chip (same as PCjr, Sega Genesis)
  • TMS9918 Video Processor that supports 256x192x16 colors (*), 32 sprites. 4 video modes

It uses nametables/tile-patterns similarly to NES/GameBoy, so my drawtile code from my other emulators worked the same here. 32x24 tiles, Text mode supports 40x25 using 6-pixel wide font.

My z80 isn't fully cycle-perfect or all opcodes implemented yet, but I got enough working for a BIOS title screen to show up. I've tried a few cartridge games but they don't get far enough yet due to missing opcodes/interrupts/etc.

Some info

https://colecoboxart.com/faq/FAQ05.htm  - Memory Map
https://en.wikipedia.org/wiki/TMS9918. - Video chip
https://clrhome.org/table/  - Z80 opcode table
https://www.gooddealgames.com/articles/ColecoProgramming/cv%20programming.pdf
https://www.cs.columbia.edu/~sedwards/papers/TMS9918.pdf - datasheet

1

u/thommyh Z80, 6502/65816, 6809, 68000, ARM, x86. 18d ago

I've done the ColecoVision; as I'm sure you've already observed it's halfway to a Master System, and 90% of an MSX.

1

u/jharg93 18d ago

I've already done Genesis (had working 68k core before Z80), though audio doesn't work yet.

2

u/jharg93 19d ago edited 19d ago

Nice! A bit more progress:

Frogger screen: https://i.imgur.com/CvMFXyn.png

And because it uses SN76489AN I've already implemented, the sound (kinda) works too! Cycle/Frequency is off for now as emulator isn't cycle specific. Had to play around with the sampling a bit.

https://sndup.net/zxb6r/

1

u/hellotanjent 19d ago

ColecoVision was the first console I owned, got it at a garage sale for $20 because I couldn't afford the (brand-new) NES at the time. :D

1

u/jharg93 19d ago

We never had any consoles growing up... had to go to friend's house to play Atari 2600 or NES heh. I'd never played a Colecovision before.

2

u/Pi_ofthe_Beholder 20d ago

Loved my colecovision - this is sick