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

What will happen if we drop the base register in the program which contains only one basereg?

587


Explain about maximum displacement?

614


what is need of start 0? In steed of

683


What does "using" do?

600


how to initialize a register to 0000?

673






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

623


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

601


What does the following code do? Ap wkur,=p5 where wkur is a label?

622


What is maximum displacement?

626


How to pass the parameters from jcl to assembler program?

578


Explain about house keeping in assembler?

645


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

646


Explain about base register?

619


Explain how to pass instream data in sysin with assembler?

652


Explain the difference between various read and find statement?

629