┌──┬──┬──┬──┬──┬──┬──┬──┐ │OF│DF│IF│SF│ZF│AF│PF│CF│ ├──┼──┼──┼──┼──┼──┼──┼──┤ │? │ │ │* │* │? │* │* │ └──┴──┴──┴──┴──┴──┴──┴──┘
If count = 0, the flags are not affected.
The SF, ZF, and PF flags are set according to the result; the CF flag is set to the value of the last bit shifted out; after a shift of one bit position, the OF flag is set if a sign change occurred, otherwise it is cleared; after a shift of more than one bit position, the OF flag is undefined; the AF flag is undefined, except for a shift count of zero, which does not affect any flags.