新手:关于用KEIL 调试中的问题,请高手看过来
我用KEIL调试以下程序是出现这样的对话框提示:
Error:Could not load file 'C:\Documents and Settings\adminstrator\My Documents\DIANJI'
Debugger aborted!
请帮我看看这是什么原因吧,我的程序如下:#include <reg51.h>
#define DL 500;
#define DR 1;
#define uchar unsigned char;
#define uint unsigned int;
void dlms (uint x);
void ctrl (cf,n){
bit cf;
uint n;
{ uint i;
uchar j=0x01;
if (cf=0) for (i=0;i <n;i++)
{P1 = j;
dlms (DL);
j=j < <1;
if ((j==0x04)) j=0x01;
}
else
{for (i=0;i <n;i++)
{P1 = j;
dlms (DL);
j=j> > 1;
if (j==0) j=0x04;
}
}
}
void main (void)
{
if (DR==1) ctrl(1,100);
else ctrl(0,100);
}
发表时间:2004年7月23日11:08:19