how to embed asm into C?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

how to embed asm into C?

826件の閲覧回数
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 返信

361件の閲覧回数
bigmac
Specialist III

Hello,

 

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

 

Regards,

Mac

 

0 件の賞賛
返信