Mail Archives: djgpp/1996/05/06/10:56:46
>Lennart Steinke (steinke AT zeus DOT adv-boeblingen DOT de) writes:
>> Hi!
>>
>> I need something like memcpy(),
>> but with inverted direction flag. So that
>> the dest. pointer points to the end of the used
>> memory, not to the beginning. I need the
>> same for memset(), too.
>>
>> This can't be that hard, but
>> a) I'm not fluid in ASM, especially not with DJGPP,
>> b) have no ASM books here at work, and
>> c) have only the bins of DJGPP v2, so I can't look
>> into the source of the above mentioned funcs.
>>
>> I need these funcs to blit an bitmap mirrored to the
>> screen.
If you were wondering about how to set the direction flag,
it should be:
std
Just to be safe, I'd clear the direction flag after doing the
backward string instructions just in case. The instruction
to clear the direction flag is
cld
--
beppu AT ea DOT oac DOT uci DOT edu
- Raw text -