Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Assembly 370 > Re: ****fting m...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 257 of 328
Post > Topic >>

Re: ****fting memory to the right

by "robin" <robin_v@[EMAIL PROTECTED] > Oct 25, 2005 at 11:10 PM

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
 




 1 Posts in Topic:
Re: Shifting memory to the right
"robin" <rob  2005-10-25 23:10:08 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 15:19:22 CDT 2008.