📄 benchmark.asm
字号:
/*****************************************************/
/* */
/* int Clock_start = count_start() */
/* int Clock_count = count_end(int Clock_start) */
/* */
/*****************************************************/
#include "def21160.h"
#include "asm_sprt.h"
.section/pm seg_pmco;
.global _count_start;
.global _count_end;
_count_start: /* call this to start cycle count */
r1=mode1;
bit clr mode1 IRPTEN;
r0=emuclk;
mode1=r1;
exit;
_count_start.end:
_count_end: /* call this to end cycle count */
r2=mode1;
bit clr mode1 IRPTEN;
r0=emuclk;
r0=r0-r4;
r1=14; /* fudge factor to compensate for overhead */
r0=r0-r1;
mode1=r2;
exit;
_count_end.end:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -