主题 : 用汇编写程序时候出错 复制链接 | 浏览器收藏 | 打印
“独学而无友,则孤陋寡闻”
级别: 新手上路
UID: 8792
精华: 0
发帖: 32
金钱: 185 两
威望: 52 点
综合积分: 64 分
注册时间: 2009-09-06
最后登录: 2011-10-23
楼主  发表于: 2010-01-06 20:53

 用汇编写程序时候出错

       指令时这样的:mov  r1,#0xffffffef     就出现了invalid constant (ffffffef) after fixup   谁能告诉我为什么? 我用arm-linux -gcc 编译的
“独学而无友,则孤陋寡闻”
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2010-01-06 21:06
mov指令不支持0xffffffef这样的立即数,如果你一定能要用,用ldr代替
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."