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
Hai I think I have found some clue. Some are optimised out and some others are actually not skipped,but they are merged with the nearby delay routines. Could be seen in the dissassembly window like that. But when stepping through C sourse they appear to be skipped. Causes some confusion but code is there eventhough not like how I proposed!! . Any way how I can avoid such merging! Thanks Roy Thomas
Any way how I can avoid such merging! set the minimum optimization you can live with and there will still be some "merging". A C compiler is supposed to be efficient and thus debugging via C source is sometimes confoosing. When wondering, set the breakpoint in the disassembly and see what actually happens. This phenomena is not a "Keil bug" I know of no decent compiler that does not show such behaviour. Erik
That's why it's called an Optimising compiler! http://www.keil.com/c51/c51_opt.htm Almost every 'C' compiler these days is an "Optimising" compiler.