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.
This is a test project in Dallas 390 and the target options-Use On-chip Arithmatic Accelerator is selected main.c:
void main(void) { unsigned int i = 2008; unsigned char ch; ch = i%100; ch = i/100; }
You didn't get any answer so far, likely because you chose the wrong product family (C251). That said, it's quite impossible to guess what went wrong in your actual code if you don't show any of that. Code that does work doesn't explain anything about other code that doesn't. Just one hint: did you check the "ANSI C integer promotion rules" option?
The Compiler User's Guide suggests the following: Use the following suggestions to help guarantee that only one thread of execution uses the arithmetic processor: