📄 swi_handler.lst
字号:
ARM Macro Assembler Page 1
1 00000000 ;/******************************************************
***********************
2 00000000 ;www.mcu123.com
3 00000000 ;基于LPC214X KIT学习板FIQ例程。
4 00000000 ;编译环境:keil rvmdk 3.03以上
5 00000000 ;软件仿真通过 2007.9
6 00000000 ;SWI功能
7 00000000 ;*******************************************************
**********************/
8 00000000
9 00000000 PRESERVE8
10 00000000
11 00000000 00000000
SWI_IRQ_DIS
EQU 0
12 00000000 00000001
SWI_IRQ_EN
EQU 1
13 00000000 00000002
SWI_FIQ_DIS
EQU 2
14 00000000 00000003
SWI_FIQ_EN
EQU 3
15 00000000
16 00000000 00000080
I_Bit EQU 0x80
17 00000000 00000040
F_Bit EQU 0x40
18 00000000
19 00000000 ;The exported labels and functions
20 00000000 EXPORT SoftwareInterrupt
21 00000000 EXPORT IntEnable
22 00000000 EXPORT IntDisable
23 00000000 EXPORT FIQEnable
24 00000000
25 00000000 CODE32
26 00000000 AREA SWI_HANDLER,CODE,READONLY
27 00000000 ENTRY
28 00000000
29 00000000 ;*******************************************************
*************
30 00000000 ;* SWI interrupt handler *
31 00000000 ;* Function : SoftwareInterrupt(SWI_Number) *
32 00000000 ;* The SWI_Number is 0 through 3 *
33 00000000 ;* See below "SwiFunction" table below *
34 00000000 ;* Parameters: None *
35 00000000 ;* input : SWI_Number *
36 00000000 ;* output : None *
37 00000000 ;*******************************************************
*************
38 00000000 SoftwareInterrupt
39 00000000 E3500004 CMP R0, #4
40 00000004 379FF100 LDRLO PC, [PC, R0, LSL #2]
41 00000008 E1B0F00E MOVS PC, LR
42 0000000C
43 0000000C SwiFunction
44 0000000C 00000000 DCD IRQDisable ;0
45 00000010 00000000 DCD IRQEnable ;1
ARM Macro Assembler Page 2
46 00000014 00000000 DCD FIQDisable ;2
47 00000018 00000000 DCD FIQEnable ;3
48 0000001C
49 0000001C IRQDisable
50 0000001C E14F0000 MRS R0, SPSR
51 00000020 E3800080 ORR R0, R0, #I_Bit
52 00000024 E161F000 MSR SPSR_c, R0
53 00000028 E1B0F00E MOVS PC, LR
54 0000002C
55 0000002C IRQEnable
56 0000002C E14F0000 MRS R0, SPSR
57 00000030 E3C00080 BIC R0, R0, #I_Bit
58 00000034 E161F000 MSR SPSR_c, R0
59 00000038 E1B0F00E MOVS PC, LR
60 0000003C
61 0000003C FIQDisable
62 0000003C E14F0000 MRS R0, SPSR
63 00000040 E3800040 ORR R0, R0, #F_Bit
64 00000044 E161F000 MSR SPSR_c, R0
65 00000048 E1B0F00E MOVS PC, LR
66 0000004C
67 0000004C FIQEnable
68 0000004C E14F0000 MRS R0, SPSR
69 00000050 E3C00040 BIC R0, R0, #F_Bit
70 00000054 E161F000 MSR SPSR_c, R0
71 00000058 E1B0F00E MOVS PC, LR
72 0000005C
73 0000005C ;*******************************************************
***************
74 0000005C ;* Call SWI to enable IRQ
*
75 0000005C ;* Function : void IntEnable(void)
*
76 0000005C ;* Parameters: None
*
77 0000005C ;* input : None
*
78 0000005C ;* output : None
*
79 0000005C ;*******************************************************
***************
80 0000005C IntEnable
81 0000005C EF000001 SWI SWI_IRQ_EN
82 00000060 E12FFF1E BX lr
83 00000064 ; end of IntEnable
84 00000064
85 00000064 ;*******************************************************
***************
86 00000064 ;* Call SWI to disable IRQ
*
87 00000064 ;* Function : void IntDisable(void)
*
88 00000064 ;* Parameters : None
*
89 00000064 ;* input : None
*
90 00000064 ;* output : None
*
91 00000064 ;*******************************************************
ARM Macro Assembler Page 3
***************
92 00000064 IntDisable
93 00000064 EF000000 SWI SWI_IRQ_DIS
94 00000068 E12FFF1E BX lr
95 0000006C ; end of IntDisable
96 0000006C
97 0000006C END
Command Line: --debug --xref --device=DARMP --apcs=interwork -o.\obj\swi_handle
r.o -IC:\Keil\ARM\INC\Philips --list=.\lst\swi_handler.lst swi_handler.s
ARM Macro Assembler Page 1 Alphabetic symbol ordering
Relocatable symbols
FIQDisable 0000003C
Symbol: FIQDisable
Definitions
At line 61 in file swi_handler.s
Uses
At line 46 in file swi_handler.s
Comment: FIQDisable used once
FIQEnable 0000004C
Symbol: FIQEnable
Definitions
At line 67 in file swi_handler.s
Uses
At line 23 in file swi_handler.s
At line 47 in file swi_handler.s
IRQDisable 0000001C
Symbol: IRQDisable
Definitions
At line 49 in file swi_handler.s
Uses
At line 44 in file swi_handler.s
Comment: IRQDisable used once
IRQEnable 0000002C
Symbol: IRQEnable
Definitions
At line 55 in file swi_handler.s
Uses
At line 45 in file swi_handler.s
Comment: IRQEnable used once
IntDisable 00000064
Symbol: IntDisable
Definitions
At line 92 in file swi_handler.s
Uses
At line 22 in file swi_handler.s
Comment: IntDisable used once
IntEnable 0000005C
Symbol: IntEnable
Definitions
At line 80 in file swi_handler.s
Uses
At line 21 in file swi_handler.s
Comment: IntEnable used once
SWI_HANDLER 00000000
Symbol: SWI_HANDLER
Definitions
At line 26 in file swi_handler.s
Uses
None
Comment: SWI_HANDLER unused
SoftwareInterrupt 00000000
ARM Macro Assembler Page 2 Alphabetic symbol ordering
Relocatable symbols
Symbol: SoftwareInterrupt
Definitions
At line 38 in file swi_handler.s
Uses
At line 20 in file swi_handler.s
Comment: SoftwareInterrupt used once
SwiFunction 0000000C
Symbol: SwiFunction
Definitions
At line 43 in file swi_handler.s
Uses
None
Comment: SwiFunction unused
9 symbols
ARM Macro Assembler Page 1 Alphabetic symbol ordering
Absolute symbols
F_Bit 00000040
Symbol: F_Bit
Definitions
At line 17 in file swi_handler.s
Uses
At line 63 in file swi_handler.s
At line 69 in file swi_handler.s
I_Bit 00000080
Symbol: I_Bit
Definitions
At line 16 in file swi_handler.s
Uses
At line 51 in file swi_handler.s
At line 57 in file swi_handler.s
SWI_FIQ_DIS 00000002
Symbol: SWI_FIQ_DIS
Definitions
At line 13 in file swi_handler.s
Uses
None
Comment: SWI_FIQ_DIS unused
SWI_FIQ_EN 00000003
Symbol: SWI_FIQ_EN
Definitions
At line 14 in file swi_handler.s
Uses
None
Comment: SWI_FIQ_EN unused
SWI_IRQ_DIS 00000000
Symbol: SWI_IRQ_DIS
Definitions
At line 11 in file swi_handler.s
Uses
At line 93 in file swi_handler.s
Comment: SWI_IRQ_DIS used once
SWI_IRQ_EN 00000001
Symbol: SWI_IRQ_EN
Definitions
At line 12 in file swi_handler.s
Uses
At line 81 in file swi_handler.s
Comment: SWI_IRQ_EN used once
6 symbols
330 symbols in table
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -