test.spc
来自「uCOSII在motorala单片机上的移植」· SPC 代码 · 共 28 行
SPC
28 行
/************************************************************************
Example specification file for the 68000 family. This example
assumes ROM is at address 0x0000 and RAM is at address 0xC0000.
Region "data" (which contains initialized RAM variables) must
be linked into RAM to give the variables their correct addresses,
but will be downloaded into ROM at location DATA using downloader
option "-m data,DATA". Startup code will copy it from location
DATA back into RAM.
************************************************************************/
partition { overlay {
region {} reset[addr=0]; /* reset vector */
region {} vects[addr=8]; /* other vectors */
region {} code; /* executable code */
region {} init; /* pointers to C++ init thunks */
region {} exit; /* pointers to C++ exit thunks */
region {} string; /* constant strings */
region {} const; /* constant data */
DATA = $; /* where to download region data */
} o1; } ROM[addr=0x0];
partition { overlay {
region {} data[roundsize=4]; /* RAM to be initialized on reset */
region {} ram[roundsize=4]; /* RAM to be zeroed on reset */
region {} malloc[size=0x1000]; /* RAM available to malloc() */
region {} stack[size=0x3000]; /* stack of at least 0x1000 bytes */
_STKTOP = $; /* stack pointer reset value */
} o2; } RAM[addr=0x28000]; /*0x30000*/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?