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

[复制链接]
3108|7
 楼主| wzda_gundam 发表于 2011-10-16 20:11 | 显示全部楼层 |阅读模式
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”?
 楼主| wzda_gundam 发表于 2011-10-17 21:29 | 显示全部楼层
当然有的了.:o
香水城 发表于 2011-10-17 21:40 | 显示全部楼层
当然有的了.:o
wzda_gundam 发表于 2011-10-17 21:29


哦? 汇编码是什么?
 楼主| wzda_gundam 发表于 2011-10-17 22:35 | 显示全部楼层
123.JPG
这里是32位的.不过效果都是样的.
 楼主| wzda_gundam 发表于 2011-10-18 20:18 | 显示全部楼层
唉!~~~没人知道吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

1

主题

53

帖子

1

粉丝
快速回复 在线客服 返回列表 返回顶部
0