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
  • "But is that a valid assumption - especially bearing in mind that many of the users of Keil tools are not native English speakers?"

    It's not just native speakers who can have problems with such things.

    Many moons ago, when I'd progressed from simple APPLESOFT BASIC test programs to proper tools, I remember seeing an error message being generated from the linker along the lines of:

    Symbol XYZ multiply defined
    

    I remember reading the word multiply as in 2 times 2. It took me a while to realise what it was trying to indicate.

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

    It's not just native speakers who can have problems with such things.

    Many moons ago, when I'd progressed from simple APPLESOFT BASIC test programs to proper tools, I remember seeing an error message being generated from the linker along the lines of:

    Symbol XYZ multiply defined
    

    I remember reading the word multiply as in 2 times 2. It took me a while to realise what it was trying to indicate.

Children