Hi Jennie
thank you for your reply.
you are absolutely right, what you say about the memory models. the assembler will not influence my code.
let me shortly explain what the detailed situation is.
the pure assembly module is a kind of micro operating system. though I am working in small model so far, I am able to register functions/modules in other pages, as the operating system switches the pages manually. this works excellent. unfortunatelly NOW I have the need to switch to a banked model as other 3rd party modules require this, since they do not follow the restict rules of my operating system. i.e. my OS need to be changed.
My assembly module needs to know how the parameters are passed (long pointer have 1 byte more, return calls have 1 byte more) and how to return from the subroutine RTS/RTC this is memory model dependent. I know It is not much to be done but I want a stable and easy to use extension without the need to pass defines through the commandline. (this will cause errors in the future, if I forget to do so.) I would rather look for an assembler internal define which is set, when the assembles sees the switch for the memory model.
if you happen to know such a internal define/label/constant I can use during assembly time please let me know. otherwise I have to go the other way with the commandline define. maybe it is also a good idea to wrap the assembly code in a C-File as an option. let's if I have the spare time.
best regards
Bertram.