STC单片机内部的ISP和IAP系统
源代码在线查看: powerdown.ls1
A51 MACRO ASSEMBLER POWERDOWN 07/15/2008 23:55:48 PAGE 1
MACRO ASSEMBLER A51 V8.01
OBJECT MODULE PLACED IN powerdown.OBJ
ASSEMBLER INVOKED BY: C:\Keil\C51\BIN\A51.EXE powerdown.src PR(.\powerdown.ls1) EP DEBUG
LOC OBJ LINE SOURCE
1 ; .\powerdown.SRC generated from: powerdown.c
2 ; COMPILER INVOKED BY:
3 ; C:\Keil\C51\BIN\C51.EXE powerdown.c BROWSE DEBUG OBJECTEXTEND SRC(.\powerdown.SRC)
4
5
6 NAME POWERDOWN
7
8 ?PR?power_down?POWERDOWN SEGMENT CODE
9 PUBLIC power_down
10 ; //---------------进入的功耗状态--------------------------------
11 ;
12 ;
13 ;
14 ; void power_down(void)
15
---- 16 RSEG ?PR?power_down?POWERDOWN
0000 17 power_down:
18 ; SOURCE LINE # 5
19 ; {
20 ; SOURCE LINE # 6
21 ; #pragma asm
22 ; CLR P3.6
0000 C2B6 23 CLR P3.6
24 ; SETB P3.5
0002 D2B5 25 SETB P3.5
26 ; MOV A,PCON
0004 E587 27 MOV A,PCON
28 ; ORL A,#02H
0006 4402 29 ORL A,#02H
30 ; MOV PCON,A
0008 F587 31 MOV PCON,A
32 ; #pragma endasm
33 ; }
34 ; SOURCE LINE # 14
000A 22 35 RET
36 ; END OF power_down
37
38 END
A51 MACRO ASSEMBLER POWERDOWN 07/15/2008 23:55:48 PAGE 2
SYMBOL TABLE LISTING
------ ----- -------
N A M E T Y P E V A L U E ATTRIBUTES
?PR?POWER_DOWN?POWERDOWN C SEG 000BH REL=UNIT
P3 . . . . . . . . . . . D ADDR 00B0H A
PCON . . . . . . . . . . D ADDR 0087H A
POWERDOWN. . . . . . . . N NUMB -----
POWER_DOWN . . . . . . . C ADDR 0000H R SEG=?PR?POWER_DOWN?POWERDOWN
REGISTER BANK(S) USED: 0
ASSEMBLY COMPLETE. 0 WARNING(S), 0 ERROR(S)