Mikroelektronika MIKROE-350 Fiche De Données
STATEMENTS
Statements define algorithmic actions within a program. Each statement needs to
be terminated with a semicolon (
be terminated with a semicolon (
;
). In the absence of specific jump and selection
statements, statements are executed sequentially in the order of appearance in the
source code.
source code.
The most simple statements are assignments, procedure calls and jump statements.
These can be combined to form loops, branches and other structured statements.
These can be combined to form loops, branches and other structured statements.
Refer to:
- Assignment Statements
- Conditional Statements
- Iteration Statements (Loops)
- Jump Statements
- Conditional Statements
- Iteration Statements (Loops)
- Jump Statements
- asm Statement
ASSIGNMENT STATEMENTS
Assignment statements have the following form:
variable = expression
The statement evaluates
expression
and assigns its value to
variable
. All rules of
implicit conversion are applied.
Variable
can be any declared variable or array ele-
ment, and
expression
can be any expression.
Do not confuse the assignment with relational operator = which tests for equality.
mikroBasic PRO for AVR will interpret the meaning of the character = from the context.
mikroBasic PRO for AVR will interpret the meaning of the character = from the context.
152
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Language Reference
mikroBasic PRO for AVR
CHAPTER 5