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

📄 main.asm

📁 这是EBF533试验板的源代码和使用说明手册
💻 ASM
字号:
#include "defBF533.h"

// Define extern functions
.extern cache_init;
.extern my_program;

.global _main;

.section L1_code;
_main:

//  initilize and enable data and/or instruction cache
//  based on #defines in cache_init.h
	call cache_init;   
	
//  enable cycle counters
	r0 = SYSCFG;
	bitset (r0, SYSCFG_CCEN_P);
	SYSCFG = r0;
	
//  clear cycle counters to zero
	r0 = 0x0;
	cycles2 = r0;
	cycles = r0;
	
	call.x my_program;

//  read final cycle count
	r1 = cycles2;
	r0 = cycles;
	

end: idle;
jump end;  // Example done

_main.end:


⌨️ 快捷键说明

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