求大神用keil写程序出现问题 老是提示我include<reg51.h>有问题
这是程序include<reg51.h>#include<intrins.h>#defineucharunsignedchar#defineunitunsignedint...
这是程序
include<reg51.h>
#include<intrins.h>
#define uchar unsigned char
#define unit unsigned int
uchar code M[][8]=
{
{0x02,0xba,0x7a.0x3f,0x7a,0xba,0x02.0x00},
{0x00,0x01,0xfe,0x28,0xef,0x28,0x00,0x00},
{0x28,0x30,0x7e,0x34,0x38,0x38,0x04,0x04},
{0x01,0xfe,0xa9,0xfe,0xa8,0xa8,0xff,0x00},
{0x01,0xfe,0xa9,0xfe,0xa8,0xa8,0xff,0x00},
}
uchar i,j;
void main()
{ P0=0xff;
P1=0xff;
TMOD=0x01;
TH0=(65536-2000)/256;
TL0=(65536-2000)%256;
IT0=1;
IE=0x83;
while(1);
}
//TO中断控制点阵屏显示
void show_Dot_Matrix()interrupt 1
{
TH0=(65536-2000)/256;
TL0=(65536-2000)%256;
P0=0xff;
P0=~M[i][j];
P1=_crol_(P1,1);
j=(j+1)%8
}
void Key_Down() interrupt 0
{
P0=0xff;
P1=0x80;
j=0;
i=(i+1)%5;
TRO=1
}
为什么老是提示我SHEJI.C(1):ERROR C129:missing ':'before'<'就是第一句话我改完了就出现2个错误了~~ 展开
include<reg51.h>
#include<intrins.h>
#define uchar unsigned char
#define unit unsigned int
uchar code M[][8]=
{
{0x02,0xba,0x7a.0x3f,0x7a,0xba,0x02.0x00},
{0x00,0x01,0xfe,0x28,0xef,0x28,0x00,0x00},
{0x28,0x30,0x7e,0x34,0x38,0x38,0x04,0x04},
{0x01,0xfe,0xa9,0xfe,0xa8,0xa8,0xff,0x00},
{0x01,0xfe,0xa9,0xfe,0xa8,0xa8,0xff,0x00},
}
uchar i,j;
void main()
{ P0=0xff;
P1=0xff;
TMOD=0x01;
TH0=(65536-2000)/256;
TL0=(65536-2000)%256;
IT0=1;
IE=0x83;
while(1);
}
//TO中断控制点阵屏显示
void show_Dot_Matrix()interrupt 1
{
TH0=(65536-2000)/256;
TL0=(65536-2000)%256;
P0=0xff;
P0=~M[i][j];
P1=_crol_(P1,1);
j=(j+1)%8
}
void Key_Down() interrupt 0
{
P0=0xff;
P1=0x80;
j=0;
i=(i+1)%5;
TRO=1
}
为什么老是提示我SHEJI.C(1):ERROR C129:missing ':'before'<'就是第一句话我改完了就出现2个错误了~~ 展开
2个回答
展开全部
帮你都改好了,你自己看看
#include <reg51.h>
#include <扰辩intrins.h>
#define uchar unsigned char
#define unit unsigned int
uchar code M[][8]={ {0x02,0xba,0x7a,0x3f,0x7a,0xba,0x02,0x00}, {0x00,0x01,0xfe,0x28,0xef,0x28,0x00,0x00}, {0x28,0x30,0x7e,0x34,0x38,0x38,0x04,0x04}, {0x01,0xfe,0xa9,0xfe,0xa8,0xa8,0xff,0x00}, {0x01,0xfe,0xa9,0xfe,0xa8,0xa8,0xff,0x00} };
uchar i,j;
void main()
{
P0=0xff;
P1=0xff;
TMOD=0x01;
TH0=(65536-2000)/256;
TL0=(65536-2000)%256;
IT0=1; IE=0x83;
while(1);
}
//TO中断控制点阵缓培缺屏中薯显示
void show_Dot_Matrix()interrupt 1
{
TH0=(65536-2000)/256;
TL0=(65536-2000)%256;
P0=0xff; P0=~M[i][j];
P1=_crol_(P1,1);
j=(j+1)%8;
}
void Key_Down() interrupt 0
{
P0=0xff;
P1=0x80;
j=0;
i=(i+1)%5;
TR0=1;
}
#include <reg51.h>
#include <扰辩intrins.h>
#define uchar unsigned char
#define unit unsigned int
uchar code M[][8]={ {0x02,0xba,0x7a,0x3f,0x7a,0xba,0x02,0x00}, {0x00,0x01,0xfe,0x28,0xef,0x28,0x00,0x00}, {0x28,0x30,0x7e,0x34,0x38,0x38,0x04,0x04}, {0x01,0xfe,0xa9,0xfe,0xa8,0xa8,0xff,0x00}, {0x01,0xfe,0xa9,0xfe,0xa8,0xa8,0xff,0x00} };
uchar i,j;
void main()
{
P0=0xff;
P1=0xff;
TMOD=0x01;
TH0=(65536-2000)/256;
TL0=(65536-2000)%256;
IT0=1; IE=0x83;
while(1);
}
//TO中断控制点阵缓培缺屏中薯显示
void show_Dot_Matrix()interrupt 1
{
TH0=(65536-2000)/256;
TL0=(65536-2000)%256;
P0=0xff; P0=~M[i][j];
P1=_crol_(P1,1);
j=(j+1)%8;
}
void Key_Down() interrupt 0
{
P0=0xff;
P1=0x80;
j=0;
i=(i+1)%5;
TR0=1;
}
追问
谢谢大神 我去编译一下
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
第一句前面加个#
更多追问追答
追问
我尝试了结果错误变成8个了
追答
改成#include
8个错误那就是你的程序写的有问题
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询