Remix.run Logo
bonzini 2 hours ago

Ah, you mean in terms of complexity of the calculation. Thanks for clarifying.

In practice AF and CF can be computed from the carry out vector which is already available, and OF is a single XOR (of the two most significant bits of the carry out vector). The same circuitry works for XOR and SUB if the carry out vector of XOR is simply all zeroes.

themafia an hour ago | parent [-]

It also clears any dependence on the state of those flags. Which is probably not useful in practice.