[A83] Re: sprite routine
[Prev][Next][Index][Thread]
[A83] Re: sprite routine
Also, that sprite routine looks pretty bad. What is with those two huge
buffers for stuff? You have to realize that there aren't enough registers
to do a 16 pixel sprite routine, so you have to do things twice. It's
faster that way. Sometimes simpler is better.
> > PutSprite16Masked). Do you think I can use this routine
> for my TI-83? The header says the x-value must be between 0
> and 127, but TI-83's screen is a little smaller.
>
> You'll need to modify it, because it assumes the length of
> a scanline to be 16 bytes, whereas in the case of the 83 it
> is 12 bytes only. That means a change in the initialisation
> part (where the proper screen address is calculated) as
> well as the inner loop (where the destination pointer is
> increased).
References: