Hi all, In Keil C51 compiler, is there any way to declare a function that doesn't automatically save registers (acc, b, dptr, r0-r7...) when called? I want to do it manually. In SDCC, I can use the attribute "_naked" or use #pragma callee_saves". Thanks,
"A 'driver' can be nothing more than a collection of routines that manipulate the registers for a device. It doesn't necessarily imply a task, a message queue..."
Quite so. However, the OP has previously said, "I intend to use the 'message transfer' and 'semaphore' in the RTOS..." - which does tend to suggest that he is, in fact, thinking in "Big System" terms rather than 8051-scale terms...