defines edited according mega8 IO registers; periphery inits added; some defines fixes;