所写代码如下:


#include <stdio.h>

int main()
{

  unsigned char *a;
  int i=1000;
  a=(unsigned char*)0x0000B000;
 // printf("%d/n",*a);
 while(i>0)
 {
 i--;
 printf("%d/n",*a++);
 
 
 }
  return 0;
}

ccs 默认的加载内存数据和保存内存数据的起始地址为0x00000B00,经试验发现每次都被重新覆盖,所以将其地址改为0x0000B000,发现是可以的。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-25
  • 2021-08-07
  • 2021-11-19
  • 2021-06-07
猜你喜欢
  • 2022-12-23
  • 2022-03-06
  • 2022-12-23
  • 2022-01-30
  • 2021-10-08
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案