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

📄 boot.s

📁 pxa270驱动程序
💻 S
字号:
	IMPORT	postDelay
	IMPORT	post_initGpio
	IMPORT	dummyOs
         IMPORT   post_LcdController
         IMPORT   backlight_cs
         IMPORT   lcdlight 
         IMPORT   stack_myself
         IMPORT   init_Memory
         IMPORT   screen_clean


	AREA boot ,CODE ,READONLY

	ENTRY

	b post
	nop
	nop
	nop

;0x10
	nop
	nop
	nop
	nop

;0x20
	nop
	nop
	nop
	nop

;0x30
	nop
	nop
	nop
	nop

;0x40
	nop
	nop
	nop
	nop

;0x50
	nop
	nop
	nop
	nop

;0x60
	nop
	nop
	nop
	nop

;0x70
	nop
	nop
	nop
	nop

;/////////
;this post routine body
;////////

post

         mov r14,pc
	ldr pc,=post_initGpio  

	mov r14,pc
 	ldr pc,=init_Memory

         ldr r11, =stack_myself
         mov r13, r11

         mov r14,pc
         ldr pc, =screen_clean


         mov r14,pc
         ldr pc,=post_LcdController

 
;//////////////////

	ldr r0,=postDelay

postLoop	
	sub r0,r0,#0x1
	cmp r0,#0x0
	bne postLoop




	MOV          R0,#0xa000000		;turn on the light of board
	LDRH          R2,[R0,#0]
	AND 	R2,R2,#0xFFFFCFFF
	STRH          R2,[R0,#0]

	MOV          R0,#0xa000000
	LDRH          R2,[R0,#0]		;turn on backlight
	ORR 	R2,R2,#0x100
	STRH          R2,[R0,#0]

        

	ldr pc,=dummyOs
	END




⌨️ 快捷键说明

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