VP library
Peter Verkaik
Posts: 3,956
Hi,
I am working on a VP library that consists of macros. One piece of code for
multiple identical VP's.
The idea is to declare·VP's in the rambank area. At the end the used
VP modules are included.
The setup works but I need some ideas on the following:
At the end of the test file, I include the used library modules.
Currently I set include addresses manually to prevent code to cross
page boundaries.
Any idea how I can automate this?
VP code consists of 3 parts:
ISR code, mainline code and initialization code. These are all
automatically inserted at the proper locations. For the ISR code
I face the same problem as above, plus I want to include the isr code
in threads. The same isr code may be run from multiple threads.
Any idea how I can do that?
(I am thinking of supplying thread numbers to the VP macros)
regards peter
I am working on a VP library that consists of macros. One piece of code for
multiple identical VP's.
The idea is to declare·VP's in the rambank area. At the end the used
VP modules are included.
The setup works but I need some ideas on the following:
At the end of the test file, I include the used library modules.
Currently I set include addresses manually to prevent code to cross
page boundaries.
Any idea how I can automate this?
VP code consists of 3 parts:
ISR code, mainline code and initialization code. These are all
automatically inserted at the proper locations. For the ISR code
I face the same problem as above, plus I want to include the isr code
in threads. The same isr code may be run from multiple threads.
Any idea how I can do that?
(I am thinking of supplying thread numbers to the VP macros)
regards peter
Comments
I managed to automate code inclusion. I use a first fit approach.
The problem I have now is I am unable to split up the library in
functional files due to include errors. See my thread "include files"
The attachement assembles and is interesting for the mechanisms.
The code itself is not fully tested.
regards peter