- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It's said that PSOC Creator is supported by KEIL,but now,we can't use "goto loop".How can we find another code with the same founction to replace it?
3Q ~
Solved! Go to Solution.
- Labels:
-
PSoC 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Fenn,
When using PSoC 3, Keil Compiler is used in PSoC Creator. Hence, the keywords defined for Keil is applicable to PSoC Creator also.
"goto" is used to branch to another location in a program. It transfers the control to the labeled statement whose label matches the Identifier.
Consider a simple example as shown below:
if (a <= 11)
{
b = 100;
goto ESCAPE;
}
b = 50;
ESCAPE:
.........................
.....................
.......................
In this code, ESCAPE is the Identifier. When tested in Debug mode on PSoC 3, the "goto" statement executed as expected at my end.