#include sbit K1=P3^1;sbit K2=P3^0;void dealy(int k){ int i,j; for(i=k;i>0;i--) for(j=110;j>0;j--);}void main(){ int a=0xff; if(K1==0) { dealy(500); if(K1==0) { while(!(K2==0)) { P2=a; a=a>>1; dealy(1000); if(a==0x00) { P2=0x00; dealy(1000); a=0xff; } }