Refactoring immediates.
Fixed up reg_set.