added test for LD SP, HL
removed global state from clocktroller