how to embed asm into C?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

how to embed asm into C?

827 次查看
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?

标签 (1)
0 项奖励
回复
1 回复

362 次查看
bigmac
Specialist III

Hello,

 

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

 

Regards,

Mac

 

0 项奖励
回复