• "using 0" ==> weird bugs involving R0
    we just figured out that placing "using 0" after an interrupt handler definition is a bad idea. At least when using optimize 9,size, "using 0" tells the compiler not to bother pushing/popping R0. Then...
  • "using 0" ==> weird bugs involving R0
    we just figured out that placing "using 0" after an interrupt handler definition is a bad idea. At least when using optimize 9,size, "using 0" tells the compiler not to bother pushing/popping R0. Then...
  • A war story involving RL-ARM 4.05
    Hello, I dealt with this problem until this morning. It made me sweat (a little), and I'm using uv4/RL-ARM, so I thought you might be interested! It all started with upgrading RL-ARM to 4.05...
  • Extra (useless) instructions involving r7 and accumulator
    Why would the following line in C: XRAM00 |= 0x01; compile into this: mov dptr, #XRAM00 movx a, @dptr mov r7, a mov a, r7 orl a, #1 mov r7, a mov dptr, #XRAM00 mov a, r7 movx @dptr...
  • Extra (useless) instructions involving r7 and accumulator
    Why would the following line in C: XRAM00 |= 0x01; compile into this: mov dptr, #XRAM00 movx a, @dptr mov r7, a mov a, r7 orl a, #1 mov r7, a mov dptr, #XRAM00 mov a, r7 movx @dptr...