I am trying to use
THIS schematic to use TMS9918 wideo chip with SRAM memory in one of my projects. It is based on 8080, but it doesn't matter because it it will work, I am also going to use it with my ongoing 6502 project.
Unfortunately I encountered some weird issue I can't debug myself.
1. There is communication between my system nad TMS9918. I can write and read to and from its wideo memory. I can also perform operation on control registers.
2. Chip generate image and reacts to register writes. I was able to initialize it in text mode, the it showed some gibberish (content of uninitialized memory). i am also able to change colors by writing to REG7.
3. I copied character patterns definitions to wideo memory (0x08000) and then I wrote simple basic loop, which was filling name table (0x0800) with incremented values from 0x00 to 0xFF. It should have resulted with complete sets of characters in order on some parts of a screen and gibberish (uninitialized part of pattern table) on the rest. Unfortunately it is not what I got.
As you can see on attached image, there are groups of eight proper characters, followed by gibberish.
Initially I thought I've swapped some address lines, but then checked my circuit with schematic, using multimeter. Everything looks fine.
Any ideas what can be the cause of this weird behavior?