Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/27/99 19:35
Read: times


 
#178 - Loadable Modules
I am trying to create a system where my main code module can
load another module and then execute it. The secondary module
will have one fixed entry point to start and the main module will
maintain a fixed jump table for external functions. This is much like
a C64 ROM Kernel jump table. The loaded module can call services
of the main module by going through the jump table. Sounds easy
right... Well I am trying to do this in C and all of the C Compilers
I have tried so far create an overlay area for function parameters
and variables. When the loaded module calls a function in the main
module, the parameters are passed from the wrong overlay. Anyone
out there ever try this. I would like to see a compiler that made a
pusedo stack in XDATA, used an RR pair as the Stack pointer and
managed it like real C does. The RR pair can me moved into DPTR
and you have stack references.

TIA
John G

No replies in thread

Back to Subject List