?? boot.s
字號:
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 + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -