how to embed asm into C?

Discussion created by ToBeNoOne on Jun 4, 2010
Latest reply on Jun 4, 2010 by bigmac

Dear all:


i want to generate an illigal operation to force the mcu to reset, and in the asm the code looks like this:

ILOP      MACRO    
            DC.B    $8d             ; this is illegal operation code


but when i use C, i don't know how to embed this code in to my program. i tried several ways and it still can not be compiled.


could anyone help me?