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 is house keeping in assembler?

592


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

631


How do you round the addition or subtraction of two numbers in assembler?

602


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

577


explain about maximum displacement and how to cross this limit?

700






Explain how to pass instream data in sysin with assembler?

646


explain icm instruction?

658


how to retrieve the instream data in sysin?

677


Explain how to produce soc7 abend?

641


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

637


What is need of start 0?

657


What is maximum displacement?

620


What is maximum displacement and how to cross this limit?

669


Explain about base register?

604


Explain how to initialize a register to 0000?

587