At 06:50 PM 8/9/99 -0300, you wrote:

>  Some days ago I asked about a sprite problem... Well, this is my 
>initsprite routine... I don't know what is wrong. When this routine
>is called, screen 6 and its palette are already set.

I called your routine from BASIC.

The only thing that I see wrong is that the sprite consists of vertical
lines rather than a box. This is simple to fix: in the sprite color table,
use #05 instead of #01 (#05=%0101). The reason is that SCREEN6 allows
different colors for even and odd pixels of a sprite. If you want a
monocolored sprite, you should specify the same color for both even and odd
pixels.

But I got the impression that the error you have is not seeing the sprites
at all, instead of seeing vertical lines.
Since I called your routine from BASIC and you run it from DOS, that is
probably where the problem is. Please send your CALLBIOS and CALLSUB
routines to the list, the problem is probably in there.

If you (or anyone else) send sources to the list, please send the whole
source or at least something that compiles. It was a lot of work to look up
all the labels you used.

CLRSPR is a very tricky label. There is a routine by that name in both the
BIOS and the SUBROM, but at different addresses. That's why I always use
prefixes: BIOS_CLRSPR and SUBR_CLRSPR take care of the ambiguity.

Bye,
                Maarten


****
MSX Mailinglist. To unsubscribe, send an email to [EMAIL PROTECTED] and put
in the body (not subject) "unsubscribe msx [EMAIL PROTECTED]" (without the
quotes :-) Problems? contact [EMAIL PROTECTED] (www.stack.nl/~wiebe/mailinglist/)
****

Reply via email to