[OpenBIOS] C's continue statement in Forth?

Programmingkid programmingkidx at gmail.com
Mon Aug 20 00:38:45 CEST 2012


I was wondering if there is a way to implement C's continue statement in Forth. I have this loop, and some times I only want to execute part of it, and then continue on to the next iteration without finishing the current iteration. Is there any way of doing this in OpenBIOS?

Example:

begin
\ condition 
while

\  conditional code
if
	CONTINUE		\ skip rest of loop 
then 

\ rest of loop ...

repeat


My guess to a possible solution would be to manipulate the return stack. Any body have any ideas?


More information about the OpenBIOS mailing list