Article View: bit.listserv.asm370
Article #118Re: Shifting memory to the right
From: Beate Kawelke
Date: Fri, 30 Sep 2005 14:14
Date: Fri, 30 Sep 2005 14:14
41 lines
2938 bytes
2938 bytes
Hmmmm - two thoughts: 1. Why not just have the table entries linked with a "next" pointer ? If necessary, throw in a "previous" pointer, too. Navigation through the table is quite easy, and you can add / delete entries simply by chaining them in the right place. 2. Have a second buffer for the table. Move upper part to buffer, then the new entry, then the lower part. HTH, Beate > -----Original Message----- > From: IBM Mainframe Assembler List > [mailto:ASSEMBLER-LIST@LISTSERV.UGA.EDU] On Behalf Of Don Nielsen > Sent: Friday, September 30, 2005 3:56 PM > To: ASSEMBLER-LIST@LISTSERV.UGA.EDU > Subject: [ASSEMBLER-LIST] Shifting memory to the right > > 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 shifting 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 shift > would be easy. Does any such instruction or function exist? > > I guess I could do something silly and build the table > starting at the end of the of memory block and shift it left > as I build it. > > dvn > > Don V Nielsen > Products & Tools > CMS > 3707 Corporate Drive > Marshfield, WI 54449 > donn@cmscms.com > > > '715-486-8807 X434 > > > Better Results, Faster! >
Technical Details
Message-ID:
<6EF0A4132769A34AB289A0A0E008A967015BA65F@S4DE8SSAADI.gppng.telekom.de>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!news-xfer.newsread.com!nntp.abs.net!newsfeed.berkeley.edu!ucberkeley!sn-xit-02!sn-xit-06!sn-xit-14!supernews.com!149.173.6.116.MISMATCH!foggy!vm.sas.com!t-systems.com!Beate.KawelkeShow Full Headers
Complete Article Headers
X-Google-Thread: fcdcb,3e46d196c2b56e33 X-Google-Attributes: gidfcdcb,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!news-xfer.newsread.com!nntp.abs.net!newsfeed.berkeley.edu!ucberkeley!sn-xit-02!sn-xit-06!sn-xit-14!supernews.com!149.173.6.116.MISMATCH!foggy!vm.sas.com!t-systems.com!Beate.Kawelke From: Beate Kawelke <Beate.Kawelke@t-systems.com> Newsgroups: bit.listserv.asm370 Subject: Re: Shifting memory to the right Date: Fri, 30 Sep 2005 16:14:12 +0200 Organization: SAS Inc. Lines: 41 Sender: IBM Mainframe Assembler List <ASSEMBLER-LIST@LISTSERV.UGA.EDU> Message-ID: <6EF0A4132769A34AB289A0A0E008A967015BA65F@S4DE8SSAADI.gppng.telekom.de> NNTP-Posting-Host: mozart.unx.sas.com Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: foggy.unx.sas.com 1128089981 14173 10.19.150.41 (30 Sep 2005 14:19:41 GMT) X-Complaints-To: usenet@unx.sas.com NNTP-Posting-Date: Fri, 30 Sep 2005 14:19:41 +0000 (UTC) Comments: Gated by NETNEWS@VM.SAS.COM Return-Path: <owner-assembler-list@LISTSERV.UGA.EDU> X-Mailer: Internet Mail Service (5.5.2653.19) Approved-By: Beate.Kawelke@T-SYSTEMS.COM Return-Path: owner-assembler-list@LISTSERV.UGA.EDU X-OriginalArrivalTime: 30 Sep 2005 14:19:40.0084 (UTC) FILETIME=[FE9EB740:01C5C5C9] Originator: daemon@mozart.unx.sas.com