📄 ram.c
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -