----- Original Message ----- From: "Schmitt, Michael" <michael.schm...@dxc.com>
To: <ASSEMBLER-LIST@LISTSERV.UGA.EDU>
Sent: Friday, May 27, 2022 7:23 AM


I want to replace all '*' with a space in a field. That's a TR instruction, 
right?
But when I search through our 40 years of assembler code, I see no uses of TR 
for such a purpose.

What?  That's what TR does, viz, replace one or more characters with others.

I thinking this is because of difficulty in building the TR table.
We'd need to have 256 bytes where every byte's value in in ascending sequence:
00 01 02 03 04 05 06 07 08 09 0A etc, right? Except for the byte at offset 
x'5C',
which would have the value x'40'.

Is there a slick way or a macro to build the TR table?
Or do people just code a TRT loop instead, since it is easier to build a TRT 
table?

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

Reply via email to