title: When do the CF and OF get set during arithmetic operations?
body: <p>I can't find a reasonable formula for this. I know CF is used for unsigned arithmetic and OF for signed. </p>
  
  <p>Please give some example arithmetic operations (like 5-7,7-5 etc.) along with the heuristic.</p>