The same principle applies when using C code - the status register value stored on the stack needs to be manipulated. However, when writing C there is no direct access to the stack and it is not always known in what context the C compiler saved the code. In this case, all of the MSP430 C compiler vendors provide an intrinsic function to allow this stack manipulation. Shown here is the format for the function for the IAR compiler which is the compiler included with the Kickstart development tools. Other compilers have a different format and their appropriate documentation should be referenced to determine their exact format. Nevertheless, the principle is the same in C or Assembly and across all the compilers.