打印

MDK 4.11编译器的一个奇怪的现象.不知道谁能解释

[复制链接]
2058|7
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
START
    nop

    AND R3,R1,#0xff00ff00
    AND R3,R1,#0x00ff00ff
    AND R3,R1,#0x00ffff00
    AND R3,R1,#0xff0000ff

    ORR R3,R1,#0xff00ff00
    ORR R3,R1,#0x00ff00ff
    ORR R3,R1,#0x00ffff00
    ORR R3,R1,#0xff0000ff

    AND R3,R1,#0x00000100
    AND R3,R1,#0x00000101

    END

Build target 'Target 1'
assembling 123.asm...
123.asm(11): error: A1616E: Instruction, offset, immediate or register combination is not supported by the current instruction set
123.asm:    11 00000012  AND R3,R1,#0x00ffff00
123.asm(12): error: A1616E: Instruction, offset, immediate or register combination is not supported by the current instruction set
123.asm:    12 00000012  AND R3,R1,#0xff0000ff
123.asm(16): error: A1616E: Instruction, offset, immediate or register combination is not supported by the current instruction set
123.asm:    16 0000001a  ORR R3,R1,#0x00ffff00
123.asm(17): error: A1616E: Instruction, offset, immediate or register combination is not supported by the current instruction set
123.asm:    17 0000001a  ORR R3,R1,#0xff0000ff
123.asm(20): error: A1616E: Instruction, offset, immediate or register combination is not supported by the current instruction set
123.asm:    20 0000001e  AND R3,R1,#0x00000101
123.asm: 5 Errors, 0 Warnings
Target not created
沙发
香水城| | 2011-10-17 08:38 | 只看该作者
什么现象?怎么奇怪?

使用特权

评论回复
板凳
wzda_gundam|  楼主 | 2011-10-17 19:46 | 只看该作者
呃.
相同的两个指令.一个没问题.一个报错
AND R3,R1,#0x00000100
AND R3,R1,#0x00000101

123.asm(20): error: A1616E: Instruction, offset, immediate or register combination is not supported by the current instruction set
123.asm:    20 0000001e  AND R3,R1,#0x00000101

AND R3,R1,#0xff00ff00
AND R3,R1,#0x00ffff00

123.asm(11): error: A1616E: Instruction, offset, immediate or register combination is not supported by the current instruction set
123.asm:    11 00000012  AND R3,R1,#0x00ffff00

使用特权

评论回复
地板
香水城| | 2011-10-17 21:19 | 只看该作者
哦,LZ可以看看Cortex-M3的指令系统,能否有这样的指令“AND R3,R1,#0x00000101”?

使用特权

评论回复
5
wzda_gundam|  楼主 | 2011-10-17 21:29 | 只看该作者
当然有的了.:o

使用特权

评论回复
6
香水城| | 2011-10-17 21:40 | 只看该作者
当然有的了.:o
wzda_gundam 发表于 2011-10-17 21:29


哦? 汇编码是什么?

使用特权

评论回复
7
wzda_gundam|  楼主 | 2011-10-17 22:35 | 只看该作者

这里是32位的.不过效果都是样的.

使用特权

评论回复
8
wzda_gundam|  楼主 | 2011-10-18 20:18 | 只看该作者
唉!~~~没人知道吗?

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

1

主题

53

帖子

1

粉丝