mov
does not affect any flags.
add
and sub
do set AF
, but so do many other instructions too, for example adc
, cmp
, cmpxchg
, dec
, inc
, sbb
, neg
.
Many other instructions leave AF
in an undefined state, for example mul
, imul
, div
, idiv
, test
, and
, or
, xor
, shr
.