Fix flags computation
When registers were stored as signed integers, it led to errors in the computation of the flags. It should be fixed.
When registers were stored as signed integers, it led to errors in the computation of the flags. It should be fixed.