8951系列单片机仿真
源代码在线查看: 00-59 count.lst
A51 MACRO ASSEMBLER 00_59_COUNT 07/31/2007 00:26:04 PAGE 1
MACRO ASSEMBLER A51 V6.12
OBJECT MODULE PLACED IN .\00-59 Count.OBJ
ASSEMBLER INVOKED BY: C:\单片机\Keil\C51\BIN\A51.EXE .\00-59 Count.asm SET(SMALL) DEBUG EP
LOC OBJ LINE SOURCE
0030 1 Second EQU 30H
0000 2 ORG 0
0000 753000 3 START: MOV Second,#00H
0003 E530 4 NEXT: MOV A,Second
0005 75F00A 5 MOV B,#10
0008 84 6 DIV AB
0009 90002E 7 MOV DPTR,#TABLE
000C 93 8 MOVC A,@A+DPTR
000D F580 9 MOV P0,A
000F E5F0 10 MOV A,B
0011 93 11 MOVC A,@A+DPTR
0012 F5A0 12 MOV P2,A
0014 120021 13 LCALL DELY1S
0017 0530 14 INC Second
0019 E530 15 MOV A,Second
001B B43CE5 16 CJNE A,#60,NEXT
001E 020000 17 LJMP START
0021 7D64 18 DELY1S: MOV R5,#100
0023 7E14 19 D2: MOV R6,#20
0025 7FF8 20 D1: MOV R7,#248
0027 DFFE 21 DJNZ R7,$
0029 DEFA 22 DJNZ R6,D1
002B DDF6 23 DJNZ R5,D2
002D 22 24 RET
002E 3F065B4F 25 TABLE: DB 3FH,06H,5BH,4FH,66H,6DH,7DH,07H,7FH,6FH
0032 666D7D07
0036 7F6F
26 END
A51 MACRO ASSEMBLER 00_59_COUNT 07/31/2007 00:26:04 PAGE 2
SYMBOL TABLE LISTING
------ ----- -------
N A M E T Y P E V A L U E ATTRIBUTES
B. . . . . . . . . D ADDR 00F0H A
D1 . . . . . . . . C ADDR 0025H A
D2 . . . . . . . . C ADDR 0023H A
DELY1S . . . . . . C ADDR 0021H A
NEXT . . . . . . . C ADDR 0003H A
P0 . . . . . . . . D ADDR 0080H A
P2 . . . . . . . . D ADDR 00A0H A
SECOND . . . . . . N NUMB 0030H A
START. . . . . . . C ADDR 0000H A
TABLE. . . . . . . C ADDR 002EH A
REGISTER BANK(S) USED: 0
ASSEMBLY COMPLETE. 0 WARNING(S), 0 ERROR(S)