这些小活动你都参加了吗?快来围观一下吧!>>
电子产品世界 » 论坛首页 » 嵌入式开发 » MCU » [讨论]bb40的bootloader的源程序代码

共1条 1/1 1 跳转至

[讨论]bb40的bootloader的源程序代码

菜鸟
2005-01-18 19:24:08     打赏

在有关堆栈的设置中,我不明白下段代码的意思

往高手指教:

sub sp,sp,#4 ;decrement sp(to store jump address) stmfd sp!,{r0} ;PUSH the work register to stack(lr does't push because it return to original address) ldr r0,=$HandleLabel;load the address of HandleXXX to r0 ldr r0,[r0] ;load the contents(service routine start address) of HandleXXX str r0,[sp,#4] ;store the contents(ISR) of HandleXXX to stack ldmfd sp!,{r0,pc} ;POP the work register and pc(jump to ISR)

多谢。有谁想要完整的源代码,我可以提供




关键词: 讨论     bootloader     源程序     代码    

共1条 1/1 1 跳转至

回复

匿名不能发帖!请先 [ 登陆 注册 ]