


ARM Macro Assembler    Page 1 


    1 00000000         ;#******************************************************
                       ***************************************
    2 00000000         ;# NAME: ThumbCode.s                   *
    3 00000000         ;# Author:  Wuhan R&D Center, Embest                 *
    4 00000000         ;# Desc: ThumbCode examples                 *
    5 00000000         ;# History: shw.He 2005.02.22                 *
    6 00000000         ;#******************************************************
                       ***************************************
    7 00000000         
    8 00000000         ;/*-----------------------------------------------------
                       -------------------------------------*/
    9 00000000         ;/*    unable to locate source file.     code           
                             */
   10 00000000         ;/*-----------------------------------------------------
                       -------------------------------------*/
   11 00000000                 area             start,code,readonly
   12 00000000                 entry
   13 00000000                 code32                       ;/*  Subsequent ins
                                                            tructions are ARM *
                                                            /
   14 00000000                 export           Reset_Handler
   15 00000000         Reset_Handler
   16 00000000 E28F0005        adr              r0, Tstart + 1 ;/*  Processor s
                                                            tarts in ARM state,
                                                             */
   17 00000004 E12FFF10        bx               r0          ;/*  so small ARM c
                                                            ode header used */
   18 00000008         ;/*  to call Thumb main program. */
   19 00000008 E1A00000        nop
   20 0000000C                 code16
   21 0000000C         Tstart
   22 0000000C 200A            mov              r0, #10     ;/*  Set up paramet
                                                            ers */
   23 0000000E 2103            mov              r1, #3
   24 00000010 F7FF FFFE       bl               doadd       ;/*  Call subroutin
                                                            e */
   25 00000014         
   26 00000014         stop
   27 00000014 E7FE            b                stop
   28 00000016         
   29 00000016         ;/*-----------------------------------------------------
                       -------------------------------------*/
   30 00000016         ;/* Subroutine code:R0 = R0 + R1 and return             
                           */
   31 00000016         ;/*-----------------------------------------------------
                       -------------------------------------*/
   32 00000016         doadd
   33 00000016 1840            add              r0, r0, r1  ;/*  Subroutine cod
                                                            e */
   34 00000018         ;  mov  pc, lr      ;/*  Return from subroutine. */
   35 00000018 4770            bx               lr
   36 0000001A         
   37 0000001A                 end                          ;/*  Mark end of fi
                                                            le */
Command Line: --debug --xref --device=DARMST9 --apcs=interwork -o.\obj\Thumb_co
de.o -IC:\Keil\ARM\INC\Samsung --list=.\lst\Thumb_code.lst Thumb_code.s



ARM Macro Assembler    Page 1 Alphabetic symbol ordering
Relocatable symbols

Reset_Handler 00000000

Symbol: Reset_Handler
   Definitions
      At line 15 in file Thumb_code.s
   Uses
      At line 14 in file Thumb_code.s
Comment: Reset_Handler used once
Tstart 0000000C

Symbol: Tstart
   Definitions
      At line 21 in file Thumb_code.s
   Uses
      At line 16 in file Thumb_code.s
Comment: Tstart used once
doadd 00000016

Symbol: doadd
   Definitions
      At line 32 in file Thumb_code.s
   Uses
      At line 24 in file Thumb_code.s
Comment: doadd used once
start 00000000

Symbol: start
   Definitions
      At line 11 in file Thumb_code.s
   Uses
      None
Comment: start unused
stop 00000014

Symbol: stop
   Definitions
      At line 26 in file Thumb_code.s
   Uses
      At line 27 in file Thumb_code.s
Comment: stop used once
5 symbols



ARM Macro Assembler    Page 1 Alphabetic symbol ordering
Relocatable symbols

.debug_info$$$start 00000000

Symbol: .debug_info$$$start
   Definitions
      None
   Uses
      None
Warning: .debug_info$$$start undefinedComment: .debug_info$$$start unused
1 symbol



ARM Macro Assembler    Page 1 Alphabetic symbol ordering
Relocatable symbols

.debug_line$$$start 00000000

Symbol: .debug_line$$$start
   Definitions
      None
   Uses
      None
Warning: .debug_line$$$start undefinedComment: .debug_line$$$start unused
1 symbol



ARM Macro Assembler    Page 1 Alphabetic symbol ordering
Relocatable symbols

.debug_abbrev 00000000

Symbol: .debug_abbrev
   Definitions
      None
   Uses
      None
Warning: .debug_abbrev undefinedComment: .debug_abbrev unused
__ARM_asm.debug_abbrev 00000000

Symbol: __ARM_asm.debug_abbrev
   Definitions
      None
   Uses
      None
Warning: __ARM_asm.debug_abbrev undefinedComment: __ARM_asm.debug_abbrev unused
2 symbols
328 symbols in table
