🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: bit.listserv.asm370
Article #78

Re: Shifting memory to the right

#78
From: Don Nielsen
Date: Mon, 10 Oct 2005 13:23
52 lines
3962 bytes
MVCIN reverses the string, say "ABCDEF" to "FEDCBA".  I'm looking for something different.  If I had a string of 100 bytes and wanted to move it 10 bytes to the right, it would need to first move byte 100 from the source to byte 100 of the target, then 99, then 98, and so on.  The current move behavior starts with byte 1, which will overwrite byte 11.

I ultimately constructed the logic building the table from the bottom up, using MVCL to move entries up.  Massive efficiency improvement doing it that way.  Unfortunately, on abend, I don't get the greatest look at the tables as the entire table doesn't get dumped.  Guess I have to learn a little about error trapping and producing snap dumps.

dvn

-----Original Message-----
From: IBM Mainframe Assembler List
[mailto:ASSEMBLER-LIST@LISTSERV.UGA.EDU]On Behalf Of Mon R. Santos
Sent: Sunday, October 09, 2005 9:53 PM
To: ASSEMBLER-LIST@LISTSERV.UGA.EDU
Subject: Re: Shifting memory to the right


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: <F57FDB5201A2AA488C21CC5CC9759029848DF6@cdmail.cmscms.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!208.48.142.85!newsfeed.news2me.com!newsfeed2.easynews.com!newsfeed1.easynews.com!easynews.com!easynews!sn-xit-03!sn-xit-10!sn-xit-01!sn-xit-14!supernews.com!149.173.6.116.MISMATCH!foggy!vm.sas.com!cmscms.com!donn

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!wns14feed!worldnet.att.net!208.48.142.85!newsfeed.news2me.com!newsfeed2.easynews.com!newsfeed1.easynews.com!easynews.com!easynews!sn-xit-03!sn-xit-10!sn-xit-01!sn-xit-14!supernews.com!149.173.6.116.MISMATCH!foggy!vm.sas.com!cmscms.com!donn
From: Don Nielsen <donn@cmscms.com>
Newsgroups: bit.listserv.asm370
Subject: Re: Shifting memory to the right
Date: Mon, 10 Oct 2005 08:23:07 -0500
Organization: SAS Inc.
Lines: 52
Sender: IBM Mainframe Assembler List <ASSEMBLER-LIST@LISTSERV.UGA.EDU>
Message-ID: <F57FDB5201A2AA488C21CC5CC9759029848DF6@cdmail.cmscms.com>
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 1128950974 28529 10.19.150.41 (10 Oct 2005 13:29:34 GMT)
X-Complaints-To: usenet@unx.sas.com
NNTP-Posting-Date: Mon, 10 Oct 2005 13:29:34 +0000 (UTC)
Comments: Gated by NETNEWS@VM.SAS.COM
Return-Path: <owner-assembler-list@LISTSERV.UGA.EDU>
Content-class: urn:content-classes:message
X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0
Thread-Topic: Re: Shifting memory to the right
Thread-Index: AcXNRjiGvPx68kN/S4WqdwGkPfds5gAVmaUA
X-MIME-Autoconverted: from quoted-printable to 8bit by listserv.cc.uga.edu id
                      j9ADLGeQ013036
Approved-By: Don Nielsen <donn@CMSCMS.COM>
Return-Path: owner-assembler-list@LISTSERV.UGA.EDU
X-OriginalArrivalTime: 10 Oct 2005 13:29:32.0684 (UTC) FILETIME=[A63364C0:01C5CD9E]
X-Mime-Autoconverted: from 8bit to 7bit by mime827
Originator: daemon@mozart.unx.sas.com