What is the use of TRT instruction and how it is working?

Answer Posted / senthil kumar m

TRT is used to scan a string of characters, searching
for the occurrence of any the characters which are
specified in a translate table.


TRT also sets the condition code to indicate the results
of the scanning operation as follows:

Condition Code Indications

0 ( Zero ) All function bytes
encountered were X’00’.
1 ( Minus ) A nonzero function byte
was found before the end of operand 1
2 ( Positive ) A nonzero function byte
was found at the end of the operand 1

The condition code can be tested using BZ, BNZ, BM, BNM,
BP, or BNP.

Is This Answer Correct ?    15 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How is data passed from a calling program to an assembler called program?

707


Explain how to access vsam file?

703


how to initialize a register to 0000?

742


Explain the difference in data type "x" and "p"?

679


What is maximum displacement and how to cross this limit?

777






Ap wkur,=p5 where wkur is a label?

772


Why do we use "drop"?

643


Explain how to produce soc7 abend?

719


Explain about maximum displacement?

687


How many maximum base registers we can have in a single program?

714


What is need of start 0? In steed of can we use anyother numerics? If we use what will happen?

733


how do you round the addition or subtraction of two numbers in assembler? what does the following code do? change process tool(code changes from dev to prd) the changes made to your code should be effected in live. How the process takes place. That is how can you move the code changes from development to production?

764


Explain how to pass instream data in sysin with assembler?

719


How many maximum base registers we can have in a program?

706


What is need of start 0?

755