View Single Post
  #1   Spotlight this post!  
Unread 10-06-2002, 23:14
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
Basically, it's like a C switch statement. The syntax is:
Code:
BRANCH Offset,[Address1, Address2, ...AddressN]
Then, it will branch to the label specified in the list above. For example,
Code:
BRANCH myVar, [label1, label2, label3]
could be used to replace
Code:
if myVar=0 then label1
if myVar=1 then label2
if myVar=2 then label3
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php