单片机是MSP430F149
代码如下:
void NF_WriteAdder3(unsigned int block,unsigned int page)
{
unsigned long blockPage; //页地址
blockPage = (block << 14) + (page << 9); //实际地址
。。。。
请教,和以下写法结果相同吗?
unsigned long lTemp;
lTemp = block;
lTemp <<= 14;
blockPage = lTemp;
lTemp = page;
lTemp <<= 9;
blockPage + = lTemp;
恳请指教。
|