Name:
goto
Syntax:

GOTO address

Address - is a label which specifies where to go.

Description:

Go to address. The goto command is a permanent 'jump' to a new section of the program. The jump is made to a label.

Applies To:
All
See Also:
Related Create:
    Share:
    Print:

    Flash an LED

    Flash an LED by turning it on for 5 seconds, off for 5 seconds, then going to the start and repeating the cycle

    Code Example:
    main:	high B.1	; switch on output 1
    	pause 5000	; wait 5 seconds
    	low B.1		; switch off output 1
    	pause 5000	; wait 5 seconds
    	goto main	; loop back to start
    Copy Code Submit an Example

    Submit Your Own Code!

    You must be logged in to submit code examples. Login now.

    Comments

    • Login to leave a comment.