inline routines

Post your requests and ideas on the future development of mikroPascal.
Post Reply
Author
Message
hutorny
Posts: 6
Joined: 25 Aug 2006 08:03

inline routines

#1 Post by hutorny » 25 Aug 2006 08:20

I wish inline routines. Or at least inline asm routines. I believe this would be very useful for advanced users. Something like

procedure debug_LedOn; asm; inline;
bcf debug_Potr, red_Led
end;

Donald Shimoda
Posts: 553
Joined: 27 Feb 2006 17:00
Location: Argentina
Contact:

Re: inline routines

#2 Post by Donald Shimoda » 25 Aug 2006 08:51

hutorny wrote:I wish inline routines. Or at least inline asm routines. I believe this would be very useful for advanced users. Something like

procedure debug_LedOn; asm; inline;
bcf debug_Potr, red_Led
end;
And wich is wrong with some like that?

procedure debug_LedOn;
begin
asm;
bcf debug_Potr, red_Led
end
end;

Already work. :)

hutorny
Posts: 6
Joined: 25 Aug 2006 08:03

Re: inline routines

#3 Post by hutorny » 25 Aug 2006 10:27

Donald Shimoda wrote:
hutorny wrote:I wish inline routines. Or at least inline asm routines. I believe this would be very useful for advanced users. Something like

procedure debug_LedOn; asm; inline;
bcf debug_Potr, red_Led
end;
And wich is wrong with some like that?

procedure debug_LedOn;
begin
asm;
bcf debug_Potr, red_Led
end
end;

Already work. :)
The difference is in execution time.
Sometime its hard to find even a single spare IC.

Post Reply

Return to “mikroPascal Wish List”