top | item 46107952

(no title)

Anarch157a | 3 months ago

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.

discuss

order

vanderZwan|3 months ago

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