比较就可以了。C语言:unsigned char recives(void){unsigned char ch;while(RI==0);RI=0;ch=SBUF;if(ch=='A')return(1);else return(0);}汇编:RECIVES:JNB RI,$CLR RIMOV A,SUBFCJNE A,#'A',RENOSETB CRETRENO:CLR CRET
程序在哪里?