Autotest now functions. Split out sr for loading common bit masks into registers. Working on CMPA