A51 MACRO ASSEMBLER  STARTUP                                                              02/08/2025 15:18:21 PAGE     1


MACRO ASSEMBLER A51 V8.02
OBJECT MODULE PLACED IN .\output\STARTUP.obj
ASSEMBLER INVOKED BY: D:\Tool\Keil\C51\BIN\A51.EXE code_drv\STARTUP.A51 NOMOD51 INCDIR(.\code_classb\iec60730_lib\includ
                      e;.\code_classb\iec60730_proc\Include;.\code_classb\config) SET(LARGE) DEBUG PRINT(.\output\STARTU
                      P.lst) OBJECT(.\output\STARTUP.obj) EP

LOC  OBJ            LINE     SOURCE

                       1     $nomod51 
                       2     NAME    ?C_STARTUP
                       3     
                       4     EXTRN CODE (?C_START)
                       5     PUBLIC  ?C_STARTUP
                       6     
  00B2                 7     CLKCON  EQU             0B2H
                       8     
                       9     EXTRN   IDATA   (STACK)
                      10     
----                  11                     CSEG    AT      1000H
1000 020000   F       12     ?C_STARTUP:     LJMP    STARTUP1
                      13     
                      14     
                      15     ?C_C51STARTUP   SEGMENT         CODE
----                  16                                     RSEG            ?C_C51STARTUP
0000                  17     STARTUP1:
0000 758100   F       18                     MOV             SP, #STACK-1
0003 00               19                                     NOP
                      20                     ;此处在全局变量初始化之前，可清硆am
                      21                     ;清砳data
0004 7808             22                     MOV R0,#0x08
0006                  23     FOR_EACH_IDATA:
0006 7600             24                     MOV @R0,#0x00
0008 08               25                     INC R0
0009 B800FA   F       26                     CJNE R0,#STACK,FOR_EACH_IDATA
                      27                     ;清硏data
000C E4               28                     CLR A
000D 900000           29                     MOV DPTR,#0x0000
0010                  30     FOR_EACH_XDATA:
0010 F0               31                     MOVX @DPTR,A
0011 A3               32                     INC DPTR
0012 A882             33                     MOV R0,DPL
0014 A983             34                     MOV R1,DPH
0016 B8DCF7           35                     CJNE R0,#0xDC,FOR_EACH_XDATA
0019 B907F4           36                     CJNE R1,#0x07,FOR_EACH_XDATA
001C 00               37                     NOP
001D 020000   F       38                                     LJMP    ?C_START
                      39                     END
A51 MACRO ASSEMBLER  STARTUP                                                              02/08/2025 15:18:21 PAGE     2

SYMBOL TABLE LISTING
------ ----- -------


N A M E             T Y P E  V A L U E   ATTRIBUTES

?C_C51STARTUP. . .  C SEG    0020H       REL=UNIT
?C_START . . . . .  C ADDR   -----       EXT
?C_STARTUP . . . .  C ADDR   1000H   A   
CLKCON . . . . . .  N NUMB   00B2H   A   
DPH. . . . . . . .  D ADDR   0083H   A   
DPL. . . . . . . .  D ADDR   0082H   A   
FOR_EACH_IDATA . .  C ADDR   0006H   R   SEG=?C_C51STARTUP
FOR_EACH_XDATA . .  C ADDR   0010H   R   SEG=?C_C51STARTUP
SP . . . . . . . .  D ADDR   0081H   A   
STACK. . . . . . .  I ADDR   -----       EXT
STARTUP1 . . . . .  C ADDR   0000H   R   SEG=?C_C51STARTUP


REGISTER BANK(S) USED: 0 


ASSEMBLY COMPLETE.  0 WARNING(S), 0 ERROR(S)
