I have the impression that the routine that process a switch statement is (justifiably?) complicated and slow. I have a case with a lot of case statements. To "help the compiler" the cases are 0, 2, 4... to allow the use of JMP @a+dptr. I can see a way of going to a51 for the switch and then back to c for the code, but that would be almost unreadable. Has anyone found a fast and readable way to do something like this? Erik
View all questions in Keil forum