This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Register bank usage.

Hello,
I want to know how to stop the linker from storing variables(or parameters) in the register bank memory space(locations 0 through 1FH -3 2 bytes).
The NOREGPARMS directive isn't entirely useful since only function parameters are stopped from being stored in the register banks.
I can think of one way by declaring 4 dummy functions each with the using function attribute of register bank 0, 1, 2 and 3 so that variables are stored only after the register bank memoryspace.
Can somebody please tell me a better way to accomplish this?
Thanks and warm regards,
Sundeep