finished logic for gateALUoutput and gateSHFoutput