ram.c
来自「此文档为adi公司arm7tdmi内核的aduc70XX系列各模块的源代码」· C语言 代码 · 共 21 行
C
21 行
// Include Files
#include <ADuC7026.h>
#include<stdio.h>
// Program Counter Defintion. Allows us to access R15.
register unsigned int R15 asm ("pc");
// Function Prototype with required function attribute.
void Ram_Function(void) __attribute__ ((section (".ram_func")));
void Ram_Function()
{
//print current program counter address - currently executing from RAM!!!
printf("This is the RAM Function.\n");
printf("The Current location of the Program Counter is : 0x%08X\n",R15);
return;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?