⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ram.c

📁 ADuC7020/26是ADI模拟公司开发的ARM7TDMI内核
💻 C
字号:
//	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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -