13.1.6 访问数据空间 访问数据空间不需要对要访问的单元预先声明,访问是通过指针的方法 实现的。 /***********************************************************/ unsigned int org,cnt,block,offset,tmp,i; org = *(unsigned int *) 0x8000; cnt = *(unsigned int *) 0x8001; block = *(unsigned int *) 0x8002; offset = *(unsigned int *) 0x8003; for (i=0; i<cnt; i++) { tmp = *(unsigned int *) (org + i); *(unsigned int *) (org + offset +i) = tmp; } /***********************************************************/ |