User manual

145
mikoPascal PRO for dsPIC30/33 and PIC24
MikroElektronika
procedure proc(par : byte); org 0x200;
begin
// Procedure will start at address 0x200;
...
end;
org directive can be used with main routine too. For example:
program Led_Blinking;
begin org 0x800; // main procedure starts at 0x800
...
end.
Directive orgall
Use the orgall directive to specify the address above which all routines and constants will be placed. Example:
begin
orgall(0x200); // All the routines, constants in main program will be above the address
0x200
...
end.