• Useless Moves Coding Style
    There were a couple of questions regarding coding style in the previous thread. 1) The problem is that I am a strong advocate for the OOP principle of data encapsulation and inheritance. Though C...
  • useless R7
    bit CheckPacket(void) { unsigned char idata *pBuf = g_UART0Buf; unsigned char len, checksum; if (*pBuf == PACKET_START_ID / 256) { pBuf++; if (*pBuf == PACKET_START_ID % 256) { pBuf++; len...
  • useless arm asm instructions
    Note: This was originally posted on 10th December 2009 at http://forums.arm.com Hi, Still trying to learn arm asm and this time there is a construct I don't understand : void add_chunk(somestruct* ptrSomeStruct...
  • Moved
    I moved my company to Tennessee and my question is it a good idea to let keil know my new address? If so what will it do for me and why don't they have a link to do it online?
  • 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...