⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ram.lst

📁 ADuC7020/26是ADI模拟公司开发的ARM7TDMI内核
💻 LST
字号:
ARM COMPILER V2.42,  RAM                                                                   09/01/06  14:42:17  PAGE 1   


ARM COMPILER V2.42, COMPILATION OF MODULE RAM
OBJECT MODULE PLACED IN RAM.OBJ
COMPILER INVOKED BY: C:\Keil\ARM\BIN\CA.exe RAM.c THUMB DEBUG TABS(4) 

stmt  level    source

    1          //  Include Files   
    2          
    3          #include <ADuC7026.h>
    4          #include<stdio.h>
    5          
    6          //  Function Prototypes
    7          
    8          void Ram_Function(void);
    9          
   10          extern int getPC (void);
   11          
   12          
   13          
   14          void Ram_Function() __ram         // __ram attribute indicates that the code is to be placed in RAM
   15          {
   16   1      
   17   1          register unsigned int PC;   
   18   1      
   19   1          //print current program counter address - currently executing from RAM!!!
   20   1          printf("This is the RAM Function.\n");
   21   1          PC = getPC();    // Getting current locatin of Program Counter  (Register R15)
   22   1          printf("The Current location of the Program Counter is : 0x%08X\n",PC);
   23   1      
   24   1          return;
   25   1      }
   26          
   27          
   28          
ARM COMPILER V2.42,  RAM                                                                   09/01/06  14:42:17  PAGE 2   

ASSEMBLY LISTING OF GENERATED OBJECT CODE



*** EXTERNALS:
 EXTERN CODE16 (printf?T)
 EXTERN CODE16 (getPC?T)



*** PUBLICS:
 PUBLIC         Ram_Function?T



*** DATA SEGMENT '?CON?RAM':
 00000000          ??S_2:
 00000000            DB          'The Current location of the Program Co'
 00000026            DB          'unter is : 0x%08X',0x0A,0x00
 00000039          ??S_1:
 00000039            DB          'This is the RAM Function.',0x0A,0x00

*** CODE SEGMENT '?PR?Ram_Function?T?RAM':
   14: void Ram_Function() __ram         // __ram attribute indicates that the code is to be placed in RAM
 00000000  B500      PUSH        {LR}
   15: {
 00000002            ; SCOPE-START
   20:     printf("This is the RAM Function.\n");
 00000002  4800      LDR         R0,=??S_1 ; ??S_1
 00000004  F7FF      BL          printf?T  ; T=0x0001  (1)
 00000006  FFFC      BL          printf?T  ; T=0x0001  (2)
   21:     PC = getPC();    // Getting current locatin of Program Counter  (Register R15)
 00000008  F7FF      BL          getPC?T  ; T=0x0001  (1)
 0000000A  FFFA      BL          getPC?T  ; T=0x0001  (2)
 0000000C  1C02      MOV         R2,R0 ; PC
 0000000E  ---- Variable 'PC' assigned to Register 'R2' ----
   22:     printf("The Current location of the Program Counter is : 0x%08X\n",PC);
 0000000E  4800      LDR         R0,=??S_2 ; ??S_2
 00000010  1C11      MOV         R1,R2 ; PC
 00000012  F7FF      BL          printf?T  ; T=0x0001  (1)
 00000014  FFF5      BL          printf?T  ; T=0x0001  (2)
   24:     return;
 00000016            ; SCOPE-END
   25: }
 00000016  BC08      POP         {R3}
 00000018  4718      BX          R3
 0000001A          ENDP ; 'Ram_Function?T'



Module Information          Static
----------------------------------
  code size            =    ------
  data size            =    ------
  const size           =        84
End of Module Information.


ARM COMPILATION COMPLETE.  0 WARNING(S),  0 ERROR(S)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -