Divided pic12 shared code out.
last few changes