Does anyone know where the value of VDP register number 7 is stored?

Ask anything your want about Megadrive/Genesis programming.

Moderator: BigEvilCorporation

Post Reply
greatkreator
Very interested
Posts: 158
Joined: Sat May 12, 2012 7:37 pm
Location: Ukraine

Does anyone know where the value of VDP register number 7 is stored?

Post by greatkreator » Wed Nov 25, 2015 4:47 pm

Does anyone know where the value of VDP register number 7 is stored?
Is it possible somehow to do DMA into it?

Mask of Destiny
Very interested
Posts: 616
Joined: Thu Nov 30, 2006 6:30 am

Re: Does anyone know where the value of VDP register number 7 is stored?

Post by Mask of Destiny » Wed Nov 25, 2015 5:12 pm

Registers are stored inside the VDP itself and you cannot DMA to them. You can however DMA to CRAM. So you can change the background color by leaving register 7 alone and updating the CRAM entry that it points to. This is how the direct color DMA demos work. You set the autoinc register to 0 so each write goes to the same address and then you just start a large DMA to the background color CRAM address.

greatkreator
Very interested
Posts: 158
Joined: Sat May 12, 2012 7:37 pm
Location: Ukraine

Re: Does anyone know where the value of VDP register number 7 is stored?

Post by greatkreator » Wed Nov 25, 2015 5:17 pm

Thanks Mask! I am of course aware of the direct color trick.
But why am I asking about reg 7? Because I hoped maybe it was possible to do the same with it however without having those 5 doubled-pixel-columns artifacts.

Post Reply