ARM Macro Assembler Page 1 1 00000000 ;------------------------------------------------------- ----------------------------------------------- 2 00000000 ; Module4: A Simple SoC Application 3 00000000 ; Toggle LEDs at a given frequency. 4 00000000 ;------------------------------------------------------- ----------------------------------------------- 5 00000000 6 00000000 7 00000000 8 00000000 ; Vector Table Mapped to Address 0 at Reset 9 00000000 10 00000000 PRESERVE8 11 00000000 THUMB 12 00000000 13 00000000 AREA RESET, DATA, READONLY ; First 3 2 WORDS is VECTOR T ABLE 14 00000000 EXPORT __Vectors 15 00000000 16 00000000 000003FC __Vectors DCD 0x000003FC ; 1K Internal Memor y 17 00000004 00000000 DCD Reset_Handler 18 00000008 00000000 DCD 0 19 0000000C 00000000 DCD 0 20 00000010 00000000 DCD 0 21 00000014 00000000 DCD 0 22 00000018 00000000 DCD 0 23 0000001C 00000000 DCD 0 24 00000020 00000000 DCD 0 25 00000024 00000000 DCD 0 26 00000028 00000000 DCD 0 27 0000002C 00000000 DCD 0 28 00000030 00000000 DCD 0 29 00000034 00000000 DCD 0 30 00000038 00000000 DCD 0 31 0000003C 00000000 DCD 0 32 00000040 33 00000040 ; External Interrupts 34 00000040 35 00000040 00000000 DCD 0 36 00000044 00000000 DCD 0 37 00000048 00000000 DCD 0 38 0000004C 00000000 DCD 0 39 00000050 00000000 DCD 0 40 00000054 00000000 DCD 0 41 00000058 00000000 DCD 0 42 0000005C 00000000 DCD 0 43 00000060 00000000 DCD 0 44 00000064 00000000 DCD 0 45 00000068 00000000 DCD 0 46 0000006C 00000000 DCD 0 47 00000070 00000000 DCD 0 48 00000074 00000000 DCD 0 49 00000078 00000000 DCD 0 50 0000007C 00000000 DCD 0 51 00000080 52 00000080 AREA |.text|, CODE, READONLY ARM Macro Assembler Page 2 53 00000000 ;Reset Handler 54 00000000 Reset_Handler PROC 55 00000000 GLOBAL Reset_Handler 56 00000000 ENTRY 57 00000000 58 00000000 4903 AGAIN LDR R1, =0x50000000 ;Write to LED w ith value 0x55 59 00000002 4804 LDR R0, =0xAA 60 00000004 6008 STR R0, [R1] 61 00000006 62 00000006 63 00000006 4902 LDR R1, =0x50000000 ;Write to LED w ith value 0xAA 64 00000008 4803 LDR R0, =0x55 65 0000000A 6008 STR R0, [R1] 66 0000000C 67 0000000C E7F8 B AGAIN 68 0000000E ENDP 69 0000000E 70 0000000E 71 0000000E 00 00 ALIGN 4 ; Align to a word b oundary 72 00000010 73 00000010 END 50000000 000000AA 00000055 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 RESET 00000000 Symbol: RESET Definitions At line 13 in file cm0dsasm.s Uses None Comment: RESET unused __Vectors 00000000 Symbol: __Vectors Definitions At line 16 in file cm0dsasm.s Uses At line 14 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 52 in file cm0dsasm.s Uses None Comment: .text unused AGAIN 00000000 Symbol: AGAIN Definitions At line 58 in file cm0dsasm.s Uses At line 67 in file cm0dsasm.s Comment: AGAIN used once Reset_Handler 00000000 Symbol: Reset_Handler Definitions At line 54 in file cm0dsasm.s Uses At line 17 in file cm0dsasm.s At line 55 in file cm0dsasm.s 3 symbols 338 symbols in table