Data Sheet

dScript
dScript User Manual v2.15
Labels
A label is a marker for a point in your program. A label must start with an upper or lower case
letter A-Z or a-z. Labels can be followed by any mix of upper or lower case letters A-Z or a-z,
digits 0-9 or the underscore character _
A label must finish with a colon :
The colon must immediately follow the label, it terminates the label but is not otherwise part of
the label.
ThisIsAvalidLabel:
And_this:
And5015This:
This is not: ; spaces are not allowed
neitherIsThis ; no terminating colon
4Life: ; cannot start with a digit
Nope : ; colon must directly follow characters, no spaces allowed
Labels are case sensitive, so
Calc_result:
calc_result:
are two different labels.
Label names are not loaded into the module. All labels are compiled to an address, so long
variable names neither consume valuable memory space on the module or slow down program
execution.
main:
The only label you must have is "main". This is the beginning of your program and dScript will
automatically start running at "main" after a power up. "main" may be located anywhere in
your program, it does not have to be at the start.
Copyright © 2016, Devantech Ltd.
All rights reserved.
www.robot-electronics.co.uk
10