Code:
if (variable1 == CONSTANT1)
Compiled:
c60000 LDA variable1
Code:
if (variable2 == CONSTANT2)
Compiled:
c60000 LDA variable2
Message Edited by irob on 06-05-2006 10:28 PM
Problem 1 guess: The debugger is using some RAM locations for its own needs, so it keeps overwriting them.
Problem 2 guess: The code you see is pre-linker. The linker will fill the 0000 portion of the various instructions with the actual address.
Hello
Two solution to see actual code from the application:
1- After you download the code in the debugger (either simulator or target board), you should be able to see the assembly code of the application in the Assembly component.
2- If you wish to see a disassembly listing from the current executable file:
- Add the .abs file to the project
- Click with the right mouse button on the newly added .abs file and select "Disassemble" in the pop up menu. You will get a new window with the actual disassembly of the executable file.
Be careful, you will need to remove the .abs from the project afterward, otherwise you will not be able to link the application any more.
I hope this helps.
CrasyCat