Cmp now stores from d0-d3 starting with msb. Fixed mistakes in register comparrisons. Cmp has been tested.