I write to the REG_VRAMMOD register to write the tile data.
I set it to one, and then draw all the background tile data with it.
But I see weird glitches on the screen if I don't set if for each sprite, for example I set it to one, and write tile data for 20 sprites, I get tile glitches, like wrong tile data was written.
But If I set it for each sprite I write, there is no issues.
I was wondering if there is something that affect it?