main.asm
来自「基于visual dsp++开发环境」· 汇编 代码 · 共 65 行
ASM
65 行
/*****************************************************************************
** **
** Name: Cache_Example.dpj **
** **
******************************************************************************
Analog Devices, Inc. All rights reserved.
File Name: main.asm
Date Modified: 11/21/05 Rev 2.0
Hardware: ADSP-BF537 EZ-KIT Board Rev 1.3
ADSP-BF537 Silicon Rev. 0.2
Special Connections: None
Purpose: To demonstrate configuring and enableing cache features.
Program Parameters:
******************************************************************************/
#include <defBF537.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;
csync;
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 + =
减小字号Ctrl + -
显示快捷键?