帮忙看下一段程序,就是将0200H~05FFH的RAM清除!
这样写对不对,因为感觉应该是写字的,Address每次是不是应该+2啊?
unsigned int *ptr;
unsigned int Address;
Address=0x200; //Clear the data of RAM (0200H ~ 05FFH)
ptr=(char *)Address;
*ptr=0;
for(Address;Address<0x600;Address+=1)
{
ptr=(char *)Address;
*ptr=0;
}