access-softek / msp430-clang

0 stars 2 forks source link

Teach assembly parser to recognize "{" as line separator #58

Closed chbessonova closed 5 years ago

chbessonova commented 5 years ago

Found in msp430-gcc/include/in430.h (from "support files packet" provided by TI) while building Contiki

    __asm__ __volatile__ ("bis.w %0, SR { nop" \
        : : "ri"((unsigned int) x) \
    )

From gcc docs:

Multiple statements can appear on the same line provided that they are separated by the ‘{’ character.
asl commented 5 years ago

weird :)