在下面这段程序中 void SendData(void) { char old_SFRPAGE ; while(fsbz); fsbuf[0] = 0x55; fsbuf[1] = 0xaa; fsbuf[2] = *((unsigned char *)&result+0); fsbuf[3] = *((unsigned char *)&result+1); fsjsq=0; fsbz=1; //发送前置标识,表明正在发送 old_SFRPAGE = SFRPAGE; SFRPAGE = UART0_PAGE; // Switch to UART0 page REN0=0; //发送时,关闭接收 SBUF0=fsbuf[fsjsq]; SFRPAGE = old_SFRPAGE; } 关于下面这两个语句,不太明白,望高手指点!谢谢 fsbuf[2] = *((unsigned char *)&result+0); fsbuf[3] = *((unsigned char *)&result+1); |