Jaz said:
Curious one that. I wouldn't recommend it. Here, let me paste some of my Uni assignment work to throw you off...
Euck. :yucky:
You think that looks nasty? Here is just a tiny bit of code from my program
int y = ((line-WY)%8)*2;
int tile_map_addr = (LCDC&0x40) ? 0x1C00 : 0x1800;
int tile_ypos = (((line-WY)&0xFF)/8)*32;
int ly=(line*(ddsd2.lPitch/main.pixelwidth));
It gets nastier, i need to replace static values with more informative defines later
