🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: bit.listserv.asm370
Article #123

Re: Shifting memory to the right

#123
From: David P. de Jongh
Date: Fri, 30 Sep 2005 16:09
41 lines
3548 bytes
Don't you mean one row at a time?
D de J

-----Original Message-----
From: IBM Mainframe Assembler List [mailto:ASSEMBLER-LIST@LISTSERV.UGA.EDU]
On Behalf Of Edward E. Jaffe
Sent: Friday, September 30, 2005 11:01 AM
To: ASSEMBLER-LIST@LISTSERV.UGA.EDU
Subject: Re: Shifting memory to the right

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 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?
>
>

Shifting a block of data left is easy. Shifting right must be done
one-byte-at-a-time in a loop.

>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.
>
>

That's precisely what I have done in similar circumstances.

--
.-----------------------------------------------------------------.
| Edward E. Jaffe                |                                |
| Mgr, Research & Development    | edjaffe@phoenixsoftware.com    |
| Phoenix Software International | Tel: (310) 338-0400 x318       |
| 5200 W Century Blvd, Suite 800 | Fax: (310) 338-0801            |
| Los Angeles, CA 90045          | http://www.phoenixsoftware.com |
'-----------------------------------------------------------------'
Technical Details
Message-ID: <000201c5c5d9$458757c0$0100a8c0@davidantecp4>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.com!prodigy.net!logbridge.uoregon.edu!canoe.uoregon.edu!newsfeed.news.ucla.edu!newsfeed.berkeley.edu!ucberkeley!sn-xit-02!sn-xit-06!sn-xit-14!supernews.com!149.173.6.116.MISMATCH!foggy!vm.sas.com!worldnet.att.net!daviddejongh

Show 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!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.com!prodigy.net!logbridge.uoregon.edu!canoe.uoregon.edu!newsfeed.news.ucla.edu!newsfeed.berkeley.edu!ucberkeley!sn-xit-02!sn-xit-06!sn-xit-14!supernews.com!149.173.6.116.MISMATCH!foggy!vm.sas.com!worldnet.att.net!daviddejongh
From: "David P. de Jongh" <daviddejongh@worldnet.att.net>
Newsgroups: bit.listserv.asm370
Subject: Re: Shifting memory to the right
Date: Fri, 30 Sep 2005 11:09:00 -0500
Organization: SAS Inc.
Lines: 41
Sender: IBM Mainframe Assembler List <ASSEMBLER-LIST@LISTSERV.UGA.EDU>
Message-ID: <000201c5c5d9$458757c0$0100a8c0@davidantecp4>
NNTP-Posting-Host: mozart.unx.sas.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: foggy.unx.sas.com 1128096738 17852 10.19.150.41 (30 Sep 2005 16:12:18 GMT)
X-Complaints-To: usenet@unx.sas.com
NNTP-Posting-Date: Fri, 30 Sep 2005 16:12:18 +0000 (UTC)
Comments: Gated by NETNEWS@VM.SAS.COM
Return-Path: <owner-assembler-list@LISTSERV.UGA.EDU>
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.6626
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
Importance: Normal
X-MIME-Autoconverted: from quoted-printable to 8bit by listserv.cc.uga.edu id
                      j8UG912t025519
Approved-By: "David P. de Jongh" <daviddejongh@WORLDNET.ATT.NET>
In-Reply-To: <433D6157.7090209@phoenixsoftware.com>
Return-Path: owner-assembler-list@LISTSERV.UGA.EDU
X-OriginalArrivalTime: 30 Sep 2005 16:12:16.0372 (UTC)
                       FILETIME=[B9AE7340:01C5C5D9]
X-Mime-Autoconverted: from 8bit to 7bit by mime827
Originator: daemon@mozart.unx.sas.com