Datasheet

org directive can be used with main routine too. For example:
program Led_Blinking;
procedure some_proc();
begin
...
end;
org 0x800; // main procedure starts at 0x800
begin
DDRB := 0xFF;
while TRUE do
begin
PORTB := 0x00;
Delay_ms(500);
PORTB := 0xFF;
Delay_ms(500);
end;
end.
Note: You must specify an even address when using the org directive.
180
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Language Reference
mikroPASCAL PRO for AVR
CHAPTER 5