Does this really work for you? If so, with what mspgcc version? For me, that's exactly what didn't work - I found that argument to interrupt() (which translate to argument to __attribute__()) should be literal int, nothing else.