assemblyx86eflags

What is the ZF behavior for the imul instruction?


The instruction set reference says that the ZF is undefined for the imul instruction. So what happens to the ZF if I multiply a value in a register by an immediate value of 0x0?


Solution

  • Undefined means that result can be anything and none of the values matter anything.