So, more or less, a thing like this:
http://nrgo.altervista.org/sprcopy.zip
something like that, yeah...
I see the sprite often disappearing, to minimize this effect you could try to put the 'restore background' and 'copy sprite' steps closer together.
Another thing is to put these copy commands very early in the interrupt routine. The interrupt routine is executed at the moment the VDP stops drawing the screen, so there is a period (called the Vertical Blanking period) where changes to the display will not be seen happening on the screen.
Another question: color number 0 on "sprite-image" allow to show background pixels or covers the background with black color?
color 0 is not copied by LMMM command with TIMP logical operation. The R#46 command code for this is &H98.
HMMM (command code &HC0) always copies color 0 as black.
Also be aware that in SCREEN 8 there is very little speed difference between HMMM and LMMM commands.
And, if you're not going to use hardware sprites at all, disabling them by setting bit 1 of R#8 will speed up the VDP copy commands.
Greetz,
Patriek_______________________________________________ MSX mailing list ([EMAIL PROTECTED]) Info page: http://lists.stack.nl/mailman/listinfo/msx
