- A51 MACRO ASSEMBLER W 02/21/2010 13:59:19 PAGE 1
-
-
- MACRO ASSEMBLER A51 V7.07
- OBJECT MODULE PLACED IN w.OBJ
- ASSEMBLER INVOKED BY: D:\程序\keil 51\C51\BIN\A51.EXE w.asm SET(SMALL) DEBUG EP
-
- LOC OBJ LINE SOURCE
-
- 0000 1 org 0000h
- 0000 0130 2 ajmp main
- 000B 3 org 000bh
- 000B 01D6 4 ajmp start
- 0030 5 org 0030h
- 0030 6 main:
- 0030 758901 7 mov tmod,#01h
- 0033 758AB0 8 mov tl0,#0b0h
- 0036 758C3C 9 mov th0,#3ch
- 0039 D2AF 10 setb ea
- 003B D2A9 11 setb et0
- 003D D28C 12 setb tr0
- 003F 7800 13 mov r0,#00h
- 0041 7900 14 mov r1,#00h
- 0043 7A00 15 mov r2,#00
- 0045 7B00 16 mov r3,#00
- 0047 7C02 17 mov r4,#02
- 0049 7D01 18 mov r5,#01
- 004B 7F14 19 mov r7,#20
- 004D 900102 20 ww:mov dptr,#tab
- 0050 75A007 21 mov p2,#07
- 0053 E8 22 mov a,r0
- 0054 93 23 movc a,@a+dptr
- 0055 F580 24 mov p0,a
- 0057 1200EA 25 lcall delay
- 005A B80A1B 26 cjne r0,#10,n1
- 005D 7800 27 mov r0,#00h
- 005F 09 28 inc r1
- 0060 B90615 29 cjne r1,#06,n1
- 0063 7900 30 mov r1,#00h
- 0065 0A 31 inc r2
- 0066 BA0A0F 32 cjne r2,#10,n1
- 0069 7A00 33 mov r2,#00h
- 006B 0B 34 inc r3
- 006C BB0609 35 cjne r3,#06,n1
- 006F 7B00 36 mov r3,#00h
- 0071 0C 37 inc r4
- 0072 BC0A03 38 cjne r4,#10,n1
- 0075 7C00 39 mov r4,#00
- 0077 0D 40 inc r5
- 0078 BD0107 41 n1:cjne r5,#01,n2
- 007B BC0304 42 cjne r4,#03,n2
- 007E 7C00 43 mov r4,#00
- 0080 7D00 44 mov r5,#00
- 0082 E9 45 n2:mov a,r1
- 0083 75A006 46 mov p2,#06
- 0086 93 47 movc a,@a+dptr
- 0087 F580 48 mov p0,a
- 0089 1200EA 49 lcall delay
- 008C EA 50 mov a,r2
- 008D 75A004 51 mov p2,#04
- 0090 93 52 movc a,@a+dptr
- 0091 F580 53 mov p0,a
- 0093 1200EA 54 lcall delay
- 0096 EB 55 mov a,r3
- 0097 75A003 56 mov p2,#03
- 009A 93 57 movc a,@a+dptr
- 009B F580 58 mov p0,a
- A51 MACRO ASSEMBLER W 02/21/2010 13:59:19 PAGE 2
-
- 009D 1200EA 59 lcall delay
- 00A0 EC 60 mov a,r4
- 00A1 75A001 61 mov p2,#01
- 00A4 93 62 movc a,@a+dptr
- 00A5 F580 63 mov p0,a
- 00A7 1200EA 64 lcall delay
- 00AA ED 65 mov a,r5
- 00AB 75A000 66 mov p2,#00
- 00AE 93 67 movc a,@a+dptr
- 00AF F580 68 mov p0,a
- 00B1 1200EA 69 lcall delay
- 00B4 20B10D 70 fen:jb p3.1,shi
- 00B7 1200F5 71 lcall delay10
- 00BA 20B107 72 jb p3.1,shi
- 00BD 0A 73 inc r2
- 00BE BA0A03 74 cjne r2,#10,shi
- 00C1 0B 75 inc r3
- 00C2 7A00 76 mov r2,#00
- 00C4 20B286 77 shi:jb p3.2,ww
- 00C7 1200F5 78 lcall delay10
- 00CA 20B280 79 jb p3.2,ww
- 00CD 0C 80 inc r4
- 00CE BC0A03 81 cjne r4,#10,aa
- 00D1 0D 82 inc r5
- 00D2 7C00 83 mov r4,#00
- 00D4 014D 84 aa:ajmp ww
- 00D6 85 start:
- 00D6 758AB0 86 mov tl0,#0b0h
- 00D9 758C3C 87 mov th0,#3ch
- 00DC DF09 88 djnz r7,re
- 00DE 7F14 89 mov r7,#20
- 00E0 758AB0 90 mov tl0,#0b0h
- 00E3 758C3C 91 mov th0,#3ch
- 00E6 08 92 inc r0
- 00E7 D28C 93 re:setb tr0
- 00E9 32 94 reti
- 00EA 7E06 95 delay:mov r6,#6
- 00EC 752132 96 se:mov 21h,#50
- 00EF D521FD 97 djnz 21h,$
- 00F2 DEF8 98 djnz r6,se
- 00F4 22 99 ret
- 00F5 7522C8 100 delay10:mov 22h,#200
- 00F8 7523FF 101 df:mov 23h,#0ffh
- 00FB D523FD 102 djnz 23h,$
- 00FE D522F7 103 djnz 22h,df
- 0101 22 104 ret
- 0102 3F065B4F 105 tab:db 3fh,06h,5bh,4fh,66h,6dh,7dh,07h
- 0106 666D7D07
- 010A 7F6F 106 db 7fh,6fh
- 107 end
- A51 MACRO ASSEMBLER W 02/21/2010 13:59:19 PAGE 3
-
- SYMBOL TABLE LISTING
- ------ ----- -------
-
-
- N A M E T Y P E V A L U E ATTRIBUTES
-
- AA . . . . . . . . C ADDR 00D4H A
- DELAY. . . . . . . C ADDR 00EAH A
- DELAY10. . . . . . C ADDR 00F5H A
- DF . . . . . . . . C ADDR 00F8H A
- EA . . . . . . . . B ADDR 00A8H.7 A
- ET0. . . . . . . . B ADDR 00A8H.1 A
- FEN. . . . . . . . C ADDR 00B4H A
- MAIN . . . . . . . C ADDR 0030H A
- N1 . . . . . . . . C ADDR 0078H A
- N2 . . . . . . . . C ADDR 0082H A
- P0 . . . . . . . . D ADDR 0080H A
- P2 . . . . . . . . D ADDR 00A0H A
- P3 . . . . . . . . D ADDR 00B0H A
- RE . . . . . . . . C ADDR 00E7H A
- SE . . . . . . . . C ADDR 00ECH A
- SHI. . . . . . . . C ADDR 00C4H A
- START. . . . . . . C ADDR 00D6H A
- TAB. . . . . . . . C ADDR 0102H A
- TH0. . . . . . . . D ADDR 008CH A
- TL0. . . . . . . . D ADDR 008AH A
- TMOD . . . . . . . D ADDR 0089H A
- TR0. . . . . . . . B ADDR 0088H.4 A
- WW . . . . . . . . C ADDR 004DH A
-
-
- REGISTER BANK(S) USED: 0
-
- ASSEMBLY COMPLETE. 0 WARNING(S), 0 ERROR(S)
-
A51 MACRO ASSEMBLER W 02/21/2010 13:59:19 PAGE 1
MACRO ASSEMBLER A51 V7.07
OBJECT MODULE PLACED IN w.OBJ
ASSEMBLER INVOKED BY: D:\程序\keil 51\C51\BIN\A51.EXE w.asm SET(SMALL) DEBUG EP
LOC OBJ LINE SOURCE
0000 1 org 0000h
0000 0130 2 ajmp main
000B 3 org 000bh
000B 01D6 4 ajmp start
0030 5 org 0030h
0030 6 main:
0030 758901 7 mov tmod,#01h
0033 758AB0 8 mov tl0,#0b0h
0036 758C3C 9 mov th0,#3ch
0039 D2AF 10 setb ea
003B D2A9 11 setb et0
003D D28C 12 setb tr0
003F 7800 13 mov r0,#00h
0041 7900 14 mov r1,#00h
0043 7A00 15 mov r2,#00
0045 7B00 16 mov r3,#00
0047 7C02 17 mov r4,#02
0049 7D01 18 mov r5,#01
004B 7F14 19 mov r7,#20
004D 900102 20 ww:mov dptr,#tab
0050 75A007 21 mov p2,#07
0053 E8 22 mov a,r0
0054 93 23 movc a,@a+dptr
0055 F580 24 mov p0,a
0057 1200EA 25 lcall delay
005A B80A1B 26 cjne r0,#10,n1
005D 7800 27 mov r0,#00h
005F 09 28 inc r1
0060 B90615 29 cjne r1,#06,n1
0063 7900 30 mov r1,#00h
0065 0A 31 inc r2
0066 BA0A0F 32 cjne r2,#10,n1
0069 7A00 33 mov r2,#00h
006B 0B 34 inc r3
006C BB0609 35 cjne r3,#06,n1
006F 7B00 36 mov r3,#00h
0071 0C 37 inc r4
0072 BC0A03 38 cjne r4,#10,n1
0075 7C00 39 mov r4,#00
0077 0D 40 inc r5
0078 BD0107 41 n1:cjne r5,#01,n2
007B BC0304 42 cjne r4,#03,n2
007E 7C00 43 mov r4,#00
0080 7D00 44 mov r5,#00
0082 E9 45 n2:mov a,r1
0083 75A006 46 mov p2,#06
0086 93 47 movc a,@a+dptr
0087 F580 48 mov p0,a
0089 1200EA 49 lcall delay
008C EA 50 mov a,r2
008D 75A004 51 mov p2,#04
0090 93 52 movc a,@a+dptr
0091 F580 53 mov p0,a
0093 1200EA 54 lcall delay
0096 EB 55 mov a,r3
0097 75A003 56 mov p2,#03
009A 93 57 movc a,@a+dptr
009B F580 58 mov p0,a
A51 MACRO ASSEMBLER W 02/21/2010 13:59:19 PAGE 2
009D 1200EA 59 lcall delay
00A0 EC 60 mov a,r4
00A1 75A001 61 mov p2,#01
00A4 93 62 movc a,@a+dptr
00A5 F580 63 mov p0,a
00A7 1200EA 64 lcall delay
00AA ED 65 mov a,r5
00AB 75A000 66 mov p2,#00
00AE 93 67 movc a,@a+dptr
00AF F580 68 mov p0,a
00B1 1200EA 69 lcall delay
00B4 20B10D 70 fen:jb p3.1,shi
00B7 1200F5 71 lcall delay10
00BA 20B107 72 jb p3.1,shi
00BD 0A 73 inc r2
00BE BA0A03 74 cjne r2,#10,shi
00C1 0B 75 inc r3
00C2 7A00 76 mov r2,#00
00C4 20B286 77 shi:jb p3.2,ww
00C7 1200F5 78 lcall delay10
00CA 20B280 79 jb p3.2,ww
00CD 0C 80 inc r4
00CE BC0A03 81 cjne r4,#10,aa
00D1 0D 82 inc r5
00D2 7C00 83 mov r4,#00
00D4 014D 84 aa:ajmp ww
00D6 85 start:
00D6 758AB0 86 mov tl0,#0b0h
00D9 758C3C 87 mov th0,#3ch
00DC DF09 88 djnz r7,re
00DE 7F14 89 mov r7,#20
00E0 758AB0 90 mov tl0,#0b0h
00E3 758C3C 91 mov th0,#3ch
00E6 08 92 inc r0
00E7 D28C 93 re:setb tr0
00E9 32 94 reti
00EA 7E06 95 delay:mov r6,#6
00EC 752132 96 se:mov 21h,#50
00EF D521FD 97 djnz 21h,$
00F2 DEF8 98 djnz r6,se
00F4 22 99 ret
00F5 7522C8 100 delay10:mov 22h,#200
00F8 7523FF 101 df:mov 23h,#0ffh
00FB D523FD 102 djnz 23h,$
00FE D522F7 103 djnz 22h,df
0101 22 104 ret
0102 3F065B4F 105 tab:db 3fh,06h,5bh,4fh,66h,6dh,7dh,07h
0106 666D7D07
010A 7F6F 106 db 7fh,6fh
107 end
A51 MACRO ASSEMBLER W 02/21/2010 13:59:19 PAGE 3
SYMBOL TABLE LISTING
------ ----- -------
N A M E T Y P E V A L U E ATTRIBUTES
AA . . . . . . . . C ADDR 00D4H A
DELAY. . . . . . . C ADDR 00EAH A
DELAY10. . . . . . C ADDR 00F5H A
DF . . . . . . . . C ADDR 00F8H A
EA . . . . . . . . B ADDR 00A8H.7 A
ET0. . . . . . . . B ADDR 00A8H.1 A
FEN. . . . . . . . C ADDR 00B4H A
MAIN . . . . . . . C ADDR 0030H A
N1 . . . . . . . . C ADDR 0078H A
N2 . . . . . . . . C ADDR 0082H A
P0 . . . . . . . . D ADDR 0080H A
P2 . . . . . . . . D ADDR 00A0H A
P3 . . . . . . . . D ADDR 00B0H A
RE . . . . . . . . C ADDR 00E7H A
SE . . . . . . . . C ADDR 00ECH A
SHI. . . . . . . . C ADDR 00C4H A
START. . . . . . . C ADDR 00D6H A
TAB. . . . . . . . C ADDR 0102H A
TH0. . . . . . . . D ADDR 008CH A
TL0. . . . . . . . D ADDR 008AH A
TMOD . . . . . . . D ADDR 0089H A
TR0. . . . . . . . B ADDR 0088H.4 A
WW . . . . . . . . C ADDR 004DH A
REGISTER BANK(S) USED: 0
ASSEMBLY COMPLETE. 0 WARNING(S), 0 ERROR(S)