Article View: bit.listserv.asm370
Article #196Re: Shifting memory to the right
From: David P. de Jongh
Date: Wed, 12 Oct 2005 03:38
Date: Wed, 12 Oct 2005 03:38
23 lines
2660 bytes
2660 bytes
You can use TRTR for this function if you have a late-model machine. In any event, have you tried benchmarking this against a BCTR loop? D de J -----Original Message----- From: IBM Mainframe Assembler List [mailto:ASSEMBLER-LIST@LISTSERV.UGA.EDU] On Behalf Of Robert A. Rosenberg Sent: Monday, October 10, 2005 10:35 PM To: ASSEMBLER-LIST@LISTSERV.UGA.EDU Subject: Re: Shifting memory to the right At 08:31 -0500 on 10/10/2005, David P. de Jongh wrote about Re: Shifting memory to the right: >MVCIN (a) is no longer supported and (b) moved data in reverse order, so >C'ABCDE' would be moved as C'EDCBA'. Very useful if you put a card in the >reader backwards, I'm sure, but I for one could never think of a real use >for it. As to usage, I use it all the time when I want to locate the last non-blank in a record. Just do a MVCIN to a workarea and then use a TRT to find the first non-blank. The offset from the end of the workarea is the offset in the original record.
Technical Details
Message-ID:
<000001c5cede$70e1b970$0100a8c0@davidantecp4>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!216.168.1.162.MISMATCH!sn-xit-02!sn-xit-06!sn-xit-14!supernews.com!149.173.6.116.MISMATCH!foggy!vm.sas.com!worldnet.att.net!daviddejonghShow 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!border2.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!216.168.1.162.MISMATCH!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: Tue, 11 Oct 2005 22:38:40 -0500
Organization: SAS Inc.
Lines: 23
Sender: IBM Mainframe Assembler List <ASSEMBLER-LIST@LISTSERV.UGA.EDU>
Message-ID: <000001c5cede$70e1b970$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 1129088493 334 10.19.150.41 (12 Oct 2005 03:41:33 GMT)
X-Complaints-To: usenet@unx.sas.com
NNTP-Posting-Date: Wed, 12 Oct 2005 03:41:33 +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
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
Approved-By: "David P. de Jongh" <daviddejongh@WORLDNET.ATT.NET>
In-Reply-To: <p0623090dbf70e25d7448@[192.168.1.11]>
Return-Path: owner-assembler-list@LISTSERV.UGA.EDU
X-OriginalArrivalTime: 12 Oct 2005 03:41:29.0862 (UTC)
FILETIME=[D4D38260:01C5CEDE]
Originator: daemon@mozart.unx.sas.com