I am new to c and keil. When I try to debug my code, this error message appeared. May anyone help me to find out where I got wrong? Thanks a lot.
Here is my code:
#include <reg51.h> #include "IOPort.h" unsigned char pulse1[]={9, 3, 6, 12}; unsigned char pulse2[]={2, 3}; unsigned char pulse3[]={0, 1};
delay(int d) {
int i; for (i=0;i<d;i++); }
forward () {
int j,c,no;
for (c=0;c<25;c++)
{
no=1;
for (j=no;j>=0;j--)
P1 = pulse2[j];
delay(1000);
}
main() {
forward(); }