main.asm

来自「这里面有很多dsp应用程序源码」· 汇编 代码 · 共 41 行

ASM
41
字号
*BOOTLOAD
;main module
;======================== main.asm =========================
;       
		.mmregs
		.ref _c_int00
		
		.include c54.inc
		.ref c54init
		.ref erase_flash,prog_flash,boot_table
		
		.align  0x10
		.text
		
_c_int00:    
        .bss  led ,1
		
		
        STM #0x0d00,SP           	
		CALL c54init
		
		ST #0xfff0,*(led)
		PORTW *(led),0x8002
		
		CALL boot_table
		CALL erase_flash
		CALL prog_flash
		
		ST #0xfff0,*(led)
		PORTW *(led),0x8002
		
		
loop:	
		NOP
		NOP

		NOP
		NOP
        B loop
        .end                            
     

⌨️ 快捷键说明

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