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
Billiant! So I need to preserve only the SP! :-) Many thanks guys!