#include <reg52.h>
#define RAM_START *(( unsigned char *)0x01
void Memory_Memset(unsigned char idata *pRam, unsigned char mChar, unsigned char mLen)
{
while (mLen--)
{
*pRam++=mChar;
}
}
//-----------------------------------------------------------
void main(void)
{
//系统模块初始化
Memory_Memset(&RAM_START, 0xFF, 0x7F);//内存初始化
while(1)
{
}
} |