daniel
08-04-2005, 01:22 PM
The only other discussion I found (using forum Search) on this particular forum (BASIC Stamp) of this request occurs at the fourth message in thread http://forums.parallax.com/showthread.php?p=527631.· I exclude the various comments made about how messing up the cross-bank variable ordering can cause one to have an interesting day.
If this feature is already underdevelopment, thank you.
If not, please consider this a request for a means of simplifying cross-bank programming.· I see two possible workable·solutions.·
First possibility, allow for the use of INCLUDE files, as do many other programming languages.· These could be restricted to non-code content, and single-level (non-recursive) inclusion.
Second possibility, create a program section in the bank 0 source code, delimited by a pair of keywords (or as an additional file entry on the $STAMP directive), where in any PIN, CON, or VAR definitions will be automaticaly shared between all of the program banks.· I'd suggest the tokens #COMMON and #ENDCOMMON as the delimiters (or the additional $STAMP file could be identified as COMMON=filename).· As I would view the implementation, this section would be flagged as an error if the $STAMP directive does not suggest a multibank situation, or if the section was included in any program slot other than the bank 0 slot.
The reason for the request is that I have a application that will have a massive amount of CON definitions to assist with the manipulation of cross-bank procedure calls, a modest virtual memory management system, and a mechanism to return from POLLIN interrupts.· The current requirement to manually copy this list to all banks will be fraught with angst and error, especially considering that this (rather large) application is going to be developed in a RAD-like fashion (i.e., many intermediate stages as the parts are prototyped, and then committed).
I do not particularily require execuable code to be shared in this fashion, as there will be very little common code between the program slots in this particular application.· However, I can see that allowing executable code in an include file mechanism could do a lot for code reuse--allow a library of reusable routines to be crafted.· Even so, my need is for easing the management of crossbank usage of PIN, CON, and VAR symbol names.
If you wish additional discussion of this request, please let me know.
BTW, if something like this already exists, I have overlooked it, so please enlighten me.
Daniel
If this feature is already underdevelopment, thank you.
If not, please consider this a request for a means of simplifying cross-bank programming.· I see two possible workable·solutions.·
First possibility, allow for the use of INCLUDE files, as do many other programming languages.· These could be restricted to non-code content, and single-level (non-recursive) inclusion.
Second possibility, create a program section in the bank 0 source code, delimited by a pair of keywords (or as an additional file entry on the $STAMP directive), where in any PIN, CON, or VAR definitions will be automaticaly shared between all of the program banks.· I'd suggest the tokens #COMMON and #ENDCOMMON as the delimiters (or the additional $STAMP file could be identified as COMMON=filename).· As I would view the implementation, this section would be flagged as an error if the $STAMP directive does not suggest a multibank situation, or if the section was included in any program slot other than the bank 0 slot.
The reason for the request is that I have a application that will have a massive amount of CON definitions to assist with the manipulation of cross-bank procedure calls, a modest virtual memory management system, and a mechanism to return from POLLIN interrupts.· The current requirement to manually copy this list to all banks will be fraught with angst and error, especially considering that this (rather large) application is going to be developed in a RAD-like fashion (i.e., many intermediate stages as the parts are prototyped, and then committed).
I do not particularily require execuable code to be shared in this fashion, as there will be very little common code between the program slots in this particular application.· However, I can see that allowing executable code in an include file mechanism could do a lot for code reuse--allow a library of reusable routines to be crafted.· Even so, my need is for easing the management of crossbank usage of PIN, CON, and VAR symbol names.
If you wish additional discussion of this request, please let me know.
BTW, if something like this already exists, I have overlooked it, so please enlighten me.
Daniel