User manual

144
mikoBasic PRO for PIC32
MikroElektronika
Directive orgall
Use the orgall directive to specify the address above which all routines and constants will be placed. Example:
main:
orgall(0x200) All the routines, constants in main program will be above the address
0x200
...
end.
org directive can be used with main routine too. For example:
program Led_Blinking
main: org 0x800 ‘ main procedure starts at 0x800
...
end
Built-in Routines
The mikroBasic PRO for PIC32 compiler provides a set of useful built-in utility functions. Built-in functions do not have
any special requirements. You can use them in any part of your project.
The Delay_us and Delay_ms routines are implemented as “inline”; i.e. code is generated in the place of a call, so
the call doesn’t count against the nested call limit.
The Vdelay_ms, Vdelay_advanced_ms, Delay_Cyc, Delay_Cyc_Long, Get_Fosc_kHz and Get_Fosc_
Per_Cyc are actual Basic routines. Their sources can be found in the __Lib_Delays.mbas le located in the Uses
folder of the compiler.
- Lo
- Hi
- Higher
- Highest
- LoWord
- HiWord
- Inc
- Dec
- Chr
- Ord
- SetBit
- ClearBit
- TestBit