What is the use of TRT instruction and how it is working? TRT is used to scan a string of characters, searching for the occurrence of any the characters which are specified in a translate table.