Using Code Composer Studio, version 4.2.0, with a MSP430 USB-Debug-Interface box and MSP430F5438.
See attached screen captures. variable Register is 0x0001 in screen capture 1. Step into the function, Register is 0x1C20. Should be 0x0001. Then the code execution is incorrect and the value passed into the function is incorrect.