This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

problem with case statement

I am executing the following code part (KEIL development environment, Microcontroller ADuC7020).
if I do insert the "case: 1" structure in func1(), the debugger does not start. If I delete the "case: 1" structure in func1() the code does execute. What is the problem ("....." means that there are other code parts on this place)

regards Samuel

main()
{ .......
var1 = 1;
.......
func1();
.......
}

func1()
{ switch(var1)
.............
case 1:
.............
break;
......
}

0