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

📄 main.asm

📁 基于visual dsp++开发环境
💻 ASM
字号:
/*****************************************************************************
**																																					**
**	 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -