Clear memory and new compare 16 bit routine