> -----Original Message-----
> From: IBM Mainframe Discussion List 
> [mailto:[EMAIL PROTECTED] On Behalf Of Kirk Wolf
> Sent: Monday, March 24, 2008 12:31 PM
> To: [email protected]
> Subject: Long translate (TR) instruction?
> 
> 
> Hi,
> 
> I'm looking for the fastest way in assembler to translate 
> data in one buffer
> to another using a 256-byte translate table.
> The TR instruction is only up to 256 bytes, and I can't 
> figure out if one of
> the newer instructions is a replacement for arbitrary length 
> translations,
> or if the best approach is just to loop for 256 byte chunks.  
> The average
> length transaction is almost certainly less than 256 bytes.
> 
> Any advise on the fastest instruction path to do this would 
> be appreciated.
> 
> Thanks,
> Kirk Wolf
> Dovetailed Technologies

I don't think you have a choice, in the general case. That is because
all the new TRxx type instructions seem to terminate when the data in
your buffer equals to the contents of the low order byte general
register 0. I.e. they stop at an "end of buffer" type character, like a
<null> in a C string. If you can tolerate this behaviour, then I'd look
at the TRE or TROO instruction. The TRE seems easier to use, to me.


--
John McKown
Senior Systems Programmer
HealthMarkets
Keeping the Promise of Affordable Coverage
Administrative Services Group
Information Technology

The information contained in this e-mail message may be privileged
and/or confidential.  It is for intended addressee(s) only.  If you are
not the intended recipient, you are hereby notified that any disclosure,
reproduction, distribution or other use of this communication is
strictly prohibited and could, in certain circumstances, be a criminal
offense.  If you have received this e-mail in error, please notify the
sender by reply and delete this message without copying or disclosing
it. 

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to