┌──┬──┬──┬──┬──┬──┬──┬──┐ │OF│DF│IF│SF│ZF│AF│PF│CF│ ├──┼──┼──┼──┼──┼──┼──┼──┤ │ │ │ │ │* │ │ │ │ └──┴──┴──┴──┴──┴──┴──┴──┘
The ZF flag is affected by the REP CMPS and REP SCAS as described above.