Fix overflow and carry in CPU