I have some existing 8051 assembly that includes source routines from other files using $INCLUDE. When I try to single step through the code in the included file with the simulator it skips over the included code. How do I step thorough this code? Is there a setting I need to change?
Thanks, Chris
Is there a setting I need to change?
No. You'll just have to stop doing this:
includes source routines from other files using $INCLUDE
Including actual source code (as opposed to declarations) often causes this kind of problem. So don't do that.
Agree with HB statements but just a general comment. The debugger/simulator work via symbols added to the object code just for debugging. The symbols must point to the actual source code. If the source code is not available to the debugger it will skip the code segment.
Bradford
Can you be more spacific?
The two links below will explain better than me. I used the term object code when I should have said the absolute code. This is type of code that contains the symbols tags for the simulator. It will have the name of the project with NO extension. It is not the compiler output hex code. Both the absolute object code and the assembler source code must be available to the debugger/simulator. Otherwise the simulator cannot display the source code and will just skip the display of the code segment but the code segment will be executed.
http://www.keil.com/support/docs/199.htm http://www.keil.com/support/docs/208.htm