User`s manual

mikroBasic recycles local variable memory space - local variables declared in dif-
ferent functions and procedures share same memory space, if possible.
Variable declaration has to be properly placed to have a correct meaning. Variables
can be declared in a program block or implementation section of a module.
Variable declaration must be placed ahead of the keyword begin. You can also
declare variables in function or procedure block. Refer to Program Organization,
and see the following example.
There is no need to declare PIC SFR (Special Function Registers), as they are
already declared as global variables of byte type - for example: TMR0, PCL, STA-
TUS, PORTA, TRISA, etc. These variables may be used anywhere within the
code.
For closer information on how to use variables and build valid expressions refer to
the chapter Operators.
mikroBASIC
- Basic Compiler for Microchip PIC microcontrollers
40
mikroBASIC
MikroElektronika: Development tools - Books - Compilers
making it simple...
page
Additional
info
MikroElektronika: Development tools - Books - Compilers
Note