Re: Moving X number of words from A to B
Quote
>X is always>0?
Yes
Quote
>The source and destination blocks will never overlap?
Hmm.. When thinking about it, they may do that. It makes sense to avoid this
in general, it is highly unlikely that anyone would blit a rectangle to a
position within its own bounds. I will add a test for this, so the answere
is Yes.
Quote
>>Also, what is the typical range of values for X?
Anything really. Depends on how big the surface is.
I have not set a limit for offline surfaces (not dibs, they have maximum
limitations), so it can be anything from 32x32 to 4096x4096.
While i can live without the MoveWord() procedure, i am struggeling to find
any info on moving 24 bit data from a to b. It could be reduced to use
longword moves (3 24 bit pixels=12 bytes, 3 long moves).
I have done that in my pascal code. How the assembler version would look i
have no idea..
Well, any help is welcome.
Thank you for taking the time to reply!
Kind regards
Jon Lennart Aasenden
"Pierre le Riche" <
XXXX@XXXXX.COM>writes
Quote
Hi Jon,
>>>I need to move X number of words from a to b in memory.
>Anyways, the routine will be used to copy scanline by scaline from one
>surface to another.
Are the following assumptions valid?
1) X is always>0
2) The source and destination blocks will never overlap
Also, what is the typical range of values for X?
Regards,
Pierre