• Break condition in while loop
    Following is my program. I am trying to read characters at different baud rate and if no character is received within 10 seconds I want to break out of the loop and similarly if any character other than...
  • if condition
    Hello, I was compiling my firmware program written in C using Keil microVision2 V2.4 compiler. The target is c8051F120 microcontroller. I noticed that the compiler accepted the following: if...
  • For loop
    can i use the for loop like this in accessing the 2-d array. for(u=0;u<=4;u++) { for(v=v1;;) { arr[u][v] += 1; } } bcos in the second for loop i want to do the increment in some other...
  • "conditional source"
    cross posted at 8052.com I have a module, which is used in four different products, that has way too many #ifdef's to be readable in debug and, at the same time, there is so much common code that making...
  • assembler conditional
    00DE 18 IXLENGTH equ 222; 19 20 21 $IF ((LOW IXLENGTH) = 0 ) 0000 7E00 22 mov r6,#HIGH IXLENGTH 23 $ELSE mov r6,#((HIGH IXLENGTH) +1) $ENDIF 26 27 0100 28 XLENGTH equ 256; 29 30 31...