• Loop Problem
    Hello All, I have connected 3 LED's to P2_5, P2_6 and P2_7 ports of 89C52 uC and have the following code in Keil. #include <stdio.h> #include <at89x52.h> void nothing(); void main() { int i;...
  • 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...
  • For loop problems, two deep
    In this program, I have a function where I have two for loops. Here's an example: "for (j = 0; j < 3; j++) { for (i = 0; i < 8; i++) { time = 1612 - (4 * i); wait (); } if (j < 2) {...
  • problem with loop counter
    I have just switched to KEIL from SDCC (it just wouldn't do what I needed!). I have a startup loop that allows some sleep time while some outboard sensors warm up. While they are doing this, I'm in a...
  • A strange problem regarding pointer
    I MUST set a pointer to 0xFF0000 in code space and use instructions as follows: char code *ptr = 0xFF0000; value = *ptr; On debugging, I watch the following code from diassemble window: 11...