SLAA534A June 2013 – June 2020
The following functions take 2 64-bit values:
For MSP430 and MSP430X, these functions have a special calling convention. The first argument is in R8::R11 and the second argument is in R12::R15. That is:
First argument word 0 (LSW): R8
First argument word 1 : R9
First argument word 2 : R10
First argument word 3 (MSW): R11
Second argument word 0 (LSW): R12
Second argument word 1 : R13
Second argument word 2 : R14
Second argument word 3 (MSW): R15
Furthermore, for many of the helper functions, the library implementation must take care not to modify certain registers.
See Section 3.4.5 for more about how large arguments are stored in registers.