The GNU compiler can define intrinsic functions. Is there a mechanism in Keil library or whatever, to allow you to create a function in assembly and tag it as intrinsic?
How can you pop a couple bytes off the internal stack?
"Problem. A lowlevel interrupt has locked another low level interrupt out"
You mean this: http://www.keil.com/forum/docs/thread14896.asp ?