Comment by Anarch157a

Comment by Anarch157a 2 days ago

1 reply

I don't know enough of the 8086 so I don't know if this works the same, but on the Z80 (which means it was probably true for the 8080 too), XOR A would also clear pretty much all bits on the flag register, meaning the flags would be in a known state before doing something that could affect them.

vanderZwan 2 days ago

Which I guess is the same reason why modern Intel CPU pipelines can rely on it for pipelining.