🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: bit.listserv.asm370
Article #77

Re: Shifting memory to the right

#77
From: Mon R. Santos
Date: Mon, 10 Oct 2005 02:52
38 lines
2930 bytes
Hi Don,

Sorry for coming in late, but doesn't the MVCIN (move inverse) instruction
do that? or am I way off?


-----Original Message-----
From: IBM Mainframe Assembler List
[mailto:ASSEMBLER-LIST@LISTSERV.UGA.EDU]On Behalf Of Don Nielsen
Sent: Friday, September 30, 2005 11:56 PM
To: ASSEMBLER-LIST@LISTSERV.UGA.EDU
Subject: 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: <006801c5cd45$b6722aa0$f200a8c0@s3090>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-in.ntli.net!newsrout1-win.ntli.net!ntli.net!sn-xit-03!sn-xit-11!sn-xit-05!sn-xit-14!supernews.com!149.173.6.116.MISMATCH!foggy!vm.sas.com!tig.com.au!bugsie

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!news.glorb.com!news-in.ntli.net!newsrout1-win.ntli.net!ntli.net!sn-xit-03!sn-xit-11!sn-xit-05!sn-xit-14!supernews.com!149.173.6.116.MISMATCH!foggy!vm.sas.com!tig.com.au!bugsie
From: "Mon R. Santos" <bugsie@tig.com.au>
Newsgroups: bit.listserv.asm370
Subject: Re: Shifting memory to the right
Date: Mon, 10 Oct 2005 12:52:53 +1000
Organization: SAS Inc.
Lines: 38
Sender: IBM Mainframe Assembler List <ASSEMBLER-LIST@LISTSERV.UGA.EDU>
Message-ID: <006801c5cd45$b6722aa0$f200a8c0@s3090>
NNTP-Posting-Host: mozart.unx.sas.com
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: foggy.unx.sas.com 1128913029 10315 10.19.150.41 (10 Oct 2005 02:57:09 GMT)
X-Complaints-To: usenet@unx.sas.com
NNTP-Posting-Date: Mon, 10 Oct 2005 02:57:09 +0000 (UTC)
Comments: Gated by NETNEWS@VM.SAS.COM
Return-Path: <owner-assembler-list@LISTSERV.UGA.EDU>
X-BrightmailFiltered: true
X-Brightmail-Tracker: AAAAAQAAA+k=
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-MS-TNEF-Correlator: 0000000078850D9B9C7DB3448253F90C1C33595BE4912100
Importance: Normal
Approved-By: "Mon R. Santos" <bugsie@TIG.COM.AU>
In-Reply-To: <F57FDB5201A2AA488C21CC5CC9759029848D5D@cdmail.cmscms.com>
Return-Path: owner-assembler-list@LISTSERV.UGA.EDU
X-OriginalArrivalTime: 10 Oct 2005 02:57:07.0328 (UTC)
                       FILETIME=[4D019000:01C5CD46]
Originator: daemon@mozart.unx.sas.com