User`s manual

mikroBASIC
- Basic Compiler for Microchip PIC microcontrollers
' You cannot mix signed and unsigned data types in
' expressions with logical operators:
dim Sa as short
dim teA as byte
dim Bb as word
dim Sbb as integer
dim Scccc as longint
main:
teA = teA + Sa
' compiler will report an error
teA = teA and Sa
' compiler will report an error
' But you can freely mix byte with word . .
Bb = Bb and ( not teA)
' . . and short with integer and longint.
Scccc = Sbb xor Sa or Scccc
end.
PIC microcontrollers are optimized to work with bytes. Refer to PIC MCU
Specific.
MikroElektronika:
Development
tools
-
Books
-
Compilers
mikroBASIC
making it simple...
83
page
Runtime
Behavior