04.03.2013 Views

Basic Micro Studio Syntax Manual

Basic Micro Studio Syntax Manual

Basic Micro Studio Syntax Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

BRANCH<br />

<strong>Syntax</strong><br />

branch index, [label1, label2, label3, ..., labelN]<br />

Commands<br />

• Index - is a variable, constant or expression that is used to reference a label in a list. The index is<br />

0 based.<br />

• Label - is a list of constant labels that are jump points in a program.<br />

Supported<br />

• BA - Supported.<br />

• BAN - Supported.<br />

• BAP - Supported.<br />

• BAP40 - Supported.<br />

Description<br />

The BRANCH command will jump to a label defi ned within the brackets. The label used for the jump<br />

is determined by the pointer index. The only limits to the number of labels within the brackets is the<br />

available program memory.<br />

Notes<br />

1. Labels are read from left to right with label1 as position 0.<br />

2. If a label is specifi ed in the BRANCH command and not used in the program, an error will result<br />

during compiling.<br />

88

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!