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
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!