Jump to content
Sign in to follow this  
Ian Harris

Enhancement - Rom Subroutines

Recommended Posts

Hi guys,

 

It would be great to be able to reference ROM subroutines. This would mean you could load a "bootloader" that could access LCD, etc, and programs you bootload into the chip could use those same routines without having to duplicate code.

 

Something like this:

 

#pragma EXPORT

void lcd_print(char *string) {

 

etc

}

 

This would result in an extra output file that contains information about the location of variables used within the routine, parameters etc. This file could then be included in a project instead of a .lib file.

 

When the new "library" is included in a new program, the compiler/linker would reserve the used memory locations (if the program calls the routine) for params and local variables.

 

regards

Ian.

Share this post


Link to post
Share on other sites

Your content will need to be approved by a moderator

Guest
You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×