> Hi folks!
>
> I have a very strange problem with my spriteroutine, and I hope someone
can
> help me.
>
> I've made 32 16x16 sprites with:
> - colortable at page 3, $3400
> - infotable at page 3,$3600
> - patterndata at page 3,$3800
>
> so reg. 11 and 5 are (3*$4000 + 3600)/128 == %00000001 and %11101100
> and reg 6 is (3*$4000 + 3800)/2048 == %00011111
>
> this looks pretty ok to me, though the weird thing is that
> sprites 0-7 are all working ok.
> but, sprite 8-15 uses the colors of sprite 0-7
> and sprite 16-24 also uses the colors of sprite 0-7
> etc.
> it's really weird, and I don't know how to solve it.
> If I put all spritedata at page 1, everything works fine.
I fixed the problem.
a little test in basic told me that reg 5 should be %11101111
in stead of %11101100. I don't know what i've done wrong with my calcultion,
but at least it works ok now ;)
Greetz,
Chaos
TwZ
--
For info, see http://www.stack.nl/~wynke/MSX/listinfo.html