asm "jump" in codeRed

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

asm "jump" in codeRed

643件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by leluno on Wed Apr 22 01:37:15 MST 2015
with a watchdog-timer the code first should go to the beginnin of the while(1)-loop, second to reset.
on AVR it works like this:
if(zl_sec_wdg==25){asm("jmp label");}
if(zl_sec_wdg>50){asm("jmp 0");}


jmp 0 equals NVIC_SystemReset()
how can I make asm("jmp label" in codeRed?

thanks for helping
ラベル(1)
0 件の賞賛
返信
1 返信

625件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by whitecoe on Wed Apr 22 02:09:50 MST 2015
Sounds like you want the standard C "continue" statement, described in any book on C or on lots of webpages, for example:

http://www.codingunit.com/c-tutorial-for-loop-while-loop-break-and-continue

HTH!
0 件の賞賛
返信