ram.c

来自「ADuC7020/26是ADI模拟公司开发的ARM7TDMI内核」· C语言 代码 · 共 29 行

C
29
字号
//	Include Files	

#include <ADuC7026.h>
#include<stdio.h>

//	Function Prototypes

void Ram_Function(void);

extern int getPC (void);



void Ram_Function() __ram 		  // __ram attribute indicates that the code is to be placed in RAM
{

	register unsigned int PC;	

	//print current program counter address - currently executing from RAM!!!
	printf("This is the RAM Function.\n");
	PC = getPC();	 // Getting current locatin of Program Counter  (Register R15)
	printf("The Current location of the Program Counter is : 0x%08X\n",PC);

	return;
}



⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?