arduinohabib:
P.S. here's some more code with the "display function:PORTD = PORTD & 0x00
PORTD = display[x];
This looks like an array named 'display' is being indexed by the variable named 'x'. Again, I don't see a declaration of 'display' or 'x' so I can't be sure.