With old compiler V.7.20 the code runs, with the new compiler the processor does not.
What I noticed in the new code generated is the following
0012 C3 CLR C
0013 E500 E MOV A,time_base0015 9406 SUBB A,#06H0017 7480 MOV A,#080H0019 9480 SUBB A,#080H001B 501A JNC ?C0006
replaces
0012 E500 E MOV A,time_base0014 C3 CLR C0015 9406 SUBB A,#06H0017 501A JNC ?C0006There are a few other differences but this occurs in many places, and the new code is 1K longer than the old code.
If you need additional information, let me know.
Thanks,
Victor
You need to use Insert -> Code.
I have noticed the code is bigger too. I don't know all the changes, but watch the data types and comparisons. I think one of the changes might have been that default types are int instead of unsigned int? Also in your Target C51 settings there is a checkbox for integer promotion. Compare with the old project settings.
There should really be a Keil document for migrating code because these types of compiler changes can cause havoc.