The GCC Compiler supports the same intrinsics that the TI CGT for MSP430 does. These are:
- unsigned short __bcd_add_short(unsigned short op1, unsigned short op2);
- unsigned long __bcd_add_long(unsigned long op1, unsigned long op2);
- unsigned short __bic_SR_register(unsigned short mask); BIC mask, SR
- unsigned short __bic_SR_register_on_exit(unsigned short mask);
- unsigned short __bis_SR_register(unsigned short mask);
- unsigned short __bis_SR_register_on_exit(unsigned short mask);
- unsigned long __data16_read_addr(unsigned short addr);
- void __data16_write_addr (unsigned short addr, unsigned long src);
- unsigned char __data20_read_char(unsigned long addr);
- unsigned long __data20_read_long(unsigned long addr);
- unsigned short __data20_read_short(unsigned long addr);
- void __data20_write_char(unsigned long addr, unsigned char src);
- void __data20_write_long(unsigned long addr, unsigned long src);
- void __data20_write_short(unsigned long addr, unsigned short src);
- void __delay_cycles(unsigned long);
- void __disable_interrupt(void); AND __disable_interrupts(void);
- void __enable_interrupt(void); AND __enable_interrupts(void);
- unsigned short __get_interrupt_state(void);
- unsigned short __get_SP_register(void);
- unsigned short __get_SR_register(void);
- unsigned short __get_SR_register_on_exit(void);
- void __low_power_mode_0(void);
- void __low_power_mode_1(void);
- void __low_power_mode_2(void);
- void __low_power_mode_3(void);
- void __low_power_mode_4(void);
- void __low_power_mode_off_on_exit(void);
- void __no_operation(void);
- void __set_interrupt_state(unsigned short src);
- void __set_SP_register(unsigned short src);
- unsigned short __swap_bytes(unsigned short src);