📄 main.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 + -