Hi all,
I’m currently working on some Intel processor emulator and i have problems with guessing the state of some flags which are described by Intel as undefined, for example:
MUL - Unsigned Multiply
Usage: MUL src
Modifies flags: CF OF (AF,PF,SF,ZF undefined)
Instruction: mul ebx
Starting values: EAX=11223344 / EBX=33445566
Starting flags: Z = 0 / S =1 / P =0 (…)
After mul, some flags that were mentioned as undefined are changed to: P = 1 / S = 0
Is there any option to “emulate” the state of undefined flags? Please notice i can’t execute the instruction and then get the flags using any of pushf/popf similiar combination - it must be 100% emulated.
thanks!