This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

mul instruction

hello while using MUL(Thumb)instruction in the keil i am getting the error: A1477W: This register combination results in UNPREDICTABLE behaviour,the code written is given below

area th,code entry
THUMB mov r0,#0x12 mov r1,#0x02 mul r1,r0
loop b loop end

So can anybody give me the reason and solution how to recover from this error...

Parents
  • Thank you very much for your valuable suggestion,as per your suggestion i have done the changes in my program given below but still i am getting the same error(This register combination results in UNPREDICTABLE behaviour)
    area thu,code
    entry
    THUMB mov r1,#0x02 mov r2,#0x02 mul r1,r2 mov r3,r1;store result in other register
    loop b loop
    end

    so i kindly request you to do the correction in my program above...

Reply
  • Thank you very much for your valuable suggestion,as per your suggestion i have done the changes in my program given below but still i am getting the same error(This register combination results in UNPREDICTABLE behaviour)
    area thu,code
    entry
    THUMB mov r1,#0x02 mov r2,#0x02 mul r1,r2 mov r3,r1;store result in other register
    loop b loop
    end

    so i kindly request you to do the correction in my program above...

Children