Are you sure a "sign bit" is what you have here? IEEE formats have a sign bit, but plain integers are generally 2's complement, so you need to potentially modify every bit to switch between positive and negative. But maybe your example is just omitting those details.