Edward E. Jaffe wrote in message <433D6157.7090209@[EMAIL PROTECTED]
>...
>Don Nielsen wrote:
>>Nothing like a dumb applications programmer question to end the week.
>>Is there an instruction like MVCL that moves memory starting at the end
>> working to the beginning. I have a table that is in sequence. I want
to
>>insert a new row, maintaining sequence. That requires ****fting right
the
>>end of the table. It would be great to just code an MVCL to do it,
>>but I would be overwrite data. But if MVCL started with the last byte
and
>>worked its way to the start, then the ****ft would be easy. Does any
>>such instruction or function exist?
>****fting a block of data left is easy. ****fting right must be done
>one-byte-at-a-time in a loop.
Would give the simplest code but would be slowest,
considering the setup time for each of the individual instructions.
Better to use a small buffer, start at the end, and move
chunks at a time.
>>I guess I could do something silly and build the table starting
>> at the end of the of memory block and ****ft it left as I build it.
>That's precisely what I have done in similar cir***stances.
Lateral thinking!
>--
>.-----------------------------------------------------------------.
>| Edward E. Jaffe