DSP实验二
2019-07-13 14:54发布
生成海报
main()
{
int i;
unsigned int *px;
unsigned int *py;
unsigned int *pz;
px=(unsigned int *)0x4080;
py=(unsigned int *)0x4100;
for(i=0,pz=px;i<16;i++,pz++)
(*pz)=i;
for(i=0,pz=py;i<16;i++,pz++)
(*pz)=0x1234;
for(i=0;i<16;i++,px++,py++)
(*py)=(*px);
while(1)
{
}
}
-w
-stack 500
-sysstack 500
-l rts55.lib
MEMORY
{
DARAM: o=0x100, l=0x7f00
VECT: o=0x8000, l=0x100
DARAM2: o=0x8100, l=0x200
DARAM3: o=0x8300, l=0x7d00
SARAM: o=0x10000, l=0x3000
SDRAM: o=0x40000, l=0x3e0000
}
SECTIONS
{
.text: {} > DARAM
.vectors: {} > VECT
.trcinit: {} > DARAM
.gblinit: {} > DARAM
frt: {} > DARAM
.cinit: {} > DARAM
.pinit: {} > DARAM
.sysinit: {} > DARAM
.bass: {} > DARAM3
.far: {} > DARAM3
.const: {} > DARAM3
.switch: {} > DARAM3
.sysmem: {} > DARAM3
.cio: {} > DARAM3
.MEMSobj: {} > DARAM3
.sysheap: {} > DARAM3
.sysstack {} > DARAM3
.stack: {} > DARAM3
}
打开微信“扫一扫”,打开网页后点击屏幕右上角分享按钮