org the main?

Discuss about beta versions of mikroPascal compiler.
Post Reply
Author
Message
janni
Posts: 5373
Joined: 18 Feb 2006 13:17
Contact:

org the main?

#1 Post by janni » 23 Jun 2007 19:15

As we may now 'org' almost everything, would it be possible to do the same with main program part, like

Code: Select all

begin org 0x2000;

...

end.
-----------
Forget that - :D found out that it can be done with :D

Code: Select all

SetOrg(main,0x4000);
GREAT!!!

User avatar
zristic
mikroElektronika team
Posts: 6608
Joined: 03 Aug 2004 12:59
Contact:

Re: org the main?

#2 Post by zristic » 25 Jun 2007 10:26

You can also do this:

Code: Select all

program tralalala;

...

org 0x200;
begin
....
end.

janni
Posts: 5373
Joined: 18 Feb 2006 13:17
Contact:

Re: org the main?

#3 Post by janni » 19 Oct 2007 17:18

zristic wrote:You can also do this:

Code: Select all

program tralalala;

...

org 0x200;
begin
....
end.
But this

Code: Select all

program tralalala;

...

const abc='abc';

org 0x200;
begin
....
end.

'orgs' the constant, not the main.

User avatar
zristic
mikroElektronika team
Posts: 6608
Joined: 03 Aug 2004 12:59
Contact:

Re: org the main?

#4 Post by zristic » 22 Oct 2007 08:53

Slap!
You are right janni.

Post Reply

Return to “mikroPascal Beta testing”