Error in background on subscreen

Post Reply
RiT4LiN
Posts: 2
Joined: Fri Jan 22, 2010 1:44 pm

Error in background on subscreen

Post by RiT4LiN » Fri Jan 22, 2010 1:48 pm

A sample of the code is visible on the code editor in the screenshot.
http://img6.imageshack.us/img6/4405/halpp.png
The sprite is an 8bit 256x192 png file.

RiT4LiN
Posts: 2
Joined: Fri Jan 22, 2010 1:44 pm

Re: Error in background on subscreen

Post by RiT4LiN » Fri Jan 22, 2010 2:03 pm

We fixed it, we moved line 73 to 83 and that seems to have fixed it. Any ideas why ?

dovoto
Developer
Posts: 43
Joined: Fri Aug 12, 2005 10:01 pm
Contact:

Re: Error in background on subscreen

Post by dovoto » Fri Jan 22, 2010 10:09 pm

Your dma to sprite palette memory is 32*32 bytes (1024 bytes). Sprite palette memory is only 512 bytes (256 colors) so the dma is overwriting the 512 bytes following sprite palette memory...which happens to be background palette memory. This is why re ordering the dma appears to fix the problem.

Post Reply

Who is online

Users browsing this forum: No registered users and 67 guests