User`s manual

mikroBASIC
- Basic Compiler for Microchip PIC microcontrollers
program TRIAL
include "other.pbas"
' You can declare variables in the program block
dim tA as integer
dim tD as integer
dim tF as integer
dim tR as word
dim tT as word
dim tY as word
main:
tA = tD and tF
tR = STATUS and $03
TMR0 = 45
end.
...
module other
' You can declare variables at the
' beginning of a module
dim Sss as longint
dim Ddd as longint
...
end.
sub function Sum( dim R as byte) as byte
' You can also declare variables in
' function or procedure block.
dim B as char
dim K as byte
...
end sub
MikroElektronika:
Development
tools
-
Books
-
Compilers
mikroBASIC
making it simple...
41
page
Examples