We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
We have an assembler function, which when called from C, some or all registers may be trashed. Saving and then restoring them is an option but it takes too much RAM. Is there a directive which tells the compiler that registers may be trashed when a certain function is called? Thanks in advance, Gary Partis
not even PSW (CY, OVF etc) Erik
I think Eric is right. The only things that are assumed to be conserved are the SP and the currently selected register bank.
Billiant! So I need to preserve only the SP! :-) Many thanks guys!