bit of a mess. getting carry recognised and output for shiftrot