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

📄 discpu_func.s

📁 凌阳SPCE3200多媒体开发板自带源程序。共安排了32个子目录
💻 S
字号:
//9f000010:	 	b		 <discpu_clk_func>
//9f000014:	 	b		 <discpu_miu_clk_func>
//9f000018:	 	b		 <discpu_miu_clk_pll_func>
//9f00001c:	 	b		 <cpu_poweronn_func>
//9f000020:	 	b		 <cpu_warmrstn_func>
//9f000024: 	b		 <change_clk_func>


#jumpto_extrom_discpu_clk
	.global	jumpto_extrom_discpu_clk
jumpto_extrom_discpu_clk:
	ldis	r8, 0x9f00
	ori	r8, 0x0010
	br	r8

#jumpto_extrom_discpu_miu_clk
	.global	jumpto_extrom_discpu_miu_clk
jumpto_extrom_discpu_miu_clk:   
	ldis	r8, 0x9f00
	ori	r8, 0x0014
	br	r8

#jumpto_extrom_discpu_miu_clk_pll
	.global	jumpto_extrom_discpu_miu_clk_pll
jumpto_extrom_discpu_miu_clk_pll:   
	ldis	r8, 0x9f00
	ori	r8, 0x0018
	br	r8

@jumpto_extrom_cpu_poweronn
	.global	jumpto_extrom_cpu_poweronn
jumpto_extrom_cpu_poweronn:   
	ldis	r8, 0x9e00
	ori	r8, 0x001C
	br	r8

#jumpto_extrom_cpu_warmrstn
	.global	jumpto_extrom_cpu_warmrstn
jumpto_extrom_cpu_warmrstn:   
	ldis	r8, 0x9f00
	ori	r8, 0x0020
	br	r8

#jumpto_extrom_change_cpuclk
	.global	jumpto_extrom_change_cpuclk
jumpto_extrom_change_cpuclk:   
push_stack:	
	subi	SP, 28
	sw	S0, [SP,0]
	sw	S1, [SP,4]
	sw	S2, [SP,8]
	sw	S3, [SP,12]
	sw	S6, [SP,16]
	sw	S7, [SP,20]
	sw	LR, [SP,24]
		
	li	S1,0x9f000024
	brl	S1
	
pop_stack:		
	lw	S0, [SP,0]
	lw	S1, [SP,4]
	lw	S2, [SP,8]
	lw	S3, [SP,12]
	lw	S6, [SP,16]
	lw	S7, [SP,20]
	lw	LR, [SP,24]
	addi	SP, 28
	br LR

	nop
	nop

//the push_stack and pop_stack:
//should be add SPG290 VerB internal BOOTROM
//because the BOOTROM will change these registers value

⌨️ 快捷键说明

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