Part Number: MSP430FR2311
Tool/software: Code Composer Studio
Is there a way to read core registers, for instance, R12 in C? I have a function that needs both the quotient and the reminder of a pair of values. To get both the code must do both a \ and a % operation. Both make calls to same divide routine, __mspabi_divi , but they return only one appropriate value for the needed result, either R12 for the quotient or R14 for the remainder. The other result is available the other register when the function is divide is finished. It would be great to grab the value the register without having to redo the divide.
Any ideas?
Thank you, Kent