I couldn't think of a "useful" reason for such code either, other than perhaps 
as a teaching exercise.  But I was going to reply "Who cares what the value of 
it is?  Why not just answer the original question?  A long time ago someone 
wondered "What's the use of this strange thing that always points in the same 
direction if we put it on top of a piece of wood so it will float on water?  
It's no good.  Let's throw it overboard."

Then Frank Ramaekers' reply reminded me that I, too, have written code to 
replace 16 (or hundreds, or thousands, of) consecutive identical bytes with the 
one phrase "Same as above."  And I have done so more than once.

Visualize my right hand's slapping my forehead while I say "DOH!"

Bill Fairchild
Rocket Software

-----Original Message-----
From: IBM Mainframe Assembler List [mailto:[email protected]] On 
Behalf Of Frank M. Ramaekers
Sent: Monday, October 04, 2010 1:08 PM
To: [email protected]
Subject: Re: 16-bytes the same

Depends on the situation.  I was writing my own DUMP routine (via email)
and needed to look for repeated blocks (16-bytes).  If found (more than
once), than I could insert a "Same as above".



             Address Disp  0 1 2 3 4 5 6 7  8 9 A B C D E F
0...4...8...C..F

            0087C9D4 0000         00000000 0000000000000000 *
............*

            0087C9E0 000C 0000000000000000 0000000000000000
*................*

            0087C9F0 001C to 0087CACF 00FB Same as above

            0087CAD0 00FC 000000                            *...
*





Frank M. Ramaekers Jr.







-----Original Message-----
From: IBM Mainframe Assembler List
[mailto:[email protected]] On Behalf Of robin
Sent: Friday, October 01, 2010 11:12 AM
To: [email protected]
Subject: Re: 16-bytes the same



From: "Frank M. Ramaekers" <[email protected]>

Sent: Friday, 1 October 2010 5:14 AM



>Doesn't the following statement check to see that all 16-bytes are
same?



>00251A D50E 5001 5000 00001 00000  8688          CLC   1(15,R5),0(R5)



Useful if you know the value of one of the bytes.



Not quite so useful if none of the values of the 16 bytes is known --

in which case an "ordinary" CLC would be simplest and clearest.


_____________________________________________________

This message contains information which is privileged and confidential and is 
solely for the use of the

intended recipient. If you are not the intended recipient, be aware that any 
review, disclosure,

copying, distribution, or use of the contents of this message is strictly 
prohibited. If you have

received this in error, please destroy it immediately and notify us at 
[email protected].

Reply via email to