ARM Macro Assembler Page 1 1 00000000 00000400 Stack_Size EQU 0x00000400 ; 256KB of STACK 2 00000000 3 00000000 AREA STACK, NOINIT, READWRITE, ALIGN =4 4 00000000 Stack_Mem SPACE Stack_Size 5 00000400 __initial_sp 6 00000400 7 00000400 8 00000400 00000400 Heap_Size EQU 0x00000400 ; 1MB of HEAP 9 00000400 10 00000400 AREA HEAP, NOINIT, READWRITE, ALIGN= 4 11 00000000 __heap_base 12 00000000 Heap_Mem SPACE Heap_Size 13 00000400 __heap_limit 14 00000400 15 00000400 16 00000400 ; Vector Table Mapped to Address 0 at Reset 17 00000400 18 00000400 PRESERVE8 19 00000400 THUMB 20 00000400 21 00000400 AREA RESET, DATA, READONLY 22 00000000 EXPORT __Vectors 23 00000000 24 00000000 0000FFFC __Vectors DCD 0x0000FFFC 25 00000004 00000000 DCD Reset_Handler 26 00000008 00000000 DCD 0 27 0000000C 00000000 DCD 0 28 00000010 00000000 DCD 0 29 00000014 00000000 DCD 0 30 00000018 00000000 DCD 0 31 0000001C 00000000 DCD 0 32 00000020 00000000 DCD 0 33 00000024 00000000 DCD 0 34 00000028 00000000 DCD 0 35 0000002C 00000000 DCD 0 36 00000030 00000000 DCD 0 37 00000034 00000000 DCD 0 38 00000038 00000000 DCD 0 39 0000003C 00000000 DCD 0 40 00000040 41 00000040 ; External Interrupts 42 00000040 43 00000040 00000000 DCD 0 44 00000044 00000000 DCD UART_Handler 45 00000048 00000000 DCD 0 46 0000004C 00000000 DCD 0 47 00000050 00000000 DCD 0 48 00000054 00000000 DCD 0 49 00000058 00000000 DCD 0 ARM Macro Assembler Page 2 50 0000005C 00000000 DCD 0 51 00000060 00000000 DCD 0 52 00000064 00000000 DCD 0 53 00000068 00000000 DCD 0 54 0000006C 00000000 DCD 0 55 00000070 00000000 DCD 0 56 00000074 00000000 DCD 0 57 00000078 00000000 DCD 0 58 0000007C 00000000 DCD 0 59 00000080 60 00000080 AREA |.text|, CODE, READONLY 61 00000000 ;Reset Handler 62 00000000 Reset_Handler PROC 63 00000000 GLOBAL Reset_Handler 64 00000000 ENTRY 65 00000000 IMPORT __main 66 00000000 4805 LDR R0, =__main 67 00000002 4700 BX R0 ;Branch to __main 68 00000004 ENDP 69 00000004 70 00000004 71 00000004 UART_Handler PROC 72 00000004 EXPORT UART_Handler 73 00000004 IMPORT UART_ISR 74 00000004 B507 PUSH {R0,R1,R2,LR} 75 00000006 F7FF FFFE BL UART_ISR 76 0000000A BD07 POP {R0,R1,R2,PC} 77 0000000C ENDP 78 0000000C 79 0000000C ALIGN 4 ; Align to a word b oundary 80 0000000C 81 0000000C ; User Initial Stack & Heap 82 0000000C IF :DEF:__MICROLIB 87 0000000C IMPORT __use_two_region_memory 88 0000000C EXPORT __user_initial_stackheap 89 0000000C __user_initial_stackheap 90 0000000C 91 0000000C 4803 LDR R0, = Heap_Mem 92 0000000E 4904 LDR R1, =(Stack_Mem + Stack_Size) 93 00000010 4A04 LDR R2, = (Heap_Mem + Heap_Size) 94 00000012 4B05 LDR R3, = Stack_Mem 95 00000014 4770 BX LR 96 00000016 97 00000016 00 00 ALIGN 98 00000018 99 00000018 ENDIF 100 00000018 101 00000018 END 00000000 00000000 00000400 00000400 00000000 Command Line: --debug --xref --cpu=Cortex-M0 --apcs=interwork --depend=.\cm0dsa sm.d -o.\cm0dsasm.o -IC:\Keil_v5\ARM\RV31\INC -IC:\Keil_v5\ARM\CMSIS\Include -- predefine="__EVAL SETA 1" --list=.\cm0dsasm.lst cm0dsasm.s ARM Macro Assembler Page 1 Alphabetic symbol ordering Relocatable symbols STACK 00000000 Symbol: STACK Definitions At line 3 in file cm0dsasm.s Uses None Comment: STACK unused Stack_Mem 00000000 Symbol: Stack_Mem Definitions At line 4 in file cm0dsasm.s Uses At line 92 in file cm0dsasm.s At line 94 in file cm0dsasm.s __initial_sp 00000400 Symbol: __initial_sp Definitions At line 5 in file cm0dsasm.s Uses None Comment: __initial_sp unused 3 symbols ARM Macro Assembler Page 1 Alphabetic symbol ordering Relocatable symbols HEAP 00000000 Symbol: HEAP Definitions At line 10 in file cm0dsasm.s Uses None Comment: HEAP unused Heap_Mem 00000000 Symbol: Heap_Mem Definitions At line 12 in file cm0dsasm.s Uses At line 91 in file cm0dsasm.s At line 93 in file cm0dsasm.s __heap_base 00000000 Symbol: __heap_base Definitions At line 11 in file cm0dsasm.s Uses None Comment: __heap_base unused __heap_limit 00000400 Symbol: __heap_limit Definitions At line 13 in file cm0dsasm.s Uses None Comment: __heap_limit unused 4 symbols ARM Macro Assembler Page 1 Alphabetic symbol ordering Relocatable symbols RESET 00000000 Symbol: RESET Definitions At line 21 in file cm0dsasm.s Uses None Comment: RESET unused __Vectors 00000000 Symbol: __Vectors Definitions At line 24 in file cm0dsasm.s Uses At line 22 in file cm0dsasm.s Comment: __Vectors used once 2 symbols ARM Macro Assembler Page 1 Alphabetic symbol ordering Relocatable symbols .text 00000000 Symbol: .text Definitions At line 60 in file cm0dsasm.s Uses None Comment: .text unused Reset_Handler 00000000 Symbol: Reset_Handler Definitions At line 62 in file cm0dsasm.s Uses At line 25 in file cm0dsasm.s At line 63 in file cm0dsasm.s UART_Handler 00000004 Symbol: UART_Handler Definitions At line 71 in file cm0dsasm.s Uses At line 44 in file cm0dsasm.s At line 72 in file cm0dsasm.s __user_initial_stackheap 0000000C Symbol: __user_initial_stackheap Definitions At line 89 in file cm0dsasm.s Uses At line 88 in file cm0dsasm.s Comment: __user_initial_stackheap used once 4 symbols ARM Macro Assembler Page 1 Alphabetic symbol ordering Absolute symbols Heap_Size 00000400 Symbol: Heap_Size Definitions At line 8 in file cm0dsasm.s Uses At line 12 in file cm0dsasm.s At line 93 in file cm0dsasm.s Stack_Size 00000400 Symbol: Stack_Size Definitions At line 1 in file cm0dsasm.s Uses At line 4 in file cm0dsasm.s At line 92 in file cm0dsasm.s 2 symbols ARM Macro Assembler Page 1 Alphabetic symbol ordering External symbols UART_ISR 00000000 Symbol: UART_ISR Definitions At line 73 in file cm0dsasm.s Uses At line 75 in file cm0dsasm.s Comment: UART_ISR used once __main 00000000 Symbol: __main Definitions At line 65 in file cm0dsasm.s Uses At line 66 in file cm0dsasm.s Comment: __main used once __use_two_region_memory 00000000 Symbol: __use_two_region_memory Definitions At line 87 in file cm0dsasm.s Uses None Comment: __use_two_region_memory unused 3 symbols 353 symbols in table