Is there any easy way to find out what the compiler has calculated as a constant.
ie
#define servo_idle ((max_servo_len+min_servo_len)-min_servo_len)/2
in this case i can follow the asm list and see it has it correct
00D6: MOVLW 01
00D7: MOVWF 00
00D8: DECF 04,F
00D9: MOVLW F4
00DA: MOVWF 00
lines D6 and D9 0x01F4 = 500.
thats fine, not easy,but dooable. Elsewhere tho I have a longer array of calcs. it would be nice if the symbol map or call tree or something would divulge the list of constants.
asjad
Joined: 09 Mar 2004 Posts: 52 Location: Greater Manchester - UK
watch window
Posted: Tue Mar 09, 2004 2:25 pm
I find that if you goto
Build your source code
goto view>watch (MPLAB)
scroll down until you see any variables you are intereseted
and watch their value change.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum