Hai When simulating, keil IDE Skips some bit manipulating instructions.I think there is some point in that which I cannot locate.please pont out Roy Thomas