how to embed asm into C?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to embed asm into C?

691 Views
admin
Specialist II

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
            ENDM      

 

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?

Labels (1)
0 Kudos
1 Reply

226 Views
bigmac
Specialist III

Hello,

 

This appears to be a cross post with the 8-bit forum.  Please do not cross post.

 

Regards,

Mac

 

0 Kudos