Patent ID: 8583899

Claim:
A computer program product for executing an extended translate and test instruction, the computer program product comprising: a storage medium readable by a processing circuit and storing instructions for execution by the processing circuit for performing a method comprising: executing the extended translate and test instruction, the executing comprising: obtaining an argument character to be translated; i. based on a field in the extended translate and test instruction, determining whether a value of the argument character is greater than a predefined size, and based on the value being greater than the predefined size, using a predefined value for a function code for the argument character to be translated, and based on the value not being greater than the predefined size, using the argument character to be translated as an index into a function code data structure to locate a function code corresponding to the argument character; and ii. based on said function code being nonzero, storing said nonzero function code in a register; or iii. based on said function code being zero, obtaining a next argument character to be translated and repeating steps i through iii, unless an ending condition exists.