Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About Dark.Rider

  • Rank
  1. Hello! I just ried to modify a value of a symbol in the debugger ant got "Debugging... Can not modify value of the symbol". Just a simple program char a,b; main() { a=1; b=0; for(;; } I run the debugger, put a and b in the watch window and tried to edit their values. It seems not to work. Any suggestions? Thanks Thomas Kusch
  2. Hello! signed char opposite(signed char a, signed char B ) { if((a^ B ) <0 && a && B ) return TRUE; return FALSE; } I commented it out, no change. I just tested a simple program: #include <system.h> signed char a,b,c; main() { a=-90; b=0; c=0; if( a>b ) c=1; for(;; } c becomes '1'!!! The comparison seems be done unsigned. Here the casm: main() { a=-90; 0003 30A6 MOVLW 0xA6 0004 1283 BCF STATUS, RP0 0005 1303 BCF STATUS, RP1 0006 00A0 MOVWF gbl_a b=0; 0007 01A1
  3. Hello! Here is my problem, probably a bug: Bug description: a comparison between two signed chars seems not to work correclty Steps to reproduce: here my code sniplet: signed char DefaultAction(signed char cIst, signed char cSoll) { signed char cAccel; if(cIst == cSoll) return(0); cAccel=1; if(opposite(cIst,cSoll)) cAccel=4; if(cSoll==0) cAccel=2; //HERE IS THE PROBLEM if(cIst>cSoll) cAccel=-cAccel; //Example: cIst=-90 cSoll=0 and the statement gets TRUE //(cAccel old value=2 new value=-2) 100% tested with the debugger
  • Create New...