谭浩强c++ 程序设计教材 分章 分节
源代码在线查看: key function.lst
A51 MACRO ASSEMBLER KEY_FUNCTION 06/30/2006 17:05:07 PAGE 1
MACRO ASSEMBLER A51 V8.00
OBJECT MODULE PLACED IN Key Function.OBJ
ASSEMBLER INVOKED BY: E:\Keil\C51\BIN\A51.EXE Key Function.asm SET(SMALL) DEBUG EP
LOC OBJ LINE SOURCE
0000 1 ORG 00H
0000 74EE 2 START: MOV A,#0EEH
0002 7590FF 3 MOV P1,#0FFH
0005 20B7FD 4 K1: JB P3.7,$
0008 7C01 5 MOV R4,#1H
000A 120026 6 LCALL DELAY
000D 20B7F5 7 JB P3.7,K1
8
9
10
0010 F590 11 S1: MOV P1,A
0012 7C0A 12 MOV R4,#10
0014 120026 13 LCALL DELAY
0017 7590FF 14 MOV P1,#0FFH
001A 7C0A 15 MOV R4,#10
001C 120026 16 LCALL DELAY
17
001F 30B7EE 18 JNB P3.7,S1
19
0022 23 20 RL A
21
0023 020005 22 LJMP K1
0026 7D14 23 DELAY: MOV R5,#20
0028 7EFA 24 D1: MOV R6,#250
002A DEFE 25 DJNZ R6,$
002C DDFA 26 DJNZ R5,D1
002E DCF6 27 DJNZ R4,DELAY
0030 22 28 RET
29 END
A51 MACRO ASSEMBLER KEY_FUNCTION 06/30/2006 17:05:07 PAGE 2
SYMBOL TABLE LISTING
------ ----- -------
N A M E T Y P E V A L U E ATTRIBUTES
D1 . . . . . . . . C ADDR 0028H A
DELAY. . . . . . . C ADDR 0026H A
K1 . . . . . . . . C ADDR 0005H A
P1 . . . . . . . . D ADDR 0090H A
P3 . . . . . . . . D ADDR 00B0H A
S1 . . . . . . . . C ADDR 0010H A
START. . . . . . . C ADDR 0000H A
REGISTER BANK(S) USED: 0
ASSEMBLY COMPLETE. 0 WARNING(S), 0 ERROR(S)