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

Assembly warning

Hello,

I have some lines of assembly code (see below) which work and compiled just fine in MDK 4.10.
Yesterday I installed MDk 4.14 and now the assembler comes with a warning.
How can I solve this warning?

MSR     cpsr_c, #I_Bit | Mode_IRQ ; return to IRQ mode and set I bit

warning: A1876W: Use of '|' as a synonym for the :OR: operator is deprecated.
404 0000008c MSR cpsr_c, #I_Bit | Mode_IRQ ; return to IRQ mode and set I bit

Kind regards,
Sander

Parents
  • Indeed it does - on the assumption that the reader has a clear understanding of the words "synonym" and "deprecated".

    But is that a valid assumption - especially bearing in mind that many of the users of Keil tools are not native English speakers?

    This has come up many times on this forum before, so: Do Keil need to review the "understandability" of their messages?

    Perhaps the OP could provide feedback...

    The C51 manual provides a description of each error code; eg, http://www.keil.com/support/man/docs/c51/c51_c100.htm

    In uVision, you could just click on an error message, press F1, and it'd pop up the description.

    Some are not actually very helpful, but it's a start.

    The ARM compiler manuals (as far as I can see) don't even provide this!

    :-(

Reply
  • Indeed it does - on the assumption that the reader has a clear understanding of the words "synonym" and "deprecated".

    But is that a valid assumption - especially bearing in mind that many of the users of Keil tools are not native English speakers?

    This has come up many times on this forum before, so: Do Keil need to review the "understandability" of their messages?

    Perhaps the OP could provide feedback...

    The C51 manual provides a description of each error code; eg, http://www.keil.com/support/man/docs/c51/c51_c100.htm

    In uVision, you could just click on an error message, press F1, and it'd pop up the description.

    Some are not actually very helpful, but it's a start.

    The ARM compiler manuals (as far as I can see) don't even provide this!

    :-(

Children