📄 startup.s
字号:
;/*
;*********************************************************************************************************
;* File Name:Startup.s
;//* Description: for Cn.oS.
;* Author:kaka (sn.kaka@yahoo.com).
;*********************************************************************************************************
;*/ ;the key world IMPORT means that
;the function "HandlerReset" is in other file
;not in current file,it looks like #include
IMPORT HandlerReset ;//关键字IMPORT表示后面的HandlerReset
;//在其他文件中定义但是在本文件
;//中可能会对其引用,有点像C 语言中的
;//#include
IMPORT HandlerIRQ
IMPORT HandlerFIQ
IMPORT HandlerEINT0
IMPORT HandlerEINT1
IMPORT HandlerEINT2
IMPORT HandlerEINT3
IMPORT HandlerEINT4567
IMPORT ISR_Timer5
IMPORT HandlerURXD0
IMPORT TIMER_5
IMPORT Undef
IMPORT SWI
IMPORT P_abort
IMPORT D_abort ;//the function NONE is only for debug
IMPORT NONE ;//这个函数仅仅是为了在
;//系统出错时不致于找不到北
EXPORT RStartup ;the function EXPORT said that the function
;"RStartup" is create in current file ,and it can
;be called in other file,it looks like the extern in C
;//表示"RStartup"是本文件定义的
;//可以被其他文件调用
;//有点像 extern
AREA startup,CODE,READONLY
CODE32
ENTRY
RStartup
;programme Enter,when the CPU
;power on, here is this the first
;instruction,then CPU will go to
;function named HandlerReset
;you will find it in 44b0x\startup\reset.s
LDR PC, =HandlerReset ;//程序的入口,也就是说
;//CPU上电后执行的第一条指令
;
;//告诉CPU跳转到HandlerReset执行
;//可以在44b0x\startup\reset.s中找到
;//HandlerReset的内容
B Undef ; handler Undef
B SWI ; SWI interrupt handler
B P_abort ; Handler Programme abort
B D_abort ; Handler Data abort
B . ; handlerReserved
LDR PC, =HandlerIRQ
LDR PC, =HandlerFIQ
LDR PC, =HandlerEINT0 ; 0x20
LDR PC, =HandlerEINT1
LDR PC, =HandlerEINT2
LDR PC, =HandlerEINT3
LDR PC, =HandlerEINT4567
b NONE ; 0x34=HandlerTICK
B NONE
B NONE
b NONE ; 0x40=HandlerZDMA0
b NONE ;=HandlerZDMA1
b NONE ;=HandlerBDMA0
b NONE ;=HandlerBDMA1
b NONE ;=HandlerWDT
b NONE ; 0x54
B NONE
B NONE
b NONE ; 0x60
b NONE
b NONE
b NONE
b NONE
LDR PC, =TIMER_5 ;HandlerTIMER5;=ISR_Timer5 ; 0x74
B NONE
B NONE
LDR PC, =HandlerURXD0 ; 0x80
b NONE
b NONE
b NONE
b NONE
b NONE ; 0x94
B NONE
B NONE
b NONE ; 0xa0
B NONE
B NONE
B NONE
B NONE
B NONE
B NONE
b NONE ; 0xb4
LTORG
;// ****************************************************
EXPORT IRQ_Error
IRQ_Error ; ?????.
B .
;/*
;*********************************************************************************************************
END
;*********************************************************************************************************
;*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -