Patent ID: 7092869

Claim:
A computer-implemented method for dynamic emulation of legacy instructions comprising: accessing said legacy instructions, for each particular legacy instruction, translating the particular legacy instruction into one or more particular translated instructions for emulating the particular legacy instruction, if the particular legacy instruction is an operand-setting instruction for storing a value of a precedent operand, setting a corresponding flag when the value of the precedent operand has not been determined, if the particular legacy instruction is an operand-using instruction for using the precedent operand, checking to determine if the corresponding flag is set, if the corresponding flag is set, suspending the translation of said operand-using instruction, executing said one or more particular translated instructions corresponding to said operand-setting instruction to determine the value of said precedent operand, clearing the corresponding flag and resuming translation of said legacy instructions using the value of said precedent operand in the resumed translation, if the corresponding flag is not set, continuing the translation of said operand-using instruction, continuing executing the translated instructions to emulate execution of the legacy instructions.