|
#include<reg51.h>
#include<stdio.h>
#define uchar unsigned char
#define uint unsigned int
uchar data a[32]_at_0x30;
uint i_at_0x55;
void DelayMS(uint ms)
{
uchar t;
while(ms--) for(t=0;t<120;t++);
}
void main()
{
SP=0x60;
SCON=0x52;
TMOD=0x20;
TH1=0xf3;
TR1=1;
for(i=0;i<32;i++)
{
a[ i]=i;
printf("It is :5%d now.\n",i);
DelayMS(20000);
}
whlie(1);
}
這是我在KEIL中編寫的程序,但是在編譯的時候出現(xiàn)了錯誤,就是紅色的那一行:uchar data a[32]_at_0x30;
錯誤顯示為esimlab3.c(5): error C129: missing ';' before '_at_0x30'。我有點不理解,求大神指教小白
|
|