It's been good to use my brain and try to work it out.
Not done yet though, looks like the scroll values will need changing too?
Just compiling and trying the sprite address as well, but I'm not sure quite how the sprite engine works yet. I've added the interlace stuff like this...
Code: Select all
if IM2 = '0' then SP1_VRAM_ADDR <= (SATB & "00000000") + (OBJ_CUR & "00");
else SP1_VRAM_ADDR <= (SATB(5 downto 0) & "000000000") + (OBJ_CUR & "00");
end if;
I kind of like the trial-and-error / shotgun approach at times, but it takes around 5 minutes to recompile on this aging Q6600 @ 2.4GHz.
New Core i5 3.4GHz with GTX 670 is sat in the corner, but I can't bring myself to install a load of electronics junk on it - it's meant to be my Oculus Rift / gaming machine, but I hardly have time to ever play any games. lol
Oh, compile nearly done....
I also changed the "IM" bit back to "IM2", since 8x16 stuff should only be done in double-res mode apparently.
Nope, that didn't fix the sprites. lol
Hmmm, food time I think, then I can look through the code a few (hundred) more times.
OzOnE.