boot.s
来自「pxa270驱动程序」· S 代码 · 共 116 行
S
116 行
IMPORT postDelay
IMPORT post_initGpio
IMPORT mainFun
IMPORT post_LcdController
IMPORT backlight_cs
IMPORT lcdlight
IMPORT stack_myself
IMPORT init_Memory
;IMPORT initScreen
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, =initScreen
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,=mainFun
END
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?