We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi guys,
I've been stucked for hours. It is a project for CORTEX-MX, the compiler I am using is KEIL in PRO mode.
Here is a segment of C code:
================================================================== case COMMAND_STATE_WAIT_WAVELENGTH: Request.wavelength = val; datacount++; if (Request.wavelength>128) { *cmderr = COMMAND_ERROR_DATALENGTH; command_state = COMMAND_STATE_ABORT; } else if (Request.wavelength ==0) { command_state = COMMAND_STATE_WAIT_CHECKSUM; } else { command_state = COMMAND_STATE_WAIT_DATA; }
break; ==========================================================
After compile,it turns into something else and it doesnt work.
I I changed "Request.wavelength>128" to "Request.wavelength+1>128+1", and it worked a bit better. >_<!
Please HELP. what a miracle~~
Self-modifying code??!!