Ben Combee wrote:
What do you mean "private section of the runtime"? The whole runtime source is provided to you, so why not just use the code? The only reason all of those PACE_INTERFACE macros are in the .cpp file was that I never pulled them out to their own header. That sounds like an easy task.
It is if one assumes this is the final version of Codewarrior. Which is probably a good assumption. :)
IIRC, selectors are chosen by putting the appropriate value in the D2 register when you do the trap instruction. From a PNO, this involves manipulating the 68K state structure. The PACE_VFS_EXEC macro uses this technique to call through the VFS selector.
Aha. Not sure how I missed that.
As always, PNO discussions is probably best done in the pno-forum mailing list, where there is lots of archived discussion on these topics.
Noted for future questions, thank you.
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
