我是靠谱客的博主 哭泣秋天,最近开发中收集的这篇文章主要介绍MSP430 CCS C程序里面嵌入asm,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

asm("mov 	#01100h,PC		");

编译失败

warning: "../cmd.c", line 56: Assembly statement "mov 	#01100h,PC		" creates a label, which may not be what was intended. Use a colon after a label or a space before a non-label to silence the warning.
warning: "../cmd.c", line 61: Assembly statement "nop" creates a label, which may not be what was intended. Use a colon after a label or a space before a non-label to silence the warning.
warning: "../cmd.c", line 56: Assembly statement "mov 	#01100h,PC		" creates a label, which may not be what was intended. Use a colon after a label or a space before a non-label to silence the warning.
warning: "../cmd.c", line 61: Assembly statement "nop" creates a label, which may not be what was intended. Use a colon after a label or a space before a non-label to silence the warning.
"C:UsersweijiAppDataLocalTemp1305610", ERROR!   at line 436: [E0002] Illegal mnemonic specified
	mov 	#01100h,PC		


Errors in Source - Assembler Aborted
gmake: *** [cmd.obj] Error 1
gmake: Target 'all' not remade because of errors.

加一个t tab键,编译就过了。

asm("	mov 	#01100h,PC		");

最后

以上就是哭泣秋天为你收集整理的MSP430 CCS C程序里面嵌入asm的全部内容,希望文章能够帮你解决MSP430 CCS C程序里面嵌入asm所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(62)

评论列表共有 0 条评论

立即
投稿
返回
顶部