帮忙解释一下这个语句被#include<reg51.h> #include<intrins.h> #define unit unsigned int #define uchar 20
unsignedchar#definekeyP1#defineledP0sbitt1s=key^7;sbitt2s=key^6;sbitt3s=key^5;sbitt4s...
unsigned char
#define key P1
#define led P0
sbit t1s=key^7;
sbit t2s=key^6;
sbit t3s=key^5;
sbit t4s=key^4;
unit d,i;
uchar be;
T1_int() interrupt 3{
TH1=15536/256;
TL1=15536%256;
i++;}
delay(){
while(i<=d);
i=0;}
main() {
TH1=15536/256;
TL1=15536%256;
TMOD=0x10,TR1=1;
EA=1,ET1=1,i=0;
loop1:d=1,be=key;
be=~be,be&=0x0f;
loop2:led=be,be=_cror_(be,1);
if(t1s==0){d=30;goto loop3;}
if(t2s==0){d=50;goto loop3;}
if(t3s==0){d=70;goto loop3;}
if(t4s==0) d=90;
else goto loop1;
loop3:delay();
goto loop2;} 展开
#define key P1
#define led P0
sbit t1s=key^7;
sbit t2s=key^6;
sbit t3s=key^5;
sbit t4s=key^4;
unit d,i;
uchar be;
T1_int() interrupt 3{
TH1=15536/256;
TL1=15536%256;
i++;}
delay(){
while(i<=d);
i=0;}
main() {
TH1=15536/256;
TL1=15536%256;
TMOD=0x10,TR1=1;
EA=1,ET1=1,i=0;
loop1:d=1,be=key;
be=~be,be&=0x0f;
loop2:led=be,be=_cror_(be,1);
if(t1s==0){d=30;goto loop3;}
if(t2s==0){d=50;goto loop3;}
if(t3s==0){d=70;goto loop3;}
if(t4s==0) d=90;
else goto loop1;
loop3:delay();
goto loop2;} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询